/external/libvpx/libvpx/ |
y4menc.h | 26 vpx_img_fmt_t fmt, unsigned int bit_depth);
|
y4menc.c | 16 vpx_img_fmt_t fmt, unsigned int bit_depth) { 18 switch (bit_depth) {
|
/external/pdfium/samples/fx_lpng/lpng_v163/ |
fx_pngwtran.c | 39 /* png_byte bit_depth; bit depth of samples */
59 (png_uint_32)png_ptr->bit_depth);
95 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The
100 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
104 if (row_info->bit_depth == 8 &&
107 switch ((int)bit_depth)
228 row_info->bit_depth = (png_byte)bit_depth;
229 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
238 * true number of bits in bit_depth. The row should be packed [all...] |
/external/libpng/contrib/examples/ |
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, 3) 181 int bit_depth, color_type, interlace_method, local [all...] |
/external/libpng/ |
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) 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, and this routine would translate th [all...] |
/external/libhevc/common/ |
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) \ 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) \ 122 transform_shift = MAX_TR_DYNAMIC_RANGE - bit_depth - log2_trans_size; (…) [all...] |
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...] |
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;
|
ihevc_chroma_recon.h | 60 UWORD8 bit_depth); 75 UWORD8 bit_depth); 90 UWORD8 bit_depth);
|
ihevc_recon.h | 51 UWORD8 bit_depth); 66 UWORD8 bit_depth); 81 UWORD8 bit_depth); 96 UWORD8 bit_depth); 111 UWORD8 bit_depth);
|
ihevc_chroma_iquant_recon.h | 60 UWORD8 bit_depth); 81 UWORD8 bit_depth); 102 UWORD8 bit_depth);
|
ihevc_chroma_itrans_recon.h | 58 UWORD8 bit_depth); 77 UWORD8 bit_depth); 96 UWORD8 bit_depth);
|
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...] |
ihevc_iquant_itrans_recon.h | 64 UWORD8 bit_depth); 91 UWORD8 bit_depth); 118 UWORD8 bit_depth); 145 UWORD8 bit_depth); 172 UWORD8 bit_depth);
|
ihevc_iquant_recon.h | 57 UWORD8 bit_depth); 78 UWORD8 bit_depth); 99 UWORD8 bit_depth); 120 UWORD8 bit_depth); 141 UWORD8 bit_depth);
|
ihevc_itrans_recon.h | 55 UWORD8 bit_depth); 74 UWORD8 bit_depth); 93 UWORD8 bit_depth); 112 UWORD8 bit_depth); 131 UWORD8 bit_depth);
|
ihevc_inter_pred.h | 41 #define SHIFT_14_MINUS_BIT_DEPTH (14 - BIT_DEPTH) 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); [all...] |
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/libpng/contrib/libtests/ |
makepng.c | 132 pixel_depth_of_type(int color_type, int bit_depth) 134 return channels_of_type(color_type) * bit_depth; 138 image_size_of_type(int color_type, int bit_depth, unsigned int *colors) 145 int pixel_depth = pixel_depth_of_type(color_type, bit_depth); 170 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, 210 if (bit_depth == 1) 219 unsigned int size = 1U << (bit_depth/2); /* 2, 4 or 16 */ 249 set_value(png_bytep row, size_t rowbytes, png_uint_32 x, unsigned int bit_depth, 252 unsigned int mask = (1U << bit_depth)-1; 254 x *= bit_depth; /* Maximum x is 4*1024, maximum bit_depth is 16 * 1282 int bit_depth = 32; \/* invalid *\/ local [all...] |
/external/libpng/contrib/gregbook/ |
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 == 16 [all...] |
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)
|
readppm.c | 68 int bit_depth, color_type, channels; variable 119 bit_depth = 8;
|
/external/libpng/contrib/pngminus/ |
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 = 4 [all...] |
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 == 16) [all...] |
/external/libvpx/libvpx/test/ |
y4m_test.cc | 29 unsigned int bit_depth; member in struct:__anon13740::Y4mTestParam 91 void HeaderChecks(unsigned int bit_depth, vpx_img_fmt_t fmt) { 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, t.format) [all...] |