Home
last modified time | relevance | path

Searched refs:row_info (Results 1 – 25 of 26) sorted by relevance

12

/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngwtran.c22 png_do_write_transformations(png_structrp png_ptr, png_row_infop row_info) in png_do_write_transformations() argument
35 row_info, /* row_info: */ in png_do_write_transformations()
47 png_do_strip_channel(row_info, png_ptr->row_buf + 1, in png_do_write_transformations()
53 png_do_packswap(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
58 png_do_pack(row_info, png_ptr->row_buf + 1, in png_do_write_transformations()
64 png_do_swap(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
69 png_do_shift(row_info, png_ptr->row_buf + 1, in png_do_write_transformations()
75 png_do_write_swap_alpha(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
80 png_do_write_invert_alpha(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
85 png_do_bgr(row_info, png_ptr->row_buf + 1); in png_do_write_transformations()
[all …]
Dfx_pngtrans.c258 png_do_invert(png_row_infop row_info, png_bytep row) in png_do_invert() argument
265 if (row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_invert()
269 png_size_t istop = row_info->rowbytes; in png_do_invert()
278 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
279 row_info->bit_depth == 8) in png_do_invert()
283 png_size_t istop = row_info->rowbytes; in png_do_invert()
293 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
294 row_info->bit_depth == 16) in png_do_invert()
298 png_size_t istop = row_info->rowbytes; in png_do_invert()
315 png_do_swap(png_row_infop row_info, png_bytep row) in png_do_swap() argument
[all …]
Dfx_pngrtran.c2120 png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info) in png_do_read_transformations() argument
2152 if (row_info->color_type == PNG_COLOR_TYPE_PALETTE) in png_do_read_transformations()
2154 png_do_expand_palette(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
2162 png_do_expand(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
2166 png_do_expand(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
2175 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA || in png_do_read_transformations()
2176 row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)) in png_do_read_transformations()
2177 png_do_strip_channel(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
2185 png_do_rgb_to_gray(png_ptr, row_info, in png_do_read_transformations()
2239 png_do_gray_to_rgb(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
[all …]
Dpngpriv.h1131 PNG_INTERNAL_FUNCTION(void,png_do_read_interlace,(png_row_infop row_info,
1139 PNG_INTERNAL_FUNCTION(void,png_do_write_interlace,(png_row_infop row_info,
1147 row_info, png_bytep row, png_const_bytep prev_row, int filter),PNG_EMPTY);
1149 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_up_neon,(png_row_infop row_info,
1152 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1154 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1156 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1158 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1160 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1162 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
[all …]
Dfx_pngpread.c937 png_row_info row_info; in png_push_process_row() local
939 row_info.width = png_ptr->iwidth; /* NOTE: width of current interlaced row */ in png_push_process_row()
940 row_info.color_type = png_ptr->color_type; in png_push_process_row()
941 row_info.bit_depth = png_ptr->bit_depth; in png_push_process_row()
942 row_info.channels = png_ptr->channels; in png_push_process_row()
943 row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row()
944 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row()
949 png_read_filter_row(png_ptr, &row_info, png_ptr->row_buf + 1, in png_push_process_row()
960 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_push_process_row()
964 png_do_read_transformations(png_ptr, &row_info); in png_push_process_row()
[all …]
Dfx_pngwrite.c614 png_row_info row_info; in png_write_row() local
739 row_info.color_type = png_ptr->color_type; in png_write_row()
740 row_info.width = png_ptr->usr_width; in png_write_row()
741 row_info.channels = png_ptr->usr_channels; in png_write_row()
742 row_info.bit_depth = png_ptr->usr_bit_depth; in png_write_row()
743 row_info.pixel_depth = (png_byte)(row_info.bit_depth * row_info.channels); in png_write_row()
744 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_write_row()
746 png_debug1(3, "row_info->color_type = %d", row_info.color_type); in png_write_row()
747 png_debug1(3, "row_info->width = %u", row_info.width); in png_write_row()
748 png_debug1(3, "row_info->channels = %d", row_info.channels); in png_write_row()
[all …]
Dfx_pngrutil.c3479 png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass, in png_do_read_interlace() argument
3487 if (row != NULL && row_info != NULL) in png_do_read_interlace()
3491 final_width = row_info->width * png_pass_inc[pass]; in png_do_read_interlace()
3493 switch (row_info->pixel_depth) in png_do_read_interlace()
3497 png_bytep sp = row + (png_size_t)((row_info->width - 1) >> 3); in png_do_read_interlace()
3509 sshift = (int)((row_info->width + 7) & 0x07); in png_do_read_interlace()
3519 sshift = 7 - (int)((row_info->width + 7) & 0x07); in png_do_read_interlace()
3526 for (i = 0; i < row_info->width; i++) in png_do_read_interlace()
3559 png_bytep sp = row + (png_uint_32)((row_info->width - 1) >> 2); in png_do_read_interlace()
3569 sshift = (int)(((row_info->width + 3) & 0x03) << 1); in png_do_read_interlace()
[all …]
Dfx_pngread.c310 png_row_info row_info; in png_read_row() local
325 row_info.width = png_ptr->iwidth; /* NOTE: width of current interlaced row */ in png_read_row()
326 row_info.color_type = png_ptr->color_type; in png_read_row()
327 row_info.bit_depth = png_ptr->bit_depth; in png_read_row()
328 row_info.channels = png_ptr->channels; in png_read_row()
329 row_info.pixel_depth = png_ptr->pixel_depth; in png_read_row()
330 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_read_row()
464 png_read_IDAT_data(png_ptr, png_ptr->row_buf, row_info.rowbytes + 1); in png_read_row()
469 png_read_filter_row(png_ptr, &row_info, png_ptr->row_buf + 1, in png_read_row()
480 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_read_row()
[all …]
Dfx_pngwutil.c2135 png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass) in png_do_write_interlace() argument
2151 switch (row_info->pixel_depth) in png_do_write_interlace()
2161 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2199 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2236 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2269 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2276 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace()
2296 row_info->width = (row_info->width + in png_do_write_interlace()
2301 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace()
2302 row_info->width); in png_do_write_interlace()
[all …]
Dpngstruct.h480 void (*read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info,
/external/libpng/
Dpngwtran.c25 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()
30 row_info->channels == 1) in png_do_pack()
39 png_uint_32 row_width = row_info->width; in png_do_pack()
76 png_uint_32 row_width = row_info->width; in png_do_pack()
115 png_uint_32 row_width = row_info->width; in png_do_pack()
153 row_info->bit_depth = (png_byte)bit_depth; in png_do_pack()
154 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
155 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
156 row_info->width); in png_do_pack()
[all …]
Dpngtrans.c261 png_do_invert(png_row_infop row_info, png_bytep row) in png_do_invert() argument
268 if (row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_invert()
272 png_size_t istop = row_info->rowbytes; in png_do_invert()
281 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
282 row_info->bit_depth == 8) in png_do_invert()
286 png_size_t istop = row_info->rowbytes; in png_do_invert()
296 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
297 row_info->bit_depth == 16) in png_do_invert()
301 png_size_t istop = row_info->rowbytes; in png_do_invert()
318 png_do_swap(png_row_infop row_info, png_bytep row) in png_do_swap() argument
[all …]
Dpngrtran.c2134 png_do_unpack(png_row_infop row_info, png_bytep row) in png_do_unpack() argument
2138 if (row_info->bit_depth < 8) in png_do_unpack()
2141 png_uint_32 row_width=row_info->width; in png_do_unpack()
2143 switch (row_info->bit_depth) in png_do_unpack()
2218 row_info->bit_depth = 8; in png_do_unpack()
2219 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
2220 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack()
2232 png_do_unshift(png_row_infop row_info, png_bytep row, in png_do_unshift() argument
2240 color_type = row_info->color_type; in png_do_unshift()
2246 int bit_depth = row_info->bit_depth; in png_do_unshift()
[all …]
Dpngwrite.c613 png_do_write_intrapixel(png_row_infop row_info, png_bytep row) in png_do_write_intrapixel() argument
617 if ((row_info->color_type & PNG_COLOR_MASK_COLOR)) in png_do_write_intrapixel()
620 png_uint_32 row_width = row_info->width; in png_do_write_intrapixel()
621 if (row_info->bit_depth == 8) in png_do_write_intrapixel()
626 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_write_intrapixel()
629 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_write_intrapixel()
643 else if (row_info->bit_depth == 16) in png_do_write_intrapixel()
648 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_write_intrapixel()
651 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_write_intrapixel()
680 png_row_info row_info; in png_write_row() local
[all …]
Dpngpread.c939 png_row_info row_info; in png_push_process_row() local
941 row_info.width = png_ptr->iwidth; /* NOTE: width of current interlaced row */ in png_push_process_row()
942 row_info.color_type = png_ptr->color_type; in png_push_process_row()
943 row_info.bit_depth = png_ptr->bit_depth; in png_push_process_row()
944 row_info.channels = png_ptr->channels; in png_push_process_row()
945 row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row()
946 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row()
951 png_read_filter_row(png_ptr, &row_info, png_ptr->row_buf + 1, in png_push_process_row()
962 memcpy(png_ptr->prev_row, png_ptr->row_buf, row_info.rowbytes + 1); in png_push_process_row()
966 png_do_read_transformations(png_ptr, &row_info); in png_push_process_row()
[all …]
Dpngpriv.h1178 PNG_INTERNAL_FUNCTION(void,png_do_read_interlace,(png_row_infop row_info,
1186 PNG_INTERNAL_FUNCTION(void,png_do_write_interlace,(png_row_infop row_info,
1194 row_info, png_bytep row, png_const_bytep prev_row, int filter),PNG_EMPTY);
1196 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_up_neon,(png_row_infop row_info,
1199 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1201 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1203 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1205 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1207 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
1209 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY);
[all …]
Dpngtest.c194 count_filters(png_structp png_ptr, png_row_infop row_info, png_bytep data) in count_filters() argument
196 if (png_ptr != NULL && row_info != NULL) in count_filters()
209 count_zero_samples(png_structp png_ptr, png_row_infop row_info, png_bytep data) in count_zero_samples() argument
226 if (row_info->color_type == 0 || row_info->color_type == 3) in count_zero_samples()
231 for (n = 0, nstop=row_info->width; n<nstop; n++) in count_zero_samples()
233 if (row_info->bit_depth == 1) in count_zero_samples()
245 if (row_info->bit_depth == 2) in count_zero_samples()
257 if (row_info->bit_depth == 4) in count_zero_samples()
269 if (row_info->bit_depth == 8) in count_zero_samples()
273 if (row_info->bit_depth == 16) in count_zero_samples()
[all …]
Dpngrutil.c3516 png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass, in png_do_read_interlace() argument
3524 if (row != NULL && row_info != NULL) in png_do_read_interlace()
3528 final_width = row_info->width * png_pass_inc[pass]; in png_do_read_interlace()
3530 switch (row_info->pixel_depth) in png_do_read_interlace()
3534 png_bytep sp = row + (png_size_t)((row_info->width - 1) >> 3); in png_do_read_interlace()
3546 sshift = (int)((row_info->width + 7) & 0x07); in png_do_read_interlace()
3556 sshift = 7 - (int)((row_info->width + 7) & 0x07); in png_do_read_interlace()
3563 for (i = 0; i < row_info->width; i++) in png_do_read_interlace()
3596 png_bytep sp = row + (png_uint_32)((row_info->width - 1) >> 2); in png_do_read_interlace()
3606 sshift = (int)(((row_info->width + 3) & 0x03) << 1); in png_do_read_interlace()
[all …]
Dpngread.c323 png_do_read_intrapixel(png_row_infop row_info, png_bytep row) in png_do_read_intrapixel() argument
328 (row_info->color_type & PNG_COLOR_MASK_COLOR)) in png_do_read_intrapixel()
331 png_uint_32 row_width = row_info->width; in png_do_read_intrapixel()
333 if (row_info->bit_depth == 8) in png_do_read_intrapixel()
338 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_read_intrapixel()
341 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_read_intrapixel()
353 else if (row_info->bit_depth == 16) in png_do_read_intrapixel()
358 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_read_intrapixel()
361 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_read_intrapixel()
387 png_row_info row_info; in png_read_row() local
[all …]
Dpngwutil.c2136 png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass) in png_do_write_interlace() argument
2152 switch (row_info->pixel_depth) in png_do_write_interlace()
2162 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2200 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2237 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2270 png_uint_32 row_width = row_info->width; in png_do_write_interlace()
2277 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace()
2297 row_info->width = (row_info->width + in png_do_write_interlace()
2302 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace()
2303 row_info->width); in png_do_write_interlace()
[all …]
Dpngstruct.h527 void (*read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info,
DCHANGES1398 Replaced row_info->rowbytes with row_bytes in png_write_find_filter()
1480 Added code to update the row_info->colortype in png_do_read_filler() (MSB).
3261 function prototypes in the manual. The row_info struct is png_row_infop.
3594 Moved row_info from png_struct to a local variable.
/external/libpng/arm/
Dfilter_neon_intrinsics.c42 png_read_filter_row_up_neon(png_row_infop row_info, png_bytep row, in png_read_filter_row_up_neon() argument
46 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_up_neon()
61 png_read_filter_row_sub3_neon(png_row_infop row_info, png_bytep row, in png_read_filter_row_sub3_neon() argument
65 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub3_neon()
106 png_read_filter_row_sub4_neon(png_row_infop row_info, png_bytep row, in png_read_filter_row_sub4_neon() argument
110 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_sub4_neon()
133 png_read_filter_row_avg3_neon(png_row_infop row_info, png_bytep row, in png_read_filter_row_avg3_neon() argument
138 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg3_neon()
199 png_read_filter_row_avg4_neon(png_row_infop row_info, png_bytep row, in png_read_filter_row_avg4_neon() argument
203 png_bytep rp_stop = row + row_info->rowbytes; in png_read_filter_row_avg4_neon()
[all …]
/external/freetype/src/sfnt/
Dpngshim.c54 png_row_infop row_info, in premultiply_data() argument
62 for ( i = 0; i < row_info->rowbytes; i += 4 ) in premultiply_data()
97 png_row_infop row_info, in convert_bytes_to_data() argument
105 for ( i = 0; i < row_info->rowbytes; i += 4 ) in convert_bytes_to_data()
/external/pdfium/third_party/freetype/src/sfnt/
Dpngshim.c53 png_row_infop row_info, in premultiply_data() argument
61 for ( i = 0; i < row_info->rowbytes; i += 4 ) in premultiply_data()
96 png_row_infop row_info, in convert_bytes_to_data() argument
104 for ( i = 0; i < row_info->rowbytes; i += 4 ) in convert_bytes_to_data()

12