/external/brotli/c/enc/ |
D | quality.h | 36 static BROTLI_INLINE size_t MaxHashTableSize(int quality) { in MaxHashTableSize() argument 37 return quality == FAST_ONE_PASS_COMPRESSION_QUALITY ? 1 << 15 : 1 << 17; in MaxHashTableSize() 48 return params->quality <= 10 ? in MaxZopfliLen() 56 return params->quality <= 10 ? 1 : 5; in MaxZopfliCandidates() 60 params->quality = BROTLI_MIN(int, BROTLI_MAX_QUALITY, in SanitizeParams() 61 BROTLI_MAX(int, BROTLI_MIN_QUALITY, params->quality)); in SanitizeParams() 62 if (params->quality <= MAX_QUALITY_FOR_STATIC_ENTROPY_CODES) { in SanitizeParams() 77 if (params->quality == FAST_ONE_PASS_COMPRESSION_QUALITY || in ComputeLgBlock() 78 params->quality == FAST_TWO_PASS_COMPRESSION_QUALITY) { in ComputeLgBlock() 80 } else if (params->quality < MIN_QUALITY_FOR_BLOCK_SPLIT) { in ComputeLgBlock() [all …]
|
/external/skia/src/images/ |
D | SkImageEncoder.cpp | 38 SkEncodedImageFormat format, int quality) { in SkEncodeImage() argument 40 (void)quality; in SkEncodeImage() 43 return SkEncodeImageWithWIC(dst, src, format, quality); in SkEncodeImage() 45 return SkEncodeImageWithNDK(dst, src, format, quality); in SkEncodeImage() 50 opts.fQuality = quality; in SkEncodeImage() 59 if (quality == 100) { in SkEncodeImage() 76 opts.fQuality = quality; in SkEncodeImage() 105 sk_sp<SkData> SkEncodePixmap(const SkPixmap& src, SkEncodedImageFormat format, int quality) { in SkEncodePixmap() argument 107 return SkEncodeImage(&stream, src, format, quality) ? stream.detachAsData() : nullptr; in SkEncodePixmap() 110 sk_sp<SkData> SkEncodeBitmap(const SkBitmap& src, SkEncodedImageFormat format, int quality) { in SkEncodeBitmap() argument [all …]
|
/external/skqp/src/images/ |
D | SkImageEncoder.cpp | 32 SkEncodedImageFormat format, int quality) { in SkEncodeImage() argument 34 (void)quality; in SkEncodeImage() 37 return SkEncodeImageWithWIC(dst, src, format, quality); in SkEncodeImage() 42 opts.fQuality = quality; in SkEncodeImage() 52 opts.fQuality = quality; in SkEncodeImage() 80 sk_sp<SkData> SkEncodePixmap(const SkPixmap& src, SkEncodedImageFormat format, int quality) { in SkEncodePixmap() argument 82 return SkEncodeImage(&stream, src, format, quality) ? stream.detachAsData() : nullptr; in SkEncodePixmap() 85 sk_sp<SkData> SkEncodeBitmap(const SkBitmap& src, SkEncodedImageFormat format, int quality) { in SkEncodeBitmap() argument 87 return src.peekPixels(&pixmap) ? SkEncodePixmap(pixmap, format, quality) : nullptr; in SkEncodeBitmap()
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | encode_jpeg_op.cc | 48 OP_REQUIRES_OK(context, context->GetAttr("quality", &flags_.quality)); in EncodeJpegOp() 49 OP_REQUIRES(context, 0 <= flags_.quality && flags_.quality <= 100, in EncodeJpegOp() 51 flags_.quality)); in EncodeJpegOp() 163 const Tensor& quality = context->input(1); in Compute() local 164 OP_REQUIRES(context, TensorShapeUtils::IsScalar(quality.shape()), in Compute() 166 quality.shape().DebugString())); in Compute() 167 adjusted_flags.quality = quality.scalar<int>()(); in Compute() 169 0 <= adjusted_flags.quality && adjusted_flags.quality <= 100, in Compute() 171 adjusted_flags.quality)); in Compute()
|
/external/brotli/java/org/brotli/wrapper/enc/ |
D | Encoder.java | 29 private int quality = -1; field in Encoder.Parameters 35 this.quality = other.quality; in Parameters() 42 public Parameters setQuality(int quality) { in setQuality() argument 43 if (quality < -1 || quality > 11) { in setQuality() 46 this.quality = quality; in setQuality() 78 this.encoder = new EncoderJNI.Wrapper(inputBufferSize, params.quality, params.lgwin); in Encoder() 166 EncoderJNI.Wrapper encoder = new EncoderJNI.Wrapper(data.length, params.quality, params.lgwin); in compress()
|
/external/libjpeg-turbo/ |
D | jcparam.c | 130 jpeg_quality_scaling(int quality) in jpeg_quality_scaling() argument 137 if (quality <= 0) quality = 1; in jpeg_quality_scaling() 138 if (quality > 100) quality = 100; in jpeg_quality_scaling() 146 if (quality < 50) in jpeg_quality_scaling() 147 quality = 5000 / quality; in jpeg_quality_scaling() 149 quality = 200 - quality * 2; in jpeg_quality_scaling() 151 return quality; in jpeg_quality_scaling() 156 jpeg_set_quality(j_compress_ptr cinfo, int quality, boolean force_baseline) in jpeg_set_quality() argument 164 quality = jpeg_quality_scaling(quality); in jpeg_set_quality() 167 jpeg_set_linear_quality(cinfo, quality, force_baseline); in jpeg_set_quality()
|
/external/skia/gm/ |
D | encode_color_types.cpp | 75 EncodeColorTypesGM(SkEncodedImageFormat format, int quality, Variant variant, const char* name) in EncodeColorTypesGM() argument 77 , fQuality(quality) in EncodeColorTypesGM() 157 #define DEF_ENCODE_GM(format, quality, variant, name) \ argument 160 return new EncodeColorTypesGM(format, quality, Variant::variant, name);\ 163 #define DEF_VARIANTS(format, quality, name) \ argument 164 DEF_ENCODE_GM(format, quality, kNormal, name); \ 165 DEF_ENCODE_GM(format, quality, kOpaque, name); \ 166 DEF_ENCODE_GM(format, quality, kGray, name);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/ |
D | BitmapBytesTranscoder.java | 17 private final int quality; field in BitmapBytesTranscoder 23 public BitmapBytesTranscoder(Bitmap.CompressFormat compressFormat, int quality) { in BitmapBytesTranscoder() argument 25 this.quality = quality; in BitmapBytesTranscoder() 31 toTranscode.get().compress(compressFormat, quality, os); in transcode()
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_EncodeJpegVariableQuality.pbtxt | 10 name: "quality" 12 An int quality to encode to. 21 summary: "JPEG encode input image with provided compression quality." 24 `quality` is an int32 jpeg compression quality value between 0 and 100.
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CharsetRecog_2022.java | 40 int quality; in match() local 82 quality = (100*hits - 100*misses) / (hits + misses); in match() 88 quality -= (5-(hits+shifts))*10; in match() 91 if (quality < 0) { in match() 92 quality = 0; in match() 94 return quality; in match()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CharsetRecog_2022.java | 41 int quality; in match() local 83 quality = (100*hits - 100*misses) / (hits + misses); in match() 89 quality -= (5-(hits+shifts))*10; in match() 92 if (quality < 0) { in match() 93 quality = 0; in match() 95 return quality; in match()
|
/external/webrtc/modules/audio_processing/aec3/ |
D | delay_estimate.h | 20 DelayEstimate(Quality quality, size_t delay) in DelayEstimate() 21 : quality(quality), delay(delay) {} in DelayEstimate() 23 Quality quality; member
|
/external/icu/icu4c/source/i18n/ |
D | csr2022.cpp | 41 int32_t quality; in match_2022() local 91 quality = (100*hits - 100*misses) / (hits + misses); in match_2022() 97 quality -= (5-(hits+shifts))*10; in match_2022() 100 if (quality < 0) { in match_2022() 101 quality = 0; in match_2022() 104 return quality; in match_2022()
|
/external/brotli/tests/ |
D | roundtrip_test.sh | 24 for quality in 1 6 9 11; do 25 echo "Roundtrip testing $file at quality $quality" 28 $BROTLI -fq $quality $file -o $compressed 32 cat $file | $BROTLI -cq $quality | $BROTLI -cd >$uncompressed
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | BitmapEncoder.java | 29 private int quality; field in BitmapEncoder 35 public BitmapEncoder(Bitmap.CompressFormat compressFormat, int quality) { in BitmapEncoder() argument 37 this.quality = quality; in BitmapEncoder() 46 bitmap.compress(format, quality, os); in encode()
|
/external/bsdiff/ |
D | bsdiff_arguments_unittest.cc | 62 int quality; in TEST() local 63 EXPECT_TRUE(BsdiffArguments::ParseQuality("9", &quality, 0, 11)); in TEST() 64 EXPECT_EQ(9, quality); in TEST() 67 EXPECT_FALSE(BsdiffArguments::ParseQuality("30", &quality, 0, 11)); in TEST() 68 EXPECT_FALSE(BsdiffArguments::ParseQuality("1234567890", &quality, 0, 1000)); in TEST() 69 EXPECT_FALSE(BsdiffArguments::ParseQuality("aabb", &quality, 0, 1000)); in TEST()
|
/external/tcpdump/tests/ |
D | OLSRv1_HNA_sgw_1.out | 11 neighbor 172.29.175.221, link-quality 0.00%, neighbor-link-quality 0.00% 13 neighbor 172.31.175.221, link-quality 0.00%, neighbor-link-quality 0.00%
|
/external/skia/tests/ |
D | NdkEncodeTest.cpp | 30 int quality; member 40 static sk_sp<SkData> encode_ndk(const SkPixmap& pmap, SkEncodedImageFormat format, int quality) { in encode_ndk() argument 42 return SkEncodeImageWithNDK(&stream, pmap, format, quality) ? stream.detachAsData() : nullptr; in encode_ndk() 53 auto encoded = encode_ndk(bm.pixmap(), rec.format, rec.quality); in DEF_TEST() 127 for (int quality : {-1, -100, 101, 200}) { in DEF_TEST() 128 REPORTER_ASSERT(r, !encode_ndk(bm.pixmap(), format, quality)); in DEF_TEST() 140 REPORTER_ASSERT(r, !encode_ndk(pm, rec.format, rec.quality)); in DEF_TEST() 163 REPORTER_ASSERT(r, !encode_ndk(pm, rec.format, rec.quality)); in DEF_TEST() 195 REPORTER_ASSERT(r, !encode_ndk(bm.pixmap(), rec.format, rec.quality)); in DEF_TEST() 204 REPORTER_ASSERT(r, !encode_ndk(bm.pixmap(), rec.format, rec.quality)); in DEF_TEST() [all …]
|
/external/skia/src/ports/ |
D | SkImageEncoder_NDK.cpp | 14 int quality) { in SkEncodeImageWithNDK() argument 47 if (quality == 100) { in SkEncodeImageWithNDK() 54 quality = 75; in SkEncodeImageWithNDK() 68 SkNDKConversions::toDataSpace(pmap.colorSpace()), pmap.addr(), androidFormat, quality, in SkEncodeImageWithNDK()
|
/external/webp/src/enc/ |
D | config_enc.c | 25 WebPPreset preset, float quality, int version) { in WebPConfigInitInternal() argument 31 config->quality = quality; in WebPConfigInitInternal() 100 if (config->quality < 0 || config->quality > 100) return 0; in WebPValidateConfig() 153 config->quality = kLosslessPresets[level].quality_; in WebPConfigLosslessPreset()
|
/external/sonic/ |
D | main.c | 25 int quality, in runSonic() argument 38 sonicSetQuality(stream, quality); in runSonic() 82 int quality = 0; in main() local 97 quality = 1; in main() 134 runSonic(inFile, outFile, speed, pitch, rate, volume, emulateChordPitch, quality, in main()
|
/external/skia/modules/canvaskit/htmlcanvas/ |
D | htmlcanvas.js | 49 this.toDataURL = function(codec, quality) { argument 64 quality = quality || 0.92; 65 var imgBytes = img.encodeToBytes(format, quality);
|
/external/skqp/experimental/canvaskit/htmlcanvas/ |
D | htmlcanvas.js | 49 this.toDataURL = function(codec, quality) { argument 64 var quality = quality || 0.92; 65 var skimg = img.encodeToData(format, quality);
|
/external/autotest/server/site_tests/audio_AudioBasicHeadphone/ |
D | control.quality | 8 NAME = "audio_AudioBasicHeadphone.quality" 9 PURPOSE = "Remotely controlled headphone audio test with quality check." 20 This test remotely tests headphone audio function and quality. 29 tag="quality")
|
/external/autotest/server/site_tests/audio_AudioBasicBluetoothRecord/ |
D | control.quality | 8 NAME = "audio_AudioBasicBluetoothRecord.quality" 9 PURPOSE = "Remotely controlled bluetooth record audio test with quality check." 20 This test remotely tests bluetooth record audio function and quality. 29 check_quality=True, tag="quality")
|