Home
last modified time | relevance | path

Searched refs:quality (Results 1 – 25 of 746) sorted by relevance

12345678910>>...30

/third_party/node/deps/brotli/c/enc/
Dquality.h36 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 …]
/third_party/skia/third_party/externals/brotli/c/enc/
Dquality.h36 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 …]
/third_party/skia/src/images/
DSkImageEncoder.cpp38 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 …]
/third_party/node/deps/npm/node_modules/libnpmsearch/lib/
Dindex.js15 quality: 0.65, property
24 opts.quality = 0.65
30 opts.quality = 1
36 opts.quality = 0
42 opts.quality = 0
55 quality: opts.quality, property
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/
DEncoder.java29 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()
/third_party/astc-encoder/Test/
Dastc_test_competitive.py53 def run_astcenc(in_image, out_image, block_size, quality): argument
54 args = [ASTC_BIN, "-tl", in_image, out_image, block_size, quality, "-j", "1"]
59 def run_ispc(in_image, out_image, block_size, quality): argument
60 args = [ISPC_BIN, in_image, out_image, block_size, quality]
88 for quality in ISPC_QUALITY:
95 result_rate += run_ispc(image, OUT_CIMAGE, block_size, quality)
104 for quality in ASTC_QUALITY:
111 result_rate += run_astcenc(image, OUT_DIMAGE, block_size, quality)
Dastc_test_result_report.py85 quality = match.group(2)
94 skip = [1 for filt in QUALITY_FILTER if filt.match(quality)]
108 results[imageSet][quality]["ref-%s" % encoder] = patchedRef
126 def __init__(self, imageSet, quality, encoders, records): argument
128 self.quality = quality
231 self.quality,
247 def print_result_set(imageSet, quality, encoders, results, printHeader): argument
277 dr = DeltaRecord(imageSet, quality, encoders, recordSet)
Dastc_quality_test.py89 for quality in range (0, 101, 2):
94 if (quality < 40):
96 elif (quality < 75):
108 "%s" % quality,
117 print("%s, %u, %0.3f, %0.3f" % (block, quality, np.mean(resultsS), np.mean(resultsQ)))
Dastc_test_result_plot.py62 quality = match.group(2)
71 results[imageSet][quality]["ref-%s" % encoder] = testRef
84 for quality, qResults in iResults.items():
85 if quality != tgtQuality:
131 def get_human_eq_name(encoder, quality): argument
134 return "astcenc %s -%s" % (parts[1], quality)
136 return "astcenc-%s %s -%s" % (parts[2], parts[1], quality)
147 def get_human_q_name(quality): argument
148 return "-%s" % quality
/third_party/skia/third_party/externals/libjpeg-turbo/
Djcparam.c130 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()
Dusage.txt71 -quality N[,...] Scale quantization tables to adjust image quality.
90 memory. Image quality and speed of decompression are
101 The -quality switch lets you trade off compressed file size against quality of
102 the reconstructed image: the higher the quality setting, the larger the JPEG
104 you want to use the lowest quality setting (smallest file) that decompresses
106 purpose the quality setting should generally be between 50 and 95 (the default
107 is 75) for photographic images. If you see defects at -quality 75, then go up
111 -quality 100 will generate a quantization table of all 1's, minimizing loss
113 as well as roundoff error.) For most images, specifying a quality value above
115 the quality gain from these higher quality values is measurable (using metrics
[all …]
/third_party/ffmpeg/doc/
Drate_distortion.txt4 "optimally" really mean? It means that we want to get the best quality at a
5 given filesize OR we want to get the smallest filesize at a given quality
12 But first, a word about quality, which is also called distortion.
13 Distortion can be quantified by almost any quality measurement one chooses.
25 distortion is the quality
26 lambda is a fixed value chosen as a tradeoff between quality and filesize
27 Is this equivalent to finding the best quality for a given max
29 factor for which minimizing above will get you the best quality (using your
30 chosen quality measurement) at the desired (or lower) filesize.
34 Directly splitting the problem of finding the best quality at a given
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Daudioresample.c771 test_pipeline (const gchar * format, gint inrate, gint outrate, gint quality) in test_pipeline() argument
781 format, inrate, quality, format, outrate); in test_pipeline()
816 gint quality; in GST_START_TEST() local
819 for (quality = 0; quality < 11; quality += 5) { in GST_START_TEST()
820 GST_DEBUG ("Checking with quality %d", quality); in GST_START_TEST()
822 test_pipeline ("S8", 44100, 48000, quality); in GST_START_TEST()
823 test_pipeline ("S8", 48000, 44100, quality); in GST_START_TEST()
825 test_pipeline (GST_AUDIO_NE (S16), 44100, 48000, quality); in GST_START_TEST()
826 test_pipeline (GST_AUDIO_NE (S16), 48000, 44100, quality); in GST_START_TEST()
828 test_pipeline (GST_AUDIO_NE (S24), 44100, 48000, quality); in GST_START_TEST()
[all …]
/third_party/skia/gm/
Dencode_color_types.cpp75 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);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_2022.java40 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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DCharsetRecog_2022.java41 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()
/third_party/ffmpeg/libavcodec/
Dnuv.c39 int quality; member
107 static void get_quant_quality(NuvContext *c, int quality) in get_quant_quality() argument
110 quality = FFMAX(quality, 1); in get_quant_quality()
112 c->lq[i] = (fallback_lquant[i] << 7) / quality; in get_quant_quality()
113 c->cq[i] = (fallback_cquant[i] << 7) / quality; in get_quant_quality()
118 int quality) in codec_reinit() argument
125 if (quality >= 0) in codec_reinit()
126 get_quant_quality(c, quality); in codec_reinit()
148 } else if (quality != c->quality) in codec_reinit()
338 c->quality = -1; in decode_init()
/third_party/node/deps/icu-small/source/i18n/
Dcsr2022.cpp41 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()
/third_party/skia/third_party/externals/icu/source/i18n/
Dcsr2022.cpp41 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()
/third_party/icu/icu4c/source/i18n/
Dcsr2022.cpp41 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()
/third_party/libsnd/tests/
Dcompression_size_test.c127 double quality ; in compression_size_test() local
149 quality = 0.3 ; in compression_size_test()
150 sf_command (q3_file, SFC_SET_VBR_ENCODING_QUALITY, &quality, sizeof (quality)) ; in compression_size_test()
151 quality = 0.6 ; in compression_size_test()
152 sf_command (q6_file, SFC_SET_VBR_ENCODING_QUALITY, &quality, sizeof (quality)) ; in compression_size_test()
/third_party/skia/third_party/externals/brotli/tests/
Droundtrip_test.sh24 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
/third_party/skia/tests/
DNdkEncodeTest.cpp30 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 …]
/third_party/skia/third_party/externals/libwebp/src/enc/
Dconfig_enc.c25 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()
/third_party/skia/src/ports/
DSkImageEncoder_NDK.cpp14 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()

12345678910>>...30