Home
last modified time | relevance | path

Searched refs:pixel_depth (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/libpng/contrib/libtests/
Dmakepng.c215 int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in image_size_of_type() local
219 if (pixel_depth <= 8) /* there will be one row */ in image_size_of_type()
220 return 1 << pixel_depth; in image_size_of_type()
226 else if (pixel_depth < 8) in image_size_of_type()
229 else if (pixel_depth > 16) in image_size_of_type()
401 unsigned int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in generate_row() local
407 switch (pixel_depth) in generate_row()
504 assert(size_max == 255 && rowbytes == 256*(pixel_depth>>3)); in generate_row()
505 pixel_depth >>= 3; /* now in bytes */ in generate_row()
508 const size_t pixel_index = --rowbytes/pixel_depth; in generate_row()
[all …]
/third_party/skia/third_party/externals/libpng/
Dpngrutil.c902 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR()
903 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR()
3202 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; in png_combine_row() local
3215 if (pixel_depth == 0) in png_combine_row()
3223 PNG_ROWBYTES(pixel_depth, row_width)) in png_combine_row()
3234 end_mask = (pixel_depth * row_width) & 7; in png_combine_row()
3238 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1; in png_combine_row()
3270 if (pixel_depth < 8) in png_combine_row()
3401 png_uint_32 pixels_per_byte = 8 / pixel_depth; in png_combine_row()
3406 mask = MASK(pass, pixel_depth, display, 0); in png_combine_row()
[all …]
Dpngpread.c268 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_push_read_chunk()
658 png_ptr->zstream.avail_out = (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth, in png_process_IDAT_data()
748 row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row()
749 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row()
775 png_ptr->transformed_pixel_depth = row_info.pixel_depth; in png_push_process_row()
776 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth) in png_push_process_row()
780 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth) in png_push_process_row()
Dpngtrans.c527 row_info->pixel_depth = 8; in png_do_strip_channel()
544 row_info->pixel_depth = 16; in png_do_strip_channel()
575 row_info->pixel_depth = 24; in png_do_strip_channel()
595 row_info->pixel_depth = 48; in png_do_strip_channel()
710 int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width); in png_do_check_palette_indexes()
Dpngrtran.c2125 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info()
2128 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info()
2237 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
2439 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8()
2467 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop()
2703 row_info->pixel_depth = 16; in png_do_read_filler()
2718 row_info->pixel_depth = 16; in png_do_read_filler()
2741 row_info->pixel_depth = 32; in png_do_read_filler()
2758 row_info->pixel_depth = 32; in png_do_read_filler()
2782 row_info->pixel_depth = 32; in png_do_read_filler()
[all …]
Dpnginfo.h76 png_byte pixel_depth; /* number of bits per pixel */ member
Dpngwtran.c156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
157 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
Dpngwutil.c219 unsigned int pd = png_ptr->pixel_depth; in png_image_size()
805 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels); in png_write_IHDR()
806 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width); in png_write_IHDR()
1921 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth; in png_write_start_row()
2112 switch (row_info->pixel_depth) in png_do_write_interlace()
2237 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace()
2262 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace()
2565 bpp = (row_info->pixel_depth + 7) >> 3; in png_write_find_filter()
Dpngwrite.c831 row_info.pixel_depth = (png_byte)(row_info.bit_depth * row_info.channels); in png_write_row()
832 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_write_row()
838 png_debug1(3, "row_info->pixel_depth = %d", row_info.pixel_depth); in png_write_row()
868 if (row_info.pixel_depth != png_ptr->pixel_depth || in png_write_row()
869 row_info.pixel_depth != png_ptr->transformed_pixel_depth) in png_write_row()
Dpngstruct.h256 png_byte pixel_depth; /* number of bits per pixel */ member
Dpngread.c404 row_info.pixel_depth = png_ptr->pixel_depth; in png_read_row()
405 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_read_row()
578 png_ptr->transformed_pixel_depth = row_info.pixel_depth; in png_read_row()
579 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth) in png_read_row()
583 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth) in png_read_row()
Dpngset.c288 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth); in png_set_IHDR()
290 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width); in png_set_IHDR()
Dpng.h761 png_byte pixel_depth; /* bits per pixel (depth * channels) */ member
/third_party/ffmpeg/libavfilter/
Dvf_owdenoise.c46 int pixel_depth; member
193 if (s->pixel_depth <= 8) { in filter()
225 if (s->pixel_depth <= 8) { in filter()
327 s->pixel_depth = desc->comp[0].depth; in config_input()
/third_party/astc-encoder/Source/
Dastcenccli_image_load_store.cpp790 uint32_t pixel_depth; // must be 0 for 1D, 2D and cubemap textures. member
813 REV(pixel_depth); in ktx_header_switch_endianness()
1075 unsigned int dim_z = astc::max(hdr.pixel_depth, 1u); in load_ktx_uncompressed_image()
1266 img.dim_z = hdr.pixel_depth == 0 ? 1 : hdr.pixel_depth; in load_ktx_compressed_image()
1303 hdr.pixel_depth = (img.dim_z == 1) ? 0 : img.dim_z; in store_ktx_compressed_image()
1367 hdr.pixel_depth = (dim_z == 1) ? 0 : dim_z; in store_ktx_uncompressed_image()