/external/chromium_org/third_party/libvpx/source/libvpx/ |
H A D | y4menc.c | 16 vpx_img_fmt_t fmt, unsigned int bit_depth) { 18 switch (bit_depth) { 14 y4m_write_file_header(char *buf, size_t len, int width, int height, const struct VpxRational *framerate, vpx_img_fmt_t fmt, unsigned int bit_depth) argument
|
H A D | y4minput.h | 62 unsigned int bit_depth; member in struct:y4m_input
|
H A D | tools_common.h | 93 vpx_bit_depth_t bit_depth; member in struct:VpxInputContext
|
/external/chromium_org/third_party/libpng/ |
H A D | pngwtran.c | 40 /* png_byte bit_depth; bit depth of samples */ 57 (png_uint_32)png_ptr->bit_depth); 87 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The 92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) argument 96 if (row_info->bit_depth == 8 && 102 switch ((int)bit_depth) 202 row_info->bit_depth = (png_byte)bit_depth; 203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); 212 * true number of bits in bit_depth 219 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth) argument [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/ |
H A D | vp9_quant_common.c | 229 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { argument 231 switch (bit_depth) { 239 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12"); 243 (void) bit_depth; 248 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { argument 250 switch (bit_depth) { 258 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12"); 262 (void) bit_depth;
|
/external/libhevc/common/ |
H A D | ihevc_chroma_iquant_recon.c | 131 WORD32 log2_trans_size, bit_depth; local 134 bit_depth = 8 + 0; 135 shift_iq = bit_depth + log2_trans_size - 5; 243 WORD32 log2_trans_size, bit_depth; local 246 bit_depth = 8 + 0; 247 shift_iq = bit_depth + log2_trans_size - 5; 356 WORD32 log2_trans_size, bit_depth; local 359 bit_depth = 8 + 0; 360 shift_iq = bit_depth + log2_trans_size - 5;
|
H A D | ihevc_chroma_iquant_itrans_recon.c | 142 WORD32 log2_trans_size, bit_depth; local 145 bit_depth = 8 + 0; 146 shift_iq = bit_depth + log2_trans_size - 5;
|
H A D | ihevc_iquant_recon.c | 125 WORD32 log2_trans_size, bit_depth; local 128 bit_depth = 8 + 0; 129 shift_iq = bit_depth + log2_trans_size - 5; 237 WORD32 log2_trans_size, bit_depth; local 240 bit_depth = 8 + 0; 241 shift_iq = bit_depth + log2_trans_size - 5; 348 WORD32 log2_trans_size, bit_depth; local 351 bit_depth = 8 + 0; 352 shift_iq = bit_depth + log2_trans_size - 5; 460 WORD32 log2_trans_size, bit_depth; local 571 WORD32 log2_trans_size, bit_depth; local [all...] |
H A D | ihevc_iquant_itrans_recon.c | 133 WORD32 log2_trans_size, bit_depth; local 136 bit_depth = 8 + 0; 137 shift_iq = bit_depth + log2_trans_size - 5; 342 WORD32 log2_trans_size, bit_depth; local 345 bit_depth = 8 + 0; 346 shift_iq = bit_depth + log2_trans_size - 5;
|
H A D | ihevc_deblk_edge_filter.c | 348 UWORD8 bit_depth) 372 beta = gai4_ihevc_beta_table[beta_indx] * (1 << (bit_depth - 8)); 373 tc = gai4_ihevc_tc_table[tc_indx] * (1 << (bit_depth - 8)); 486 tmp_p0 = CLIP3(pu2_src[-1] + delta, 0, ((1 << bit_depth) - 1)); 487 tmp_q0 = CLIP3(pu2_src[0] - delta, 0, ((1 << bit_depth) - 1)); 494 tmp_p1 = CLIP3(pu2_src[-2] + delta_p, 0, ((1 << bit_depth) - 1)); 503 tmp_q1 = CLIP3(pu2_src[1] + delta_q, 0, ((1 << bit_depth) - 1)); 847 UWORD8 bit_depth) 871 beta = gai4_ihevc_beta_table[beta_indx] * (1 << (bit_depth - 8)); 872 tc = gai4_ihevc_tc_table[tc_indx] * (1 << (bit_depth 339 ihevc_hbd_deblk_luma_vert(UWORD16 *pu2_src, WORD32 src_strd, WORD32 bs, WORD32 quant_param_p, WORD32 quant_param_q, WORD32 beta_offset_div2, WORD32 tc_offset_div2, WORD32 filter_flag_p, WORD32 filter_flag_q, UWORD8 bit_depth) argument 838 ihevc_hbd_deblk_luma_horz(UWORD16 *pu2_src, WORD32 src_strd, WORD32 bs, WORD32 quant_param_p, WORD32 quant_param_q, WORD32 beta_offset_div2, WORD32 tc_offset_div2, WORD32 filter_flag_p, WORD32 filter_flag_q, UWORD8 bit_depth) argument 1214 ihevc_hbd_deblk_chroma_vert(UWORD16 *pu2_src, WORD32 src_strd, WORD32 quant_param_p, WORD32 quant_param_q, WORD32 qp_offset_u, WORD32 qp_offset_v, WORD32 tc_offset_div2, WORD32 filter_flag_p, WORD32 filter_flag_q, UWORD8 bit_depth) argument 1445 ihevc_hbd_deblk_chroma_horz(UWORD16 *pu2_src, WORD32 src_strd, WORD32 quant_param_p, WORD32 quant_param_q, WORD32 qp_offset_u, WORD32 qp_offset_v, WORD32 tc_offset_div2, WORD32 filter_flag_p, WORD32 filter_flag_q, UWORD8 bit_depth) argument [all...] |
H A D | ihevc_sao.c | 202 WORD32 bit_depth; local 205 bit_depth = BIT_DEPTH_LUMA; 248 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); 286 WORD32 bit_depth; local 289 bit_depth = BIT_DEPTH_CHROMA; 347 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); 382 WORD32 bit_depth; local 386 bit_depth = BIT_DEPTH_LUMA; 440 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); 476 WORD32 bit_depth; local 579 WORD32 bit_depth; local 768 WORD32 bit_depth; local 1001 WORD32 bit_depth; local 1177 WORD32 bit_depth; local [all...] |
/external/qemu/distrib/libpng-1.2.46/ |
H A D | pngwtran.c | 40 /* png_byte bit_depth; bit depth of samples */ 57 (png_uint_32)png_ptr->bit_depth); 87 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The 92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) argument 96 if (row_info->bit_depth == 8 && 102 switch ((int)bit_depth) 202 row_info->bit_depth = (png_byte)bit_depth; 203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); 212 * true number of bits in bit_depth 219 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth) argument [all...] |
/external/libpng/contrib/gregbook/ |
H A D | readpng2.c | 214 int color_type, bit_depth; local 255 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 276 if (bit_depth == 16) { 280 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 281 if (bit_depth == 1) 284 else if (bit_depth == 2) 287 else /* bit_depth == 4 */ 305 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 310 if (bit_depth == 16)
|
H A D | readppm.c | 68 int bit_depth, color_type, channels; variable 119 bit_depth = 8;
|
H A D | readpng.c | 73 int bit_depth, color_type; variable 135 * etc., but want bit_depth and color_type for later [don't care about 138 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 182 if (bit_depth == 16) { 186 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 187 if (bit_depth == 1) 189 else if (bit_depth == 2) 191 else /* bit_depth == 4 */ 233 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 238 if (bit_depth [all...] |
/external/libpng/ |
H A D | pngwtran.c | 20 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The 25 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) argument 29 if (row_info->bit_depth == 8 && 32 switch ((int)bit_depth) 153 row_info->bit_depth = (png_byte)bit_depth; 154 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); 163 * true number of bits in bit_depth. The row should be packed 164 * according to row_info->bit_depth. Thus, if you had a row of 166 * would pass 3 as bit_depth, an 170 png_do_shift(png_row_infop row_info, png_bytep row, png_const_color_8p bit_depth) argument [all...] |
H A D | pnginfo.h | 66 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */ member in struct:png_info_def 135 * in the pixel data. Values are in the range [1, bit_depth], and are 202 * The integer range [0, 2^bit_depth - 1] maps to the floating-point
|
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
H A D | y4m_test.cc | 29 unsigned int bit_depth; member in struct:__anon13017::Y4mTestParam 91 void HeaderChecks(unsigned int bit_depth, vpx_img_fmt_t fmt) { argument 97 ASSERT_EQ(y4m_.bit_depth, bit_depth); 100 ASSERT_EQ(y4m_.bps, (int)y4m_.bit_depth * 3 / 2); 105 ASSERT_EQ(y4m_.bps, (int)y4m_.bit_depth * 2); 110 ASSERT_EQ(y4m_.bps, (int)y4m_.bit_depth * 3); 131 HeaderChecks(t.bit_depth, t.format); 166 y4m_.bit_depth); 187 HeaderChecks(t.bit_depth, [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
H A D | vp9_aq_complexity.c | 26 static int get_aq_c_strength(int q_index, vpx_bit_depth_t bit_depth) { argument 28 const int base_quant = vp9_ac_quant(q_index, 0, bit_depth) / 4; 43 const int aq_strength = get_aq_c_strength(cm->base_qindex, cm->bit_depth); 74 cm->bit_depth); 119 const int aq_strength = get_aq_c_strength(cm->base_qindex, cm->bit_depth);
|
H A D | vp9_quantize.c | 551 static int get_qzbin_factor(int q, vpx_bit_depth_t bit_depth) { argument 552 const int quant = vp9_dc_quant(q, 0, bit_depth); 554 switch (bit_depth) { 562 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12"); 566 (void) bit_depth; 577 const int qzbin_factor = get_qzbin_factor(q, cm->bit_depth); 586 quant = i == 0 ? vp9_dc_quant(q, cm->y_dc_delta_q, cm->bit_depth) 587 : vp9_ac_quant(q, 0, cm->bit_depth); 596 quant = i == 0 ? vp9_dc_quant(q, cm->uv_dc_delta_q, cm->bit_depth) 597 : vp9_ac_quant(q, cm->uv_ac_delta_q, cm->bit_depth); [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vpx_scale/ |
H A D | yv12config.h | 54 unsigned int bit_depth; member in struct:yv12_buffer_config
|
/external/libpng/contrib/examples/ |
H A D | pngpixel.c | 33 unsigned int bit_depth, unsigned int channels) 40 png_uint_32 bit_offset_hi = bit_depth * ((x >> 6) * channels); 41 png_uint_32 bit_offset_lo = bit_depth * ((x & 0x3f) * channels + c); 51 switch (bit_depth) 62 fprintf(stderr, "pngpixel: invalid bit depth %u\n", bit_depth); 74 PNG_CONST unsigned int bit_depth = png_get_bit_depth(png_ptr, info_ptr); local 79 printf("GRAY %u\n", component(row, x, 0, bit_depth, 1)); 88 PNG_CONST unsigned int index = component(row, x, 0, bit_depth, 1); 117 printf("RGB %u %u %u\n", component(row, x, 0, bit_depth, 3), 118 component(row, x, 1, bit_depth, 32 component(png_const_bytep row, png_uint_32 x, unsigned int c, unsigned int bit_depth, unsigned int channels) argument 181 int bit_depth, color_type, interlace_method, local [all...] |
/external/libpng/contrib/pngminus/ |
H A D | png2pnm.c | 201 int bit_depth; local 248 &width, &height, &bit_depth, &color_type, 257 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 265 if (bit_depth == 16) 282 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 286 if (bit_depth == 16) 351 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); 358 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); 369 fprintf (alpha_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); 384 if (bit_depth [all...] |
H A D | pnm2png.c | 207 int bit_depth = 0; local 237 bit_depth = 1; 259 bit_depth = 1; 261 bit_depth = 2; 263 bit_depth = 4; 265 bit_depth = 8; 267 bit_depth = 16; 283 bit_depth = 1; 285 bit_depth = 2; 287 bit_depth [all...] |
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_png.cpp | 152 int bit_depth, color_type; local 158 &bit_depth, &color_type, 0, 0, 0 ); 167 m_bit_depth = bit_depth;
|