/third_party/ffmpeg/tests/checkasm/ |
D | hevc_idct.c | 39 static void check_idct(HEVCDSPContext h, int bit_depth) in check_idct() argument 53 if (check_func(h.idct[i - 2], "hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) { in check_idct() 63 static void check_idct_dc(HEVCDSPContext h, int bit_depth) in check_idct_dc() argument 77 … if (check_func(h.idct_dc[i - 2], "hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) { in check_idct_dc() 89 int bit_depth; in checkasm_check_hevc_idct() local 91 for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) { in checkasm_check_hevc_idct() 94 ff_hevc_dsp_init(&h, bit_depth); in checkasm_check_hevc_idct() 95 check_idct_dc(h, bit_depth); in checkasm_check_hevc_idct() 99 for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) { in checkasm_check_hevc_idct() 102 ff_hevc_dsp_init(&h, bit_depth); in checkasm_check_hevc_idct() [all …]
|
D | hevc_pel.c | 36 #define SIZEOF_PIXEL ((bit_depth + 7) / 8) 41 uint32_t mask = pixel_mask[bit_depth - 8]; \ 56 uint32_t mask = pixel_mask16[bit_depth - 8]; \ 76 int size, bit_depth, i, j, row; in checkasm_check_hevc_qpel() local 80 for (bit_depth = 8; bit_depth <= 12; bit_depth++) { in checkasm_check_hevc_qpel() 81 ff_hevc_dsp_init(&h, bit_depth); in checkasm_check_hevc_qpel() 94 … if (check_func(h.put_hevc_qpel[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { in checkasm_check_hevc_qpel() 120 int size, bit_depth, i, j; in checkasm_check_hevc_qpel_uni() local 124 for (bit_depth = 8; bit_depth <= 12; bit_depth++) { in checkasm_check_hevc_qpel_uni() 125 ff_hevc_dsp_init(&h, bit_depth); in checkasm_check_hevc_qpel_uni() [all …]
|
D | hevc_sao.c | 35 #define SIZEOF_PIXEL ((bit_depth + 7) / 8) 38 #define OFFSET_THRESH (1 << (bit_depth - 5)) 43 uint32_t mask = pixel_mask[(bit_depth - 8) >> 1]; \ 56 if (bit_depth == 8) { \ 69 static void check_sao_band(HEVCDSPContext h, int bit_depth) in check_sao_band() argument 90 …f (check_func(h.sao_band_filter[i], "hevc_sao_band_%dx%d_%d", block_size, block_size, bit_depth)) { in check_sao_band() 100 static void check_sao_edge(HEVCDSPContext h, int bit_depth) in check_sao_edge() argument 122 …f (check_func(h.sao_edge_filter[i], "hevc_sao_edge_%dx%d_%d", block_size, block_size, bit_depth)) { in check_sao_edge() 134 int bit_depth; in checkasm_check_hevc_sao() local 136 for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) { in checkasm_check_hevc_sao() [all …]
|
D | h264dsp.c | 34 #define SIZEOF_PIXEL ((bit_depth + 7) / 8) 35 #define SIZEOF_COEF (2 * ((bit_depth + 7) / 8)) 41 uint32_t mask = pixel_mask[bit_depth - 8]; \ 48 if (bit_depth == 8) { \ 157 static void dct4x4(int16_t *coef, int bit_depth) in dct4x4() argument 159 if (bit_depth == 8) in dct4x4() 165 static void dct8x8(int16_t *coef, int bit_depth) in dct8x8() argument 167 if (bit_depth == 8) { in dct8x8() 185 int bit_depth, sz, align, dc; in check_idct() local 188 for (bit_depth = 8; bit_depth <= 10; bit_depth++) { in check_idct() [all …]
|
D | vp9dsp.c | 33 #define SIZEOF_PIXEL ((bit_depth + 7) / 8) 37 uint32_t mask = pixel_mask[(bit_depth - 8) >> 1]; \ 57 int tx, mode, bit_depth; in check_ipred() local 78 for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) { in check_ipred() 79 ff_vp9dsp_init(&dsp, bit_depth, 0); in check_ipred() 85 mode_names[mode], size, size, bit_depth)) { in check_ipred() 103 uint32_t mask = pixel_mask[(bit_depth - 8) >> 1]; \ 111 if (bit_depth == 8) { \ 231 enum TxfmType txtp, int sz, int bit_depth) in ftx() argument 238 if (bit_depth == 8) in ftx() [all …]
|
D | hevc_add_res.c | 69 static void check_add_res(HEVCDSPContext h, int bit_depth) in check_add_res() argument 76 ptrdiff_t stride = block_size << (bit_depth > 8); in check_add_res() 78 …f (check_func(h.add_residual[i - 2], "hevc_add_res_%dx%d_%d", block_size, block_size, bit_depth)) { in check_add_res() 88 int bit_depth; in checkasm_check_hevc_add_res() local 90 for (bit_depth = 8; bit_depth <= 10; bit_depth++) { in checkasm_check_hevc_add_res() 93 ff_hevc_dsp_init(&h, bit_depth); in checkasm_check_hevc_add_res() 94 check_add_res(h, bit_depth); in checkasm_check_hevc_add_res()
|
D | h264qpel.c | 31 #define SIZEOF_PIXEL ((bit_depth + 7) / 8) 36 uint32_t mask = pixel_mask[bit_depth - 8]; \ 58 int op, bit_depth, i, j; in checkasm_check_h264qpel() local 65 for (bit_depth = 8; bit_depth <= 10; bit_depth++) { in checkasm_check_h264qpel() 66 ff_h264qpel_init(&h, bit_depth); in checkasm_check_h264qpel() 70 … if (check_func(tab[i][j], "%s_h264_qpel_%d_mc%d%d_%d", op_name, size, j & 3, j >> 2, bit_depth)) { in checkasm_check_h264qpel()
|
D | h264pred.c | 120 #define SIZEOF_PIXEL ((bit_depth + 7) / 8) 125 check_func(func, "pred%s_%s_%d", name, mode_name, bit_depth) : \ 130 uint32_t mask = pixel_mask[bit_depth - 8]; \ 143 int codec, int chroma_format, int bit_depth) in check_pred4x4() argument 164 int codec, int chroma_format, int bit_depth) in check_pred8x8() argument 183 int codec, int chroma_format, int bit_depth) in check_pred16x16() argument 203 int codec, int chroma_format, int bit_depth) in check_pred8x8l() argument 248 int test, codec, chroma_format, bit_depth; in checkasm_check_h264pred() local 253 for (bit_depth = 8; bit_depth <= (codec_id == AV_CODEC_ID_H264 ? 10 : 8); bit_depth++) in checkasm_check_h264pred() 255 ff_h264_pred_init(&h, codec_id, bit_depth, chroma_format); in checkasm_check_h264pred() [all …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/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 …]
|
/third_party/flutter/skia/third_party/externals/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 …]
|
/third_party/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 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 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 …]
|
/third_party/flutter/skia/third_party/externals/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 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 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 …]
|
/third_party/skia/third_party/externals/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 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 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 …]
|
/third_party/ffmpeg/libavformat/ |
D | qtpalette.c | 325 int tmp, bit_depth, color_table_id, greyscale, i; in ff_get_qtpalette() local 331 bit_depth = tmp & 0x1F; in ff_get_qtpalette() 342 if ((bit_depth == 1 || bit_depth == 2 || bit_depth == 4 || bit_depth == 8)) { in ff_get_qtpalette() 348 if (greyscale && bit_depth > 1 && color_table_id) { in ff_get_qtpalette() 351 color_count = 1 << bit_depth; in ff_get_qtpalette() 366 color_count = 1 << bit_depth; in ff_get_qtpalette() 367 if (bit_depth == 1) in ff_get_qtpalette() 369 else if (bit_depth == 2) in ff_get_qtpalette() 371 else if (bit_depth == 4) in ff_get_qtpalette()
|
/third_party/ffmpeg/libavcodec/ |
D | h264chroma.c | 41 av_cold void ff_h264chroma_init(H264ChromaContext *c, int bit_depth) in ff_h264chroma_init() argument 43 if (bit_depth > 8 && bit_depth <= 16) { in ff_h264chroma_init() 50 ff_h264chroma_init_aarch64(c, bit_depth); in ff_h264chroma_init() 52 ff_h264chroma_init_arm(c, bit_depth); in ff_h264chroma_init() 54 ff_h264chroma_init_ppc(c, bit_depth); in ff_h264chroma_init() 56 ff_h264chroma_init_x86(c, bit_depth); in ff_h264chroma_init() 58 ff_h264chroma_init_mips(c, bit_depth); in ff_h264chroma_init()
|
D | h264qpel.h | 32 void ff_h264qpel_init(H264QpelContext *c, int bit_depth); 34 void ff_h264qpel_init_aarch64(H264QpelContext *c, int bit_depth); 35 void ff_h264qpel_init_arm(H264QpelContext *c, int bit_depth); 36 void ff_h264qpel_init_ppc(H264QpelContext *c, int bit_depth); 37 void ff_h264qpel_init_x86(H264QpelContext *c, int bit_depth); 38 void ff_h264qpel_init_mips(H264QpelContext *c, int bit_depth);
|
D | h264chroma.h | 32 void ff_h264chroma_init(H264ChromaContext *c, int bit_depth); 34 void ff_h264chroma_init_aarch64(H264ChromaContext *c, int bit_depth); 35 void ff_h264chroma_init_arm(H264ChromaContext *c, int bit_depth); 36 void ff_h264chroma_init_ppc(H264ChromaContext *c, int bit_depth); 37 void ff_h264chroma_init_x86(H264ChromaContext *c, int bit_depth); 38 void ff_h264chroma_init_mips(H264ChromaContext *c, int bit_depth);
|
D | h264dsp.c | 67 av_cold void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, in ff_h264dsp_init() argument 77 if (bit_depth > 8 && bit_depth <= 16) { in ff_h264dsp_init() 136 switch (bit_depth) { in ff_h264dsp_init() 150 av_assert0(bit_depth<=8); in ff_h264dsp_init() 156 if (ARCH_AARCH64) ff_h264dsp_init_aarch64(c, bit_depth, chroma_format_idc); in ff_h264dsp_init() 157 if (ARCH_ARM) ff_h264dsp_init_arm(c, bit_depth, chroma_format_idc); in ff_h264dsp_init() 158 if (ARCH_PPC) ff_h264dsp_init_ppc(c, bit_depth, chroma_format_idc); in ff_h264dsp_init() 159 if (ARCH_X86) ff_h264dsp_init_x86(c, bit_depth, chroma_format_idc); in ff_h264dsp_init() 160 if (ARCH_MIPS) ff_h264dsp_init_mips(c, bit_depth, chroma_format_idc); in ff_h264dsp_init()
|
/third_party/flutter/skia/third_party/externals/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 …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/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 …]
|
/third_party/libpng/contrib/pngminus/ |
D | pnm2png.c | 184 volatile int bit_depth = 0; in pnm2png() local 214 bit_depth = 1; in pnm2png() 237 bit_depth = 1; in pnm2png() 239 bit_depth = 2; in pnm2png() 241 bit_depth = 4; in pnm2png() 243 bit_depth = 8; in pnm2png() 245 bit_depth = 16; in pnm2png() 263 bit_depth = 1; in pnm2png() 265 bit_depth = 2; in pnm2png() 267 bit_depth = 4; in pnm2png() [all …]
|
/third_party/skia/third_party/externals/libpng/contrib/pngminus/ |
D | pnm2png.c | 184 volatile int bit_depth = 0; in pnm2png() local 214 bit_depth = 1; in pnm2png() 237 bit_depth = 1; in pnm2png() 239 bit_depth = 2; in pnm2png() 241 bit_depth = 4; in pnm2png() 243 bit_depth = 8; in pnm2png() 245 bit_depth = 16; in pnm2png() 263 bit_depth = 1; in pnm2png() 265 bit_depth = 2; in pnm2png() 267 bit_depth = 4; in pnm2png() [all …]
|
/third_party/flutter/skia/third_party/externals/libpng/contrib/pngminus/ |
D | pnm2png.c | 184 volatile int bit_depth = 0; in pnm2png() local 214 bit_depth = 1; in pnm2png() 237 bit_depth = 1; in pnm2png() 239 bit_depth = 2; in pnm2png() 241 bit_depth = 4; in pnm2png() 243 bit_depth = 8; in pnm2png() 245 bit_depth = 16; in pnm2png() 263 bit_depth = 1; in pnm2png() 265 bit_depth = 2; in pnm2png() 267 bit_depth = 4; in pnm2png() [all …]
|