/external/skia/src/codec/ |
D | SkAndroidCodec.cpp | 203 int SkAndroidCodec::computeSampleSize(SkISize* desiredSize) const { in computeSampleSize() 204 SkASSERT(desiredSize); in computeSampleSize() 207 if (!desiredSize || *desiredSize == origDims) { in computeSampleSize() 211 if (smaller_than(origDims, *desiredSize)) { in computeSampleSize() 212 *desiredSize = origDims; in computeSampleSize() 217 if (desiredSize->width() < 1 || desiredSize->height() < 1) { in computeSampleSize() 218 *desiredSize = SkISize::Make(std::max(1, desiredSize->width()), in computeSampleSize() 219 std::max(1, desiredSize->height())); in computeSampleSize() 226 int sampleX = origDims.width() / desiredSize->width(); in computeSampleSize() 227 int sampleY = origDims.height() / desiredSize->height(); in computeSampleSize() [all …]
|
D | SkIcoCodec.cpp | 215 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions() local 217 float minError = ((float) (origWidth * origHeight)) - desiredSize + 1.0f; in onGetScaledDimensions() 223 float error = SkTAbs(((float) (width * height)) - desiredSize); in onGetScaledDimensions()
|
/external/skqp/src/codec/ |
D | SkAndroidCodec.cpp | 216 int SkAndroidCodec::computeSampleSize(SkISize* desiredSize) const { in computeSampleSize() 217 SkASSERT(desiredSize); in computeSampleSize() 219 if (!desiredSize || *desiredSize == fInfo.dimensions()) { in computeSampleSize() 223 if (smaller_than(fInfo.dimensions(), *desiredSize)) { in computeSampleSize() 224 *desiredSize = fInfo.dimensions(); in computeSampleSize() 229 if (desiredSize->width() < 1 || desiredSize->height() < 1) { in computeSampleSize() 230 *desiredSize = SkISize::Make(std::max(1, desiredSize->width()), in computeSampleSize() 231 std::max(1, desiredSize->height())); in computeSampleSize() 238 int sampleX = fInfo.width() / desiredSize->width(); in computeSampleSize() 239 int sampleY = fInfo.height() / desiredSize->height(); in computeSampleSize() [all …]
|
D | SkIcoCodec.cpp | 208 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions() local 210 float minError = ((float) (origWidth * origHeight)) - desiredSize + 1.0f; in onGetScaledDimensions() 216 float error = SkTAbs(((float) (width * height)) - desiredSize); in onGetScaledDimensions()
|
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/ |
D | StylizeActivity.java | 94 private int desiredSize = 256; field in StylizeActivity 274 sizeButton.setText("" + desiredSize); 280 desiredSize = SIZES[desiredSizeIndex]; in sizeButton.setOnClickListener() 281 sizeButton.setText("" + desiredSize); in sizeButton.setOnClickListener() 472 croppedBitmap = Bitmap.createBitmap(desiredSize, desiredSize, Config.ARGB_8888); in resetPreviewBuffers() 476 desiredSize, desiredSize, in resetPreviewBuffers() 481 intValues = new int[desiredSize * desiredSize]; in resetPreviewBuffers() 482 floatValues = new float[desiredSize * desiredSize * 3]; in resetPreviewBuffers() 483 initializedSize = desiredSize; in resetPreviewBuffers() 488 if (desiredSize != initializedSize) { in processImage() [all …]
|
D | LegacyCameraConnectionFragment.java | 43 private Size desiredSize; field in LegacyCameraConnectionFragment 51 final Camera.PreviewCallback imageListener, final int layout, final Size desiredSize) { in LegacyCameraConnectionFragment() argument 54 this.desiredSize = desiredSize; in LegacyCameraConnectionFragment() 97 sizes, desiredSize.getWidth(), desiredSize.getHeight());
|
D | CameraConnectionFragment.java | 270 final Size desiredSize = new Size(width, height); in chooseOptimalSize() local 277 if (option.equals(desiredSize)) { in chooseOptimalSize() 289 LOGGER.i("Desired size: " + desiredSize + ", min size: " + minSize + "x" + minSize); in chooseOptimalSize() 295 return desiredSize; in chooseOptimalSize()
|
/external/deqp/external/vulkancts/modules/vulkan/wsi/ |
D | vktWsiColorSpaceTests.cpp | 330 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument 366 …TCH_WINDOW_SIZE ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters() 466 const tcu::UVec2 desiredSize (256, 256); in basicExtensionTest() local 468 …tiveObjects native (context, instHelper.supportedExtensions, wsiType, tcu::just(desiredSize)); in basicExtensionTest() 507 const tcu::UVec2 desiredSize (256, 256); in colorspaceCompareTest() local 509 …s native (context, instHelper.supportedExtensions, params.wsiType, tcu::just(desiredSize)); in colorspaceCompareTest() 553 desiredSize, in colorspaceCompareTest() 641 allocator, desiredSize, textureFormat, in colorspaceCompareTest() 648 allocator, desiredSize, textureFormat, in colorspaceCompareTest() 674 const tcu::UVec2 desiredSize (256, 256); in surfaceFormatRenderTest() local [all …]
|
D | vktWsiSwapchainTests.cpp | 1020 const tcu::UVec2 desiredSize (256, 256); in testImageSwapchainCreateInfo() local 1022 …Objects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in testImageSwapchainCreateInfo() 1054 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in testImageSwapchainCreateInfo() 1088 desiredSize.x(), // width in testImageSwapchainCreateInfo() 1089 desiredSize.y(), // height in testImageSwapchainCreateInfo() 1187 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument 1208 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters() 1353 const tcu::UVec2 desiredSize (256, 256); in basicRenderTest() local 1355 …ects native (context, instHelper.supportedExtensions, wsiType, 1u, tcu::just(desiredSize)); in basicRenderTest() 1361 …icSwapchainParameters(wsiType, instHelper.vki, devHelper.physicalDevice, *surface, desiredSize, 2); in basicRenderTest() [all …]
|
D | vktWsiFullScreenExclusiveTests.cpp | 259 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument 277 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters()
|
/external/flatbuffers/lua/flatbuffers/ |
D | builder.lua | 176 local function growByteBuffer(self, desiredSize) 183 until newsize > desiredSize 215 local desiredSize = alignsize + size + additionalBytes 217 while self.head < desiredSize do 219 growByteBuffer(self, desiredSize)
|
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemWsiSwapchainTests.cpp | 778 const tcu::UVec2& desiredSize, in getBasicSwapchainParameters() argument 800 ? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), in getBasicSwapchainParameters() 1134 const tcu::UVec2 desiredSize (256, 256); in basicRenderTest() local 1135 …st NativeObjects native (baseCtx, supportedExtensions, wsiType, tcu::just(desiredSize)); in basicRenderTest() 1144 desiredSize, in basicRenderTest()
|
/external/deqp/external/vulkancts/modules/vulkan/fragment_shading_rate/ |
D | vktFragmentShadingRatePixelConsistency.cpp | 327 deUint32 desiredSize = m_data.shadingRate.width * m_data.shadingRate.height; in clampShadingRate() local 329 while (desiredSize > 0) in clampShadingRate() 350 supportedRate.fragmentSize.width * supportedRate.fragmentSize.height == desiredSize) in clampShadingRate() 385 desiredSize /= 2; in clampShadingRate()
|
D | vktFragmentShadingRateBasic.cpp | 640 deUint32 desiredSize = ext.width * ext.height; in ShadingRateExtentToClampedMask() local 644 while (desiredSize > 0) in ShadingRateExtentToClampedMask() 651 supportedRate.fragmentSize.width * supportedRate.fragmentSize.height == desiredSize && in ShadingRateExtentToClampedMask() 686 desiredSize /= 2; in ShadingRateExtentToClampedMask()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | BoundSet.java | 487 private <T> List<Set<T>> buildAllSubsetsOfSize(Set<T> allElements, int desiredSize) { in buildAllSubsetsOfSize() argument 488 if (desiredSize == allElements.size()) { in buildAllSubsetsOfSize() 494 res.addAll(buildAllSubsetsOfSize(subset, desiredSize)); in buildAllSubsetsOfSize()
|
/external/deqp/external/vulkancts/modules/vulkan/image/ |
D | vktImageMutableTests.cpp | 1976 const tcu::UVec2& desiredSize, in makeSwapchain() argument 2007 …? capabilities.currentExtent : vk::makeExtent2D(desiredSize.x(), desiredSize.y())), // VkExtent2D … in makeSwapchain() 2026 const tcu::UVec2 desiredSize(256, 256); in testSwapchainMutable() local 2028 … NativeObjects native(context, instHelper.supportedExtensions, wsiType, tcu::just(desiredSize)); in testSwapchainMutable() 2102 desiredSize, in testSwapchainMutable()
|
/external/deqp/external/vulkancts/modules/vulkan/descriptor_indexing/ |
D | vktDescriptorSetsIndexingTestsUtils.cpp | 588 VkDeviceSize desiredSize) in createBufferAndBind() argument 591 …const VkDeviceSize roundedSize (deAlignSize(static_cast<size_t>(desiredSize), nonCoherentAtomS… in createBufferAndBind()
|
D | vktDescriptorSetsIndexingTests.hpp | 147 VkDeviceSize desiredSize);
|