/third_party/skia/src/codec/ |
D | SkAndroidCodec.cpp | 15 static bool is_valid_sample_size(int sampleSize) { in is_valid_sample_size() argument 17 return sampleSize > 0; in is_valid_sample_size() 228 int sampleSize = std::min(sampleX, sampleY); in computeSampleSize() local 229 auto computedSize = this->getSampledDimensions(sampleSize); in computeSampleSize() 231 return sampleSize; in computeSampleSize() 234 if (computedSize == origDims || sampleSize == 1) { in computeSampleSize() 243 auto smaller = this->getSampledDimensions(sampleSize + 1); in computeSampleSize() 245 return sampleSize + 1; in computeSampleSize() 250 return sampleSize; in computeSampleSize() 253 sampleSize++; in computeSampleSize() [all …]
|
D | SkSampledCodec.cpp | 22 int sampleSize = *sampleSizePtr; in accountForNativeScaling() local 23 SkASSERT(sampleSize > 1); in accountForNativeScaling() 32 switch (sampleSize) { in accountForNativeScaling() 38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling() 48 SkTDivMod(sampleSize, supportedSampleSize, &actualSampleSize, &remainder); in accountForNativeScaling() 68 SkISize SkSampledCodec::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions() 69 const SkISize size = this->accountForNativeScaling(&sampleSize); in onGetSampledDimensions() 70 return SkISize::Make(get_scaled_dimension(size.width(), sampleSize), in onGetSampledDimensions() 71 get_scaled_dimension(size.height(), sampleSize)); in onGetSampledDimensions() 87 int sampleSize = options.fSampleSize; in onGetAndroidPixels() local [all …]
|
D | SkCodecPriv.h | 29 static inline float get_scale_from_sample_size(int sampleSize) { in get_scale_from_sample_size() argument 30 return 1.0f / ((float) sampleSize); in get_scale_from_sample_size() 42 static inline int get_scaled_dimension(int srcDimension, int sampleSize) { in get_scaled_dimension() argument 43 if (sampleSize > srcDimension) { in get_scaled_dimension() 46 return srcDimension / sampleSize; in get_scaled_dimension()
|
D | SkAndroidCodecAdapter.cpp | 15 SkISize SkAndroidCodecAdapter::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions() 16 float scale = get_scale_from_sample_size(sampleSize); in onGetSampledDimensions()
|
D | SkSampledCodec.h | 25 SkISize onGetSampledDimensions(int sampleSize) const override; 45 SkISize accountForNativeScaling(int* sampleSize, int* nativeSampleSize = nullptr) const;
|
/third_party/flutter/skia/src/codec/ |
D | SkAndroidCodec.cpp | 17 static bool is_valid_sample_size(int sampleSize) { in is_valid_sample_size() argument 19 return sampleSize > 0; in is_valid_sample_size() 240 int sampleSize = std::min(sampleX, sampleY); in computeSampleSize() local 241 auto computedSize = this->getSampledDimensions(sampleSize); in computeSampleSize() 243 return sampleSize; in computeSampleSize() 246 if (computedSize == fInfo.dimensions() || sampleSize == 1) { in computeSampleSize() 255 auto smaller = this->getSampledDimensions(sampleSize + 1); in computeSampleSize() 257 return sampleSize + 1; in computeSampleSize() 262 return sampleSize; in computeSampleSize() 265 sampleSize++; in computeSampleSize() [all …]
|
D | SkSampledCodec.cpp | 22 int sampleSize = *sampleSizePtr; in accountForNativeScaling() local 23 SkASSERT(sampleSize > 1); in accountForNativeScaling() 32 switch (sampleSize) { in accountForNativeScaling() 38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling() 48 SkTDivMod(sampleSize, supportedSampleSize, &actualSampleSize, &remainder); in accountForNativeScaling() 68 SkISize SkSampledCodec::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions() 69 const SkISize size = this->accountForNativeScaling(&sampleSize); in onGetSampledDimensions() 70 return SkISize::Make(get_scaled_dimension(size.width(), sampleSize), in onGetSampledDimensions() 71 get_scaled_dimension(size.height(), sampleSize)); in onGetSampledDimensions() 91 int sampleSize = options.fSampleSize; in onGetAndroidPixels() local [all …]
|
D | SkCodecPriv.h | 29 static inline float get_scale_from_sample_size(int sampleSize) { in get_scale_from_sample_size() argument 30 return 1.0f / ((float) sampleSize); in get_scale_from_sample_size() 42 static inline int get_scaled_dimension(int srcDimension, int sampleSize) { in get_scaled_dimension() argument 43 if (sampleSize > srcDimension) { in get_scaled_dimension() 46 return srcDimension / sampleSize; in get_scaled_dimension()
|
D | SkSampledCodec.h | 25 SkISize onGetSampledDimensions(int sampleSize) const override; 45 SkISize accountForNativeScaling(int* sampleSize, int* nativeSampleSize = nullptr) const;
|
D | SkAndroidCodecAdapter.cpp | 15 SkISize SkAndroidCodecAdapter::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions() 16 float scale = get_scale_from_sample_size(sampleSize); in onGetSampledDimensions()
|
/third_party/flutter/skia/src/android/ |
D | SkBitmapRegionCodec.cpp | 19 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, in decodeRegion() argument 23 if (sampleSize < 1) { in decodeRegion() 24 sampleSize = 1; in decodeRegion() 49 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 62 scaledOutX = outX / sampleSize; in decodeRegion() 63 scaledOutY = outY / sampleSize; in decodeRegion() 67 const int scaledExtraX = extraX / sampleSize; in decodeRegion() 68 const int scaledExtraY = extraY / sampleSize; in decodeRegion() 101 options.fSampleSize = sampleSize; in decodeRegion()
|
/third_party/skia/client_utils/android/ |
D | BitmapRegionDecoder.cpp | 49 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, in decodeRegion() argument 53 if (sampleSize < 1) { in decodeRegion() 54 sampleSize = 1; in decodeRegion() 79 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 92 scaledOutX = outX / sampleSize; in decodeRegion() 93 scaledOutY = outY / sampleSize; in decodeRegion() 97 const int scaledExtraX = extraX / sampleSize; in decodeRegion() 98 const int scaledExtraY = extraY / sampleSize; in decodeRegion() 131 options.fSampleSize = sampleSize; in decodeRegion()
|
/third_party/flutter/skia/fuzz/oss_fuzz/ |
D | FuzzAndroidCodec.cpp | 16 bool FuzzAndroidCodec(sk_sp<SkData> bytes, uint8_t sampleSize) { in FuzzAndroidCodec() argument 22 auto size = codec->getSampledDimensions(sampleSize); in FuzzAndroidCodec() 31 options.fSampleSize = sampleSize; in FuzzAndroidCodec() 57 uint8_t sampleSize; in LLVMFuzzerTestOneInput() local 58 fuzz.nextRange(&sampleSize, 1, 64); in LLVMFuzzerTestOneInput() 60 FuzzAndroidCodec(bytes, sampleSize); in LLVMFuzzerTestOneInput()
|
/third_party/skia/fuzz/oss_fuzz/ |
D | FuzzAndroidCodec.cpp | 16 bool FuzzAndroidCodec(sk_sp<SkData> bytes, uint8_t sampleSize) { in FuzzAndroidCodec() argument 22 auto size = codec->getSampledDimensions(sampleSize); in FuzzAndroidCodec() 31 options.fSampleSize = sampleSize; in FuzzAndroidCodec() 60 uint8_t sampleSize; in LLVMFuzzerTestOneInput() local 61 fuzz.nextRange(&sampleSize, 1, 64); in LLVMFuzzerTestOneInput() 63 FuzzAndroidCodec(bytes, sampleSize); in LLVMFuzzerTestOneInput()
|
/third_party/skia/bench/ |
D | BitmapRegionDecoderBench.cpp | 16 SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) in BitmapRegionDecoderBench() argument 20 , fSampleSize(sampleSize) in BitmapRegionDecoderBench() 27 if (1 != sampleSize) { in BitmapRegionDecoderBench() 28 fName.appendf("_%.3f", 1.0f / (float) sampleSize); in BitmapRegionDecoderBench()
|
D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) in AndroidCodecBench() argument 17 , fSampleSize(sampleSize) in AndroidCodecBench() 20 fName.printf("AndroidCodec_%s_SampleSize%d", baseName.c_str(), sampleSize); in AndroidCodecBench()
|
/third_party/flutter/skia/bench/ |
D | BitmapRegionDecoderBench.cpp | 14 SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) in BitmapRegionDecoderBench() argument 18 , fSampleSize(sampleSize) in BitmapRegionDecoderBench() 25 if (1 != sampleSize) { in BitmapRegionDecoderBench() 26 fName.appendf("_%.3f", 1.0f / (float) sampleSize); in BitmapRegionDecoderBench()
|
D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) in AndroidCodecBench() argument 17 , fSampleSize(sampleSize) in AndroidCodecBench() 20 fName.printf("AndroidCodec_%s_SampleSize%d", baseName.c_str(), sampleSize); in AndroidCodecBench()
|
/third_party/flutter/skia/tests/ |
D | AndroidCodecTest.cpp | 122 for (int sampleSize : { 1, 2, 3, 4, 8, 16, 32 }) { in DEF_TEST() 123 const SkISize sampledDims = codec->getSampledDimensions(sampleSize); in DEF_TEST() 130 file, sampleSize, computedSampleSize, in DEF_TEST() 287 constexpr int sampleSize = 7; in DEF_TEST() local 288 auto sampledDims = androidCodec->getSampledDimensions(sampleSize); in DEF_TEST() 291 options.fSampleSize = sampleSize; in DEF_TEST()
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | notched_shapes_test.dart | 25 sampleSize: 40, 57 sampleSize: 100, 81 sampleSize: 100, 103 sampleSize: 100,
|
/third_party/flutter/skia/include/codec/ |
D | SkAndroidCodec.h | 145 SkISize getSampledDimensions(int sampleSize) const; 182 SkISize getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const; 275 virtual SkISize onGetSampledDimensions(int sampleSize) const = 0;
|
/third_party/skia/include/codec/ |
D | SkAndroidCodec.h | 142 SkISize getSampledDimensions(int sampleSize) const; 179 SkISize getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const; 252 virtual SkISize onGetSampledDimensions(int sampleSize) const = 0;
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/ |
D | NDKExtractor.cpp | 123 … ssize_t sampleSize = AMediaExtractor_readSampleData(extractor, inputBuffer, inputSize); in decode() local 126 if (sampleSize > 0){ in decode() 129 AMediaCodec_queueInputBuffer(codec, inputIndex, 0, sampleSize, in decode()
|
/third_party/skia/tests/ |
D | AndroidCodecTest.cpp | 122 for (int sampleSize : { 1, 2, 3, 4, 8, 16, 32 }) { in DEF_TEST() 123 const SkISize sampledDims = codec->getSampledDimensions(sampleSize); in DEF_TEST() 130 file, sampleSize, computedSampleSize, in DEF_TEST()
|
/third_party/flutter/skia/dm/ |
D | DM.cpp | 536 SkAlphaType dstAlphaType, int sampleSize) { in push_android_codec_src() argument 562 if (1 != sampleSize) { in push_android_codec_src() 563 folder.appendf("_%.3f", 1.0f / (float) sampleSize); in push_android_codec_src() 566 AndroidCodecSrc* src = new AndroidCodecSrc(path, dstColorType, dstAlphaType, sampleSize); in push_android_codec_src() 605 uint32_t sampleSize) { in push_brd_src() argument 629 if (1 != sampleSize) { in push_brd_src() 630 folder.appendf("_%.3f", 1.0f / (float) sampleSize); in push_brd_src() 633 BRDSrc* src = new BRDSrc(path, mode, dstColorType, sampleSize); in push_brd_src() 656 for (uint32_t sampleSize : sampleSizes) { in push_brd_srcs() local 658 push_brd_src(path, CodecSrc::kGetFromCanvas_DstColorType, mode, sampleSize); in push_brd_srcs() [all …]
|