Searched refs:bit_depth (Results 1 - 25 of 143) sorted by relevance

123456

/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/
H A Dvp9_quant_common.h26 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth);
27 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth);
H A Dvp9_quant_common.c229 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/chromium_org/third_party/libvpx/source/libvpx/
H A Dy4menc.h26 vpx_img_fmt_t fmt, unsigned int bit_depth);
H A Dy4menc.c16 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
/external/chromium_org/third_party/libpng/
H A Dpngwtran.c40 /* 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/qemu/distrib/libpng-1.2.46/
H A Dpngwtran.c40 /* 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/examples/
H A Dpngpixel.c33 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/
H A Dpngwtran.c20 /* 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...]
/external/libhevc/common/
H A Dihevc_trans_macros.h41 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
[all...]
H A Dihevc_iquant_recon.c125 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 Dihevc_chroma_iquant_recon.c131 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 Dihevc_chroma_recon.h60 UWORD8 bit_depth);
75 UWORD8 bit_depth);
90 UWORD8 bit_depth);
H A Dihevc_recon.h51 UWORD8 bit_depth);
66 UWORD8 bit_depth);
81 UWORD8 bit_depth);
96 UWORD8 bit_depth);
111 UWORD8 bit_depth);
H A Dihevc_chroma_iquant_recon.h60 UWORD8 bit_depth);
81 UWORD8 bit_depth);
102 UWORD8 bit_depth);
H A Dihevc_chroma_itrans_recon.h58 UWORD8 bit_depth);
77 UWORD8 bit_depth);
96 UWORD8 bit_depth);
H A Dihevc_intra_pred.h169 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...]
H A Dihevc_deblk.h95 UWORD8 bit_depth);
107 UWORD8 bit_depth);
119 UWORD8 bit_depth);
131 UWORD8 bit_depth);
/external/libpng/contrib/libtests/
H A Dmakepng.c132 pixel_depth_of_type(int color_type, int bit_depth) argument
134 return channels_of_type(color_type) * bit_depth;
138 image_size_of_type(int color_type, int bit_depth, unsigned int *colors) argument
145 int pixel_depth = pixel_depth_of_type(color_type, bit_depth);
170 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, argument
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, argument
252 unsigned int mask = (1U << bit_depth)-1;
254 x *= bit_depth; /* Maximu
310 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, int bit_depth, png_const_bytep gamma_table, double conv, unsigned int *colors) argument
555 write_png(const char **name, FILE *fp, int color_type, int bit_depth, volatile png_fixed_point gamma, chunk_insert * volatile insert, unsigned int filters, unsigned int *colors) argument
1282 int bit_depth = 32; /* invalid */ local
[all...]
/external/libpng/contrib/gregbook/
H A Dreadpng.c73 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/contrib/pngminus/
H A Dpnm2png.c207 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...]
H A Dpng2pnm.c201 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...]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/
H A Dvp9_aq_complexity.c26 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 Dvp9_ratectrl.c46 #define ASSIGN_MINQ_TABLE(bit_depth, name) \
48 switch (bit_depth) { \
59 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10" \
65 #define ASSIGN_MINQ_TABLE(bit_depth, name) \
67 (void) bit_depth; \
105 vpx_bit_depth_t bit_depth) {
116 if (minqtarget <= vp9_convert_qindex_to_q(i, bit_depth))
125 int *inter, int *rtc, vpx_bit_depth_t bit_depth) {
128 const double maxq = vp9_convert_qindex_to_q(i, bit_depth);
129 kf_low_m[i] = get_minq_index(maxq, 0.000001, -0.0004, 0.150, bit_depth);
104 get_minq_index(double maxq, double x3, double x2, double x1, vpx_bit_depth_t bit_depth) argument
123 init_minq_luts(int *kf_low_m, int *kf_high_m, int *arfgf_low, int *arfgf_high, int *inter, int *rtc, vpx_bit_depth_t bit_depth) argument
155 vp9_convert_qindex_to_q(int qindex, vpx_bit_depth_t bit_depth) argument
174 vp9_rc_bits_per_mb(FRAME_TYPE frame_type, int qindex, double correction_factor, vpx_bit_depth_t bit_depth) argument
185 estimate_bits_at_q(FRAME_TYPE frame_type, int q, int mbs, double correction_factor, vpx_bit_depth_t bit_depth) argument
506 get_kf_active_quality(const RATE_CONTROL *const rc, int q, vpx_bit_depth_t bit_depth) argument
516 get_gf_active_quality(const RATE_CONTROL *const rc, int q, vpx_bit_depth_t bit_depth) argument
1432 vp9_compute_qdelta(const RATE_CONTROL *rc, double qstart, double qtarget, vpx_bit_depth_t bit_depth) argument
1455 vp9_compute_qdelta_by_rate(const RATE_CONTROL *rc, FRAME_TYPE frame_type, int qindex, double rate_target_ratio, vpx_bit_depth_t bit_depth) argument
[all...]
H A Dvp9_ratectrl.h109 double vp9_convert_qindex_to_q(int qindex, vpx_bit_depth_t bit_depth);
172 double correction_factor, vpx_bit_depth_t bit_depth);
186 vpx_bit_depth_t bit_depth);
192 vpx_bit_depth_t bit_depth);
/external/chromium_org/third_party/libvpx/source/libvpx/test/
H A Dy4m_test.cc29 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...]

Completed in 381 milliseconds

123456