/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_org/third_party/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/skia/include/core/ |
D | SkImageEncoder.h | 46 SkData* encodeData(const SkBitmap&, int quality); 53 bool encodeFile(const char file[], const SkBitmap& bm, int quality); 60 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality); 62 static SkData* EncodeData(const SkBitmap&, Type, int quality); 64 int quality); 66 int quality); 76 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkImageEncoder.h | 46 SkData* encodeData(const SkBitmap&, int quality); 53 bool encodeFile(const char file[], const SkBitmap& bm, int quality); 60 bool encodeStream(SkWStream* stream, const SkBitmap& bm, int quality); 62 static SkData* EncodeData(const SkBitmap&, Type, int quality); 64 int quality); 66 int quality); 76 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) = 0;
|
/external/chromium_org/third_party/WebKit/Source/platform/image-encoders/skia/ |
D | JPEGImageEncoder.cpp | 109 static void disableSubsamplingForHighQuality(jpeg_compress_struct* cinfo, int quality) in disableSubsamplingForHighQuality() argument 111 if (quality < 100) in disableSubsamplingForHighQuality() 120 …s(IntSize imageSize, unsigned char* inputPixels, bool premultiplied, int quality, Vector<unsigned … in encodePixels() argument 155 jpeg_set_quality(&cinfo, quality, TRUE); in encodePixels() 156 disableSubsamplingForHighQuality(&cinfo, quality); in encodePixels() 181 jpeg_set_quality(&cinfo, quality, TRUE); in encodePixels() 182 disableSubsamplingForHighQuality(&cinfo, quality); in encodePixels() 200 bool JPEGImageEncoder::encode(const SkBitmap& bitmap, int quality, Vector<unsigned char>* output) in encode() argument 207 …idth(), bitmap.height()), static_cast<unsigned char *>(bitmap.getPixels()), true, quality, output); in encode() 210 bool JPEGImageEncoder::encode(const ImageDataBuffer& imageData, int quality, Vector<unsigned char>*… in encode() argument [all …]
|
D | WEBPImageEncoder.cpp | 86 …(IntSize imageSize, const unsigned char* pixels, bool premultiplied, int quality, Vector<unsigned … in encodePixels() argument 110 config.quality = quality; in encodePixels() 118 bool WEBPImageEncoder::encode(const SkBitmap& bitmap, int quality, Vector<unsigned char>* output) in encode() argument 125 …idth(), bitmap.height()), static_cast<unsigned char *>(bitmap.getPixels()), true, quality, output); in encode() 128 bool WEBPImageEncoder::encode(const ImageDataBuffer& imageData, int quality, Vector<unsigned char>*… in encode() argument 130 return encodePixels(imageData.size(), imageData.data(), false, quality, output); in encode()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/ |
D | BitmapBytesTranscoder.java | 11 private final int quality; field in BitmapBytesTranscoder 17 public BitmapBytesTranscoder(Bitmap.CompressFormat compressFormat, int quality) { in BitmapBytesTranscoder() argument 19 this.quality = quality; in BitmapBytesTranscoder() 25 toTranscode.get().compress(compressFormat, quality, os); in transcode()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | BitmapEncoder.java | 11 private int quality; field in BitmapEncoder 17 public BitmapEncoder(Bitmap.CompressFormat compressFormat, int quality) { in BitmapEncoder() argument 19 this.quality = quality; in BitmapEncoder() 25 bitmap.compress(getFormat(bitmap), quality, os); in encode() local
|
/external/chromium_org/ui/file_manager/gallery/js/image_editor/ |
D | image_encoder.js | 51 ImageEncoder.encodeMetadata = function(metadata, canvas, quality) { argument 54 encoder.setThumbnailData(ImageEncoder.createThumbnail(canvas), quality || 1); 66 ImageEncoder.getBlob = function(canvas, metadataEncoder, quality) { argument 72 quality = quality || 0.9; 78 canvas.toDataURL(metadataEncoder.getMetadata().mimeType, quality); 209 function(canvas, quality) { argument 211 canvas.toDataURL(this.metadata_.mimeType, 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()
|
/external/chromium_org/third_party/libjpeg_turbo/ |
D | jcparam.c | 127 jpeg_quality_scaling (int quality) in jpeg_quality_scaling() argument 134 if (quality <= 0) quality = 1; in jpeg_quality_scaling() 135 if (quality > 100) quality = 100; in jpeg_quality_scaling() 143 if (quality < 50) in jpeg_quality_scaling() 144 quality = 5000 / quality; in jpeg_quality_scaling() 146 quality = 200 - quality*2; in jpeg_quality_scaling() 148 return quality; in jpeg_quality_scaling() 153 jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline) in jpeg_set_quality() argument 161 quality = jpeg_quality_scaling(quality); in jpeg_set_quality() 164 jpeg_set_linear_quality(cinfo, quality, force_baseline); in jpeg_set_quality()
|
/external/qemu/distrib/jpeg-6b/ |
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()
|
/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/chromium_org/third_party/icu/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/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/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() 157 config->quality = kLosslessPresets[level].quality_; in WebPConfigLosslessPreset()
|
D | alpha.c | 84 config.quality = 8.f * effort_level; in EncodeLossless() 85 assert(config.quality >= 0 && config.quality <= 100.f); in EncodeLossless() 268 int quality, int method, int filter, in EncodeAlpha() argument 279 const int reduce_levels = (quality < 100); in EncodeAlpha() 289 if (quality < 0 || quality > 100) { in EncodeAlpha() 314 const int alpha_levels = (quality <= 70) ? (2 + quality / 5) in EncodeAlpha() 315 : (16 + (quality - 70) * 8); in EncodeAlpha()
|
/external/chromium_org/third_party/libwebp/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() 157 config->quality = kLosslessPresets[level].quality_; in WebPConfigLosslessPreset()
|
D | alpha.c | 84 config.quality = 8.f * effort_level; in EncodeLossless() 85 assert(config.quality >= 0 && config.quality <= 100.f); in EncodeLossless() 268 int quality, int method, int filter, in EncodeAlpha() argument 279 const int reduce_levels = (quality < 100); in EncodeAlpha() 289 if (quality < 0 || quality > 100) { in EncodeAlpha() 314 const int alpha_levels = (quality <= 70) ? (2 + quality / 5) in EncodeAlpha() 315 : (16 + (quality - 70) * 8); in EncodeAlpha()
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | ImageBuffer.cpp | 397 static bool encodeImage(T& source, const String& mimeType, const double* quality, Vector<char>* out… in encodeImage() argument 403 if (quality && *quality >= 0.0 && *quality <= 1.0) in encodeImage() 404 compressionQuality = static_cast<int>(*quality * 100 + 0.5); in encodeImage() 409 if (quality && *quality >= 0.0 && *quality <= 1.0) in encodeImage() 410 compressionQuality = static_cast<int>(*quality * 100 + 0.5); in encodeImage() 422 String ImageBuffer::toDataURL(const String& mimeType, const double* quality) const in toDataURL() 427 if (!isSurfaceValid() || !encodeImage(m_surface->bitmap(), mimeType, quality, &encodedImage)) in toDataURL() 433 …ImageDataToDataURL(const ImageDataBuffer& imageData, const String& mimeType, const double* quality) in ImageDataToDataURL() argument 438 if (!encodeImage(imageData, mimeType, quality, &encodedImage)) in ImageDataToDataURL()
|
/external/chromium_org/content/common/gpu/client/ |
D | gl_helper.cc | 147 GLHelper::ScalerQuality quality); 183 GLHelper::ScalerQuality quality); 186 GLHelper::ScalerQuality quality, 244 GLHelper::ScalerQuality quality, 282 GLHelper::ScalerQuality quality, 326 GLHelper::ScalerQuality quality); 369 GLHelper::ScalerInterface* GLHelper::CreateScaler(ScalerQuality quality, in CreateScaler() argument 376 return scaler_impl_->CreateScaler(quality, in CreateScaler() 392 GLHelper::ScalerQuality quality) { in ScaleTexture() argument 417 helper_->CreateScaler(quality, in ScaleTexture() [all …]
|
/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/chromium_org/third_party/speex/libspeex/ |
D | resample.c | 117 int quality; member 555 st->oversample = quality_map[st->quality].oversample; in update_filter() 556 st->filt_len = quality_map[st->quality].base_length; in update_filter() 561 st->cutoff = quality_map[st->quality].downsample_bandwidth * st->den_rate / st->num_rate; in update_filter() 578 st->cutoff = quality_map[st->quality].upsample_bandwidth; in update_filter() 597 …_t)st->filt_len/2+1)-((float)i)/st->den_rate), st->filt_len, quality_map[st->quality].window_func); in update_filter() 603 if (st->quality>8) in update_filter() 619 …ff,(i/(float)st->oversample - st->filt_len/2), st->filt_len, quality_map[st->quality].window_func); in update_filter() 623 if (st->quality>8) in update_filter() 718 …_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 …]
|