/external/skia/src/images/ |
D | SkImageEncoder.cpp | 16 int quality) { in encodeStream() argument 17 quality = SkMin32(100, SkMax32(0, quality)); in encodeStream() 18 return this->onEncode(stream, bm, quality); in encodeStream() 22 int quality) { in encodeFile() argument 23 quality = SkMin32(100, SkMax32(0, quality)); in encodeFile() 25 return this->onEncode(&stream, bm, quality); in encodeFile() 28 SkData* SkImageEncoder::encodeData(const SkBitmap& bm, int quality) { in encodeData() argument 30 quality = SkMin32(100, SkMax32(0, quality)); in encodeData() 31 if (this->onEncode(&stream, bm, quality)) { in encodeData() 38 int quality) { in EncodeFile() argument [all …]
|
/external/chromium-trace/trace-viewer/third_party/WebOb/webob/ |
D | acceptparse.py | 55 quality = match.group(2) or '' 56 if quality: 58 quality = max(min(float(quality), 1), 0) 59 yield (name, quality) 78 for mask, quality in self._parsed: 79 if quality != 1: 81 mask, min(len(str(quality).split('.')[1]), 3), quality) 94 name, quality = item 95 result.append('%s; q=%s' % (name, quality)) 119 for mask, quality in self._parsed_nonzero: [all …]
|
/external/skia/include/core/ |
D | SkImageEncoder.h | 47 SkData* encodeData(const SkBitmap&, int quality); 54 bool encodeFile(const char file[], const SkBitmap& bm, int quality); 61 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality); 64 Type, int quality); 65 static SkData* EncodeData(const SkBitmap&, Type, int quality); 68 int quality); 70 int quality); 80 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
|
/external/chromium-trace/trace-viewer/third_party/Paste/tests/test_util/ |
D | test_mimeparse.py | 156 assert quality('text/html', 159 assert quality('text/html;level=2', 162 assert quality('text/plain', 165 assert quality('plain/text', 168 assert quality('text/html;level=1', 171 assert quality('image/jpeg', 174 assert quality('text/html;level=2', 177 assert quality('text/html;level=3',
|
/external/skia/src/core/ |
D | SkMaskCache.cpp | 23 RRectBlurKey(SkScalar sigma, const SkRRect& rrect, SkBlurStyle style, SkBlurQuality quality) in RRectBlurKey() 26 , fQuality(quality) in RRectBlurKey() 73 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef() argument 76 RRectBlurKey key(sigma, rrect, style, quality); in FindAndRef() 86 void SkMaskCache::Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in Add() argument 89 RRectBlurKey key(sigma, rrect, style, quality); in Add() 100 RectsBlurKey(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in RectsBlurKey() 104 , fQuality(quality) in RectsBlurKey() 164 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef() argument 168 RectsBlurKey key(sigma, style, quality, rects, count); in FindAndRef() [all …]
|
D | SkMaskCache.h | 26 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, 29 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, 36 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, 39 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
|
/external/jpeg/ |
D | jcparam.c | 106 jpeg_quality_scaling (int quality) in jpeg_quality_scaling() argument 113 if (quality <= 0) quality = 1; in jpeg_quality_scaling() 114 if (quality > 100) quality = 100; in jpeg_quality_scaling() 122 if (quality < 50) in jpeg_quality_scaling() 123 quality = 5000 / quality; in jpeg_quality_scaling() 125 quality = 200 - quality*2; in jpeg_quality_scaling() 127 return quality; in jpeg_quality_scaling() 132 jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline) in jpeg_set_quality() argument 140 quality = jpeg_quality_scaling(quality); in jpeg_set_quality() 143 jpeg_set_linear_quality(cinfo, quality, force_baseline); in jpeg_set_quality()
|
D | usage.doc | 20 you may get poor image quality and/or little compression. 26 is possible if you can tolerate a low-quality image. You can trade off image 27 quality against file size by adjusting the compressor's "quality" setting. 79 -quality N Scale quantization tables to adjust image quality. 94 memory. Image quality and speed of decompression are 105 The -quality switch lets you trade off compressed file size against quality of 106 the reconstructed image: the higher the quality setting, the larger the JPEG 108 you want to use the lowest quality setting (smallest file) that decompresses 110 purpose the quality setting should be between 50 and 95; the default of 75 is 111 often about right. If you see defects at -quality 75, then go up 5 or 10 [all …]
|
/external/pdfium/core/src/fxcodec/libjpeg/ |
D | fpdfapi_jcparam.c | 107 jpeg_quality_scaling (int quality) in jpeg_quality_scaling() argument 114 if (quality <= 0) quality = 1; in jpeg_quality_scaling() 115 if (quality > 100) quality = 100; in jpeg_quality_scaling() 123 if (quality < 50) in jpeg_quality_scaling() 124 quality = 5000 / quality; in jpeg_quality_scaling() 126 quality = 200 - quality*2; in jpeg_quality_scaling() 128 return quality; in jpeg_quality_scaling() 133 jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline) in jpeg_set_quality() argument 141 quality = jpeg_quality_scaling(quality); in jpeg_set_quality() 144 jpeg_set_linear_quality(cinfo, quality, force_baseline); in jpeg_set_quality()
|
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CharsetRecog_2022.java | 38 int quality; in match() local 80 quality = (100*hits - 100*misses) / (hits + misses); in match() 86 quality -= (5-(hits+shifts))*10; in match() 89 if (quality < 0) { in match() 90 quality = 0; in match() 92 return quality; in match()
|
/external/skia/tests/ |
D | MaskCacheTest.cpp | 39 SkBlurQuality quality = kLow_SkBlurQuality; in DEF_TEST() local 42 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST() 51 SkMaskCache::Add(sigma, style, quality, rrect, mask, data, &cache); in DEF_TEST() 58 data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST() 77 SkBlurQuality quality = kLow_SkBlurQuality; in DEF_TEST() local 80 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST() 89 SkMaskCache::Add(sigma, style, quality, rects, 1, mask, data, &cache); in DEF_TEST() 96 data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
|
D | BlurTest.cpp | 424 const SkBlurQuality quality = blurMaskFilterFlags_as_quality(blurMaskFilterFlags); in test_blurDrawLooper() local 444 REPORTER_ASSERT(reporter, rec.fQuality == quality); in test_blurDrawLooper() 450 SkBlurStyle style, SkBlurQuality quality, bool expectSuccess) { in test_delete_looper() argument 460 REPORTER_ASSERT(reporter, rec.fQuality == quality); in test_delete_looper() 483 SkBlurStyle style, SkBlurQuality quality, bool expectSuccess) { in test_layerDrawLooper() argument 490 test_delete_looper(reporter, builder.detachLooper(), sigma, style, quality, false); in test_layerDrawLooper() 495 test_delete_looper(reporter, builder.detachLooper(), sigma, style, quality, false); in test_layerDrawLooper() 500 test_delete_looper(reporter, builder.detachLooper(), sigma, style, quality, expectSuccess); in test_layerDrawLooper() 506 test_delete_looper(reporter, builder.detachLooper(), sigma, style, quality, false); in test_layerDrawLooper() 525 const SkBlurQuality quality = blurMaskFilterFlags_as_quality(flags); in test_asABlur() local [all …]
|
/external/icu/icu4c/source/i18n/ |
D | csr2022.cpp | 40 int32_t quality; in match_2022() local 90 quality = (100*hits - 100*misses) / (hits + misses); in match_2022() 96 quality -= (5-(hits+shifts))*10; in match_2022() 99 if (quality < 0) { in match_2022() 100 quality = 0; in match_2022() 103 return quality; in match_2022()
|
/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/webp/src/enc/ |
D | backward_references.c | 226 static void GetParamsForHashChainFindCopy(int quality, int xsize, in GetParamsForHashChainFindCopy() argument 229 const int iter_mult = (quality < 27) ? 1 : 1 + ((quality - 27) >> 4); in GetParamsForHashChainFindCopy() 230 const int iter_neg = -iter_mult * (quality >> 1); in GetParamsForHashChainFindCopy() 232 const int max_window_size = (quality > 50) ? WINDOW_SIZE in GetParamsForHashChainFindCopy() 233 : (quality > 25) ? (xsize << 8) in GetParamsForHashChainFindCopy() 238 *iter_pos = 8 + (quality >> 3); in GetParamsForHashChainFindCopy() 351 int cache_bits, int quality, in BackwardReferencesHashChain() argument 370 GetParamsForHashChainFindCopy(quality, xsize, cache_bits, in BackwardReferencesHashChain() 465 const uint32_t* const argb, int quality, int cache_bits, 492 int quality, int cache_bits, in CostModelBuild() argument [all …]
|
D | config.c | 21 WebPPreset preset, float quality, int version) { in WebPConfigInitInternal() argument 27 config->quality = quality; in WebPConfigInitInternal() 90 if (config->quality < 0 || config->quality > 100) in WebPValidateConfig() 161 config->quality = kLosslessPresets[level].quality_; in WebPConfigLosslessPreset()
|
D | alpha.c | 83 config.quality = 8.f * effort_level; in EncodeLossless() 84 assert(config.quality >= 0 && config.quality <= 100.f); in EncodeLossless() 287 int quality, int method, int filter, in EncodeAlpha() argument 298 const int reduce_levels = (quality < 100); in EncodeAlpha() 308 if (quality < 0 || quality > 100) { in EncodeAlpha() 333 const int alpha_levels = (quality <= 70) ? (2 + quality / 5) in EncodeAlpha() 334 : (16 + (quality - 70) * 8); in EncodeAlpha()
|
D | vp8l.c | 486 int quality) { in EncodeImageNoHuffman() argument 503 refs = VP8LGetBackwardReferences(width, height, argb, quality, 0, 1, in EncodeImageNoHuffman() 559 int width, int height, int quality, in EncodeImageInternal() argument 593 best_refs = VP8LGetBackwardReferences(width, height, argb, quality, in EncodeImageInternal() 601 quality, histogram_bits, cache_bits, in EncodeImageInternal() 649 quality); in EncodeImageInternal() 740 int width, int height, int quality, in ApplyPredictFilter() argument 756 quality); in ApplyPredictFilter() 761 int quality, in ApplyCrossColorFilter() argument 767 VP8LColorSpaceTransform(width, height, ccolor_transform_bits, quality, in ApplyCrossColorFilter() [all …]
|
/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()
|
D | Main.java | 28 int quality, in runSonic() argument 43 sonic.setQuality(quality); in runSonic() 68 int quality = 0; in main() local 79 runSonic(stream, line, speed, pitch, rate, volume, emulateChordPitch, quality, in main()
|
/external/skia/src/image/ |
D | SkImage.cpp | 59 SkData* SkImage::encode(SkImageEncoder::Type type, int quality) const { in encode() 62 return SkImageEncoder::EncodeData(bm, type, quality); in encode() 89 SkFilterQuality quality) const { in newImage() 109 return as_IB(this)->onNewImage(newWidth, newHeight, subset, quality); in newImage() 146 SkFilterQuality quality) const { in onNewImage() 167 paint.setFilterQuality(quality); in onNewImage()
|
/external/speex/libspeex/ |
D | resample.c | 121 int quality; member 561 st->oversample = quality_map[st->quality].oversample; in update_filter() 562 st->filt_len = quality_map[st->quality].base_length; in update_filter() 567 st->cutoff = quality_map[st->quality].downsample_bandwidth * st->den_rate / st->num_rate; in update_filter() 584 st->cutoff = quality_map[st->quality].upsample_bandwidth; in update_filter() 607 …_t)st->filt_len/2+1)-((float)i)/st->den_rate), st->filt_len, quality_map[st->quality].window_func); in update_filter() 613 if (st->quality>8) in update_filter() 629 …ff,(i/(float)st->oversample - st->filt_len/2), st->filt_len, quality_map[st->quality].window_func); in update_filter() 633 if (st->quality>8) in update_filter() 728 …_init(spx_uint32_t nb_channels, spx_uint32_t in_rate, spx_uint32_t out_rate, int quality, int *err) in speex_resampler_init() argument [all …]
|
/external/skia/src/animator/ |
D | SkSnapshot.cpp | 21 SK_MEMBER(quality, Float), 32 quality = 100 * SK_Scalar1; in SkSnapshot() 67 encoder->encodeFile(name.c_str(), pixels, SkScalarFloorToInt(quality)); in draw()
|
/external/skia/src/ports/ |
D | SkImageDecoder_empty.cpp | 108 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int quality) { in EncodeFile() argument 116 SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) { in EncodeData() argument 128 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quality) { in encodeFile() argument
|