/external/pdfium/third_party/libpng16/ |
D | pngwtran.c | 25 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) in png_do_pack() argument 29 if (row_info->bit_depth == 8 && in png_do_pack() 32 switch ((int)bit_depth) in png_do_pack() 155 row_info->bit_depth = (png_byte)bit_depth; in png_do_pack() 156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack() 173 png_const_color_8p bit_depth) in png_do_shift() argument 184 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift() 185 shift_dec[channels] = bit_depth->red; in png_do_shift() 188 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift() 189 shift_dec[channels] = bit_depth->green; in png_do_shift() [all …]
|
D | pngtrans.c | 42 if (png_ptr->bit_depth == 16) in png_set_swap() 57 if (png_ptr->bit_depth < 8) in png_set_packing() 77 if (png_ptr->bit_depth < 8) in png_set_packswap() 162 if (png_ptr->bit_depth >= 8) in png_set_filler() 282 row_info->bit_depth == 8) in png_do_invert() 297 row_info->bit_depth == 16) in png_do_invert() 322 if (row_info->bit_depth == 16) in png_do_swap() 458 if (row_info->bit_depth < 8) in png_do_packswap() 465 if (row_info->bit_depth == 1) in png_do_packswap() 468 else if (row_info->bit_depth == 2) in png_do_packswap() [all …]
|
D | pngrtran.c | 1236 switch (png_ptr->bit_depth) in png_init_rgb_transformations() 1490 png_ptr->bit_depth != 16) in png_init_read_transformations() 1517 png_ptr->bit_depth == 16) in png_init_read_transformations() 1574 png_build_gamma_table(png_ptr, png_ptr->bit_depth); in png_init_read_transformations() 1945 info_ptr->bit_depth = 8; in png_read_transform_info() 1958 if (info_ptr->bit_depth < 8) in png_read_transform_info() 1959 info_ptr->bit_depth = 8; in png_read_transform_info() 1988 if (info_ptr->bit_depth == 16) in png_read_transform_info() 1993 info_ptr->bit_depth = 8; in png_read_transform_info() 1998 info_ptr->bit_depth = 8; in png_read_transform_info() [all …]
|
/external/libpng/ |
D | pngwtran.c | 25 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) in png_do_pack() argument 29 if (row_info->bit_depth == 8 && in png_do_pack() 32 switch ((int)bit_depth) in png_do_pack() 155 row_info->bit_depth = (png_byte)bit_depth; in png_do_pack() 156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack() 173 png_const_color_8p bit_depth) in png_do_shift() argument 184 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift() 185 shift_dec[channels] = bit_depth->red; in png_do_shift() 188 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift() 189 shift_dec[channels] = bit_depth->green; in png_do_shift() [all …]
|
D | pngtrans.c | 42 if (png_ptr->bit_depth == 16) in png_set_swap() 57 if (png_ptr->bit_depth < 8) in png_set_packing() 77 if (png_ptr->bit_depth < 8) in png_set_packswap() 162 if (png_ptr->bit_depth >= 8) in png_set_filler() 283 row_info->bit_depth == 8) in png_do_invert() 298 row_info->bit_depth == 16) in png_do_invert() 323 if (row_info->bit_depth == 16) in png_do_swap() 459 if (row_info->bit_depth < 8) in png_do_packswap() 466 if (row_info->bit_depth == 1) in png_do_packswap() 469 else if (row_info->bit_depth == 2) in png_do_packswap() [all …]
|
D | pngrtran.c | 1239 switch (png_ptr->bit_depth) in png_init_rgb_transformations() 1493 png_ptr->bit_depth != 16) in png_init_read_transformations() 1520 png_ptr->bit_depth == 16) in png_init_read_transformations() 1577 png_build_gamma_table(png_ptr, png_ptr->bit_depth); in png_init_read_transformations() 1948 info_ptr->bit_depth = 8; in png_read_transform_info() 1961 if (info_ptr->bit_depth < 8) in png_read_transform_info() 1962 info_ptr->bit_depth = 8; in png_read_transform_info() 1991 if (info_ptr->bit_depth == 16) in png_read_transform_info() 1996 info_ptr->bit_depth = 8; in png_read_transform_info() 2001 info_ptr->bit_depth = 8; in png_read_transform_info() [all …]
|
/external/syslinux/com32/lib/libpng/ |
D | pngwtran.c | 57 (png_uint_32)png_ptr->bit_depth); in png_do_write_transformations() 92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) in png_do_pack() argument 96 if (row_info->bit_depth == 8 && in png_do_pack() 102 switch ((int)bit_depth) in png_do_pack() 202 row_info->bit_depth = (png_byte)bit_depth; in png_do_pack() 203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack() 219 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth) in png_do_shift() argument 235 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift() 236 shift_dec[channels] = bit_depth->red; in png_do_shift() 238 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift() [all …]
|
D | pngtrans.c | 41 if (png_ptr->bit_depth == 16) in png_set_swap() 55 if (png_ptr->bit_depth < 8) in png_set_packing() 72 if (png_ptr->bit_depth < 8) in png_set_packswap() 144 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8) in png_set_filler() 229 row_info->bit_depth == 8) in png_do_invert() 242 row_info->bit_depth == 16) in png_do_invert() 269 row_info->bit_depth == 16) in png_do_swap() 401 row_info->bit_depth < 8) in png_do_packswap() 407 if (row_info->bit_depth == 1) in png_do_packswap() 409 else if (row_info->bit_depth == 2) in png_do_packswap() [all …]
|
D | pngrtran.c | 818 switch (png_ptr->bit_depth) in png_init_read_transformations() 1035 double m = (double)(((png_uint_32)1 << png_ptr->bit_depth) - 1); in png_init_read_transformations() 1204 info_ptr->bit_depth = 8; in png_read_transform_info() 1214 if (info_ptr->bit_depth < 8) in png_read_transform_info() 1215 info_ptr->bit_depth = 8; in png_read_transform_info() 1243 if ((png_ptr->transformations & PNG_16_TO_8) && (info_ptr->bit_depth == 16)) in png_read_transform_info() 1244 info_ptr->bit_depth = 8; in png_read_transform_info() 1262 png_ptr->palette_lookup && info_ptr->bit_depth == 8) in png_read_transform_info() 1270 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8)) in png_read_transform_info() 1271 info_ptr->bit_depth = 8; in png_read_transform_info() [all …]
|
/external/libpng/contrib/examples/ |
D | pngpixel.c | 35 unsigned int bit_depth, unsigned int channels) in component() argument 42 png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels); in component() 43 png_uint_32 bit_offset_lo = bit_depth * ((x & 0x3f) * channels + c); in component() 53 switch (bit_depth) in component() 64 fprintf(stderr, "pngpixel: invalid bit depth %u\n", bit_depth); in component() 76 PNG_CONST unsigned int bit_depth = png_get_bit_depth(png_ptr, info_ptr); in print_pixel() local 81 printf("GRAY %u\n", component(row, x, 0, bit_depth, 1)); in print_pixel() 90 PNG_CONST int index = component(row, x, 0, bit_depth, 1); in print_pixel() 119 printf("RGB %u %u %u\n", component(row, x, 0, bit_depth, 3), in print_pixel() 120 component(row, x, 1, bit_depth, 3), in print_pixel() [all …]
|
/external/libpng/contrib/libtests/ |
D | makepng.c | 201 pixel_depth_of_type(int color_type, int bit_depth) in pixel_depth_of_type() argument 203 return channels_of_type(color_type) * bit_depth; in pixel_depth_of_type() 207 image_size_of_type(int color_type, int bit_depth, unsigned int *colors, in image_size_of_type() argument 215 int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in image_size_of_type() 249 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, in generate_palette() argument 289 if (bit_depth == 1) in generate_palette() 298 unsigned int size = 1U << (bit_depth/2); /* 2, 4 or 16 */ in generate_palette() 329 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, in set_value() argument 332 unsigned int mask = (1U << bit_depth)-1; in set_value() 334 x *= bit_depth; /* Maximum x is 4*1024, maximum bit_depth is 16 */ in set_value() [all …]
|
D | pngvalid.c | 380 int bit_depth, unsigned int npalette, int interlace_type, in standard_name() argument 395 pos = safecatn(buffer, bufsize, pos, bit_depth); in standard_name() 446 #define PALETTE_COUNT(bit_depth) ((bit_depth) > 4 ? 1U : 16U) argument 449 next_format(png_bytep colour_type, png_bytep bit_depth, in next_format() argument 452 if (*bit_depth == 0) in next_format() 456 *bit_depth = 1; in next_format() 458 *bit_depth = 8; in next_format() 472 (ct == 3/*PALETTE*/ && pn < PALETTE_COUNT(*bit_depth))) in next_format() 479 *bit_depth = (png_byte)(*bit_depth << 1); in next_format() 482 if (*bit_depth <= 8 in next_format() [all …]
|
/external/libpng/contrib/pngminus/ |
D | pnm2png.c | 224 volatile int bit_depth = 0; in pnm2png() local 254 bit_depth = 1; in pnm2png() 276 bit_depth = 1; in pnm2png() 278 bit_depth = 2; in pnm2png() 280 bit_depth = 4; in pnm2png() 282 bit_depth = 8; in pnm2png() 284 bit_depth = 16; in pnm2png() 300 bit_depth = 1; in pnm2png() 302 bit_depth = 2; in pnm2png() 304 bit_depth = 4; in pnm2png() [all …]
|
D | png2pnm.c | 219 int bit_depth; in png2pnm() local 266 &width, &height, &bit_depth, &color_type, in png2pnm() 275 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) in png2pnm() 283 if (bit_depth == 16) in png2pnm() 300 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, in png2pnm() 304 if (bit_depth == 16) in png2pnm() 378 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm() 385 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm() 396 fprintf (alpha_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm() 411 if (bit_depth == 16){ in png2pnm() [all …]
|
/external/libhevc/common/ |
D | ihevc_iquant_recon.c | 125 WORD32 log2_trans_size, bit_depth; in ihevc_iquant_recon_4x4_ttype1() local 128 bit_depth = 8 + 0; in ihevc_iquant_recon_4x4_ttype1() 129 shift_iq = bit_depth + log2_trans_size - 5; in ihevc_iquant_recon_4x4_ttype1() 237 WORD32 log2_trans_size, bit_depth; in ihevc_iquant_recon_4x4() local 240 bit_depth = 8 + 0; in ihevc_iquant_recon_4x4() 241 shift_iq = bit_depth + log2_trans_size - 5; in ihevc_iquant_recon_4x4() 348 WORD32 log2_trans_size, bit_depth; in ihevc_iquant_recon_8x8() local 351 bit_depth = 8 + 0; in ihevc_iquant_recon_8x8() 352 shift_iq = bit_depth + log2_trans_size - 5; in ihevc_iquant_recon_8x8() 460 WORD32 log2_trans_size, bit_depth; in ihevc_iquant_recon_16x16() local [all …]
|
D | ihevc_trans_macros.h | 41 …WORD32 bit_depth,transform_shift; … 46 …bit_depth = 8; … 47 …transform_shift = MAX_TR_DYNAMIC_RANGE - bit_depth - log2_trans_size; … 62 #define QUANT_HBD(out, inp, quant_coeff, qp_div, log2_trans_size, q_add, bit_depth) \ argument 72 …transform_shift = MAX_TR_DYNAMIC_RANGE - bit_depth - log2_trans_size; … 91 …WORD32 bit_depth,transform_shift; … 96 …bit_depth = 8; … 97 …transform_shift = MAX_TR_DYNAMIC_RANGE - bit_depth - log2_trans_size; … 112 #define QUANT_NO_WEIGHTMAT_HBD(out, inp, quant_coeff, qp_div, log2_trans_size, q_add, bit_depth) \ argument 122 …transform_shift = MAX_TR_DYNAMIC_RANGE - bit_depth - log2_trans_size; …
|
D | ihevc_sao.c | 202 WORD32 bit_depth; in ihevc_sao_edge_offset_class0() local 205 bit_depth = BIT_DEPTH_LUMA; in ihevc_sao_edge_offset_class0() 248 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class0() 286 WORD32 bit_depth; in ihevc_sao_edge_offset_class0_chroma() local 289 bit_depth = BIT_DEPTH_CHROMA; in ihevc_sao_edge_offset_class0_chroma() 347 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class0_chroma() 382 WORD32 bit_depth; in ihevc_sao_edge_offset_class1() local 386 bit_depth = BIT_DEPTH_LUMA; in ihevc_sao_edge_offset_class1() 440 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class1() 476 WORD32 bit_depth; in ihevc_sao_edge_offset_class1_chroma() local [all …]
|
D | ihevc_chroma_iquant_recon.c | 131 WORD32 log2_trans_size, bit_depth; in ihevc_chroma_iquant_recon_4x4() local 134 bit_depth = 8 + 0; in ihevc_chroma_iquant_recon_4x4() 135 shift_iq = bit_depth + log2_trans_size - 5; in ihevc_chroma_iquant_recon_4x4() 243 WORD32 log2_trans_size, bit_depth; in ihevc_chroma_iquant_recon_8x8() local 246 bit_depth = 8 + 0; in ihevc_chroma_iquant_recon_8x8() 247 shift_iq = bit_depth + log2_trans_size - 5; in ihevc_chroma_iquant_recon_8x8() 356 WORD32 log2_trans_size, bit_depth; in ihevc_chroma_iquant_recon_16x16() local 359 bit_depth = 8 + 0; in ihevc_chroma_iquant_recon_16x16() 360 shift_iq = bit_depth + log2_trans_size - 5; in ihevc_chroma_iquant_recon_16x16()
|
D | ihevc_intra_pred.h | 169 UWORD8 bit_depth); 179 UWORD8 bit_depth); 189 UWORD8 bit_depth); 199 UWORD8 bit_depth); 209 UWORD8 bit_depth); 219 UWORD8 bit_depth); 229 UWORD8 bit_depth); 239 UWORD8 bit_depth); 248 UWORD8 bit_depth); 259 UWORD8 bit_depth); [all …]
|
D | ihevc_inter_pred.h | 97 UWORD8 bit_depth); 108 UWORD8 bit_depth); 119 UWORD8 bit_depth); 130 UWORD8 bit_depth); 143 UWORD8 bit_depth); 162 UWORD8 bit_depth); 176 UWORD8 bit_depth); 189 UWORD8 bit_depth); 210 UWORD8 bit_depth); 222 UWORD8 bit_depth);
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_ratectrl.c | 48 #define ASSIGN_MINQ_TABLE(bit_depth, name) \ argument 50 switch (bit_depth) { \ 62 #define ASSIGN_MINQ_TABLE(bit_depth, name) \ argument 64 (void)bit_depth; \ 109 vpx_bit_depth_t bit_depth) { in get_minq_index() argument 118 if (minqtarget <= vp9_convert_qindex_to_q(i, bit_depth)) return i; in get_minq_index() 126 vpx_bit_depth_t bit_depth) { in init_minq_luts() argument 129 const double maxq = vp9_convert_qindex_to_q(i, bit_depth); in init_minq_luts() 130 kf_low_m[i] = get_minq_index(maxq, 0.000001, -0.0004, 0.150, bit_depth); in init_minq_luts() 131 kf_high_m[i] = get_minq_index(maxq, 0.0000021, -0.00125, 0.55, bit_depth); in init_minq_luts() [all …]
|
/external/libvpx/libvpx/test/ |
D | y4m_test.cc | 31 unsigned int bit_depth; member 92 void HeaderChecks(unsigned int bit_depth, vpx_img_fmt_t fmt) { in HeaderChecks() argument 98 ASSERT_EQ(y4m_.bit_depth, bit_depth); in HeaderChecks() 101 ASSERT_EQ(y4m_.bps, (int)y4m_.bit_depth * 3 / 2); in HeaderChecks() 106 ASSERT_EQ(y4m_.bps, (int)y4m_.bit_depth * 2); in HeaderChecks() 111 ASSERT_EQ(y4m_.bps, (int)y4m_.bit_depth * 3); in HeaderChecks() 132 HeaderChecks(t.bit_depth, t.format); in TEST_P() 164 y4m_.vpx_fmt, y4m_.bit_depth); in WriteY4mAndReadBack() 185 HeaderChecks(t.bit_depth, t.format); in TEST_P()
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_quant_common.c | 164 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_dc_quant() argument 166 switch (bit_depth) { in vp9_dc_quant() 175 (void)bit_depth; in vp9_dc_quant() 180 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_ac_quant() argument 182 switch (bit_depth) { in vp9_ac_quant() 191 (void)bit_depth; in vp9_ac_quant()
|
/external/libpng/contrib/gregbook/ |
D | readpng.c | 73 int bit_depth, color_type; variable 139 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, in readpng_init() 183 if (bit_depth == 16) { in readpng_get_bgcolor() 187 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { in readpng_get_bgcolor() 188 if (bit_depth == 1) in readpng_get_bgcolor() 190 else if (bit_depth == 2) in readpng_get_bgcolor() 234 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) in readpng_get_image() 239 if (bit_depth == 16) in readpng_get_image()
|
/external/libvpx/libvpx/vpx_dsp/ |
D | psnrhvs.c | 108 static double convert_score_db(double _score, double _weight, int bit_depth) { in convert_score_db() argument 111 if (bit_depth == 10) in convert_score_db() 113 else if (bit_depth == 12) in convert_score_db() 123 uint32_t bit_depth, uint32_t _shift) { in calc_psnrhvs() argument 177 if (bit_depth == 8 && _shift == 0) { in calc_psnrhvs() 180 } else if (bit_depth == 10 || bit_depth == 12) { in calc_psnrhvs() 214 if (bit_depth == 10 || bit_depth == 12) { in calc_psnrhvs() 219 if (bit_depth == 8) { in calc_psnrhvs()
|