Lines Matching defs:png_ptr

209  *     modified other MMX routines to run conditionally (png_ptr->asm_flags)
413 png_combine_row(png_structp png_ptr, png_bytep row, int mask)
421 png_warning(png_ptr, "asm_flags may not have been initialized");
430 png_memcpy(row, png_ptr->row_buf + 1,
431 (png_size_t)PNG_ROWBYTES(png_ptr->row_info.pixel_depth,png_ptr->width));
435 switch (png_ptr->row_info.pixel_depth)
437 case 1: /* png_ptr->row_info.pixel_depth */
446 sp = png_ptr->row_buf + 1;
450 if (png_ptr->transformations & PNG_PACKSWAP)
466 for (i = 0; i < png_ptr->width; i++)
494 case 2: /* png_ptr->row_info.pixel_depth */
504 sp = png_ptr->row_buf + 1;
508 if (png_ptr->transformations & PNG_PACKSWAP)
524 for (i = 0; i < png_ptr->width; i++)
549 case 4: /* png_ptr->row_info.pixel_depth */
559 sp = png_ptr->row_buf + 1;
563 if (png_ptr->transformations & PNG_PACKSWAP)
578 for (i = 0; i < png_ptr->width; i++)
603 case 8: /* png_ptr->row_info.pixel_depth */
610 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW)
624 srcptr = png_ptr->row_buf + 1;
626 len = png_ptr->width &~7; // reduce to multiple of 8
627 diff = (int) (png_ptr->width & 7); // amount lost
704 png_uint_32 initial_val = png_pass_start[png_ptr->pass];
706 register int stride = png_pass_inc[png_ptr->pass];
708 register int rep_bytes = png_pass_width[png_ptr->pass];
710 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
711 int diff = (int) (png_ptr->width & 7); /* amount lost */
714 srcptr = png_ptr->row_buf + 1 + initial_val;
741 case 16: /* png_ptr->row_info.pixel_depth */
748 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW)
762 srcptr = png_ptr->row_buf + 1;
764 len = png_ptr->width &~7; // reduce to multiple of 8
765 diff = (int) (png_ptr->width & 7); // amount lost //
858 png_uint_32 initial_val = BPP2 * png_pass_start[png_ptr->pass];
860 register int stride = BPP2 * png_pass_inc[png_ptr->pass];
862 register int rep_bytes = BPP2 * png_pass_width[png_ptr->pass];
864 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
865 int diff = (int) (png_ptr->width & 7); /* amount lost */
868 srcptr = png_ptr->row_buf + 1 + initial_val;
894 case 24: /* png_ptr->row_info.pixel_depth */
901 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW)
915 srcptr = png_ptr->row_buf + 1;
917 len = png_ptr->width &~7; // reduce to multiple of 8
918 diff = (int) (png_ptr->width & 7); // amount lost //
1026 png_uint_32 initial_val = BPP3 * png_pass_start[png_ptr->pass];
1028 register int stride = BPP3 * png_pass_inc[png_ptr->pass];
1030 register int rep_bytes = BPP3 * png_pass_width[png_ptr->pass];
1032 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
1033 int diff = (int) (png_ptr->width & 7); /* amount lost */
1036 srcptr = png_ptr->row_buf + 1 + initial_val;
1062 case 32: /* png_ptr->row_info.pixel_depth */
1069 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW)
1083 srcptr = png_ptr->row_buf + 1;
1085 len = png_ptr->width &~7; // reduce to multiple of 8
1086 diff = (int) (png_ptr->width & 7); // amount lost //
1201 png_uint_32 initial_val = BPP4 * png_pass_start[png_ptr->pass];
1203 register int stride = BPP4 * png_pass_inc[png_ptr->pass];
1205 register int rep_bytes = BPP4 * png_pass_width[png_ptr->pass];
1207 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
1208 int diff = (int) (png_ptr->width & 7); /* amount lost */
1211 srcptr = png_ptr->row_buf + 1 + initial_val;
1237 case 48: /* png_ptr->row_info.pixel_depth */
1244 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_COMBINE_ROW)
1258 srcptr = png_ptr->row_buf + 1;
1260 len = png_ptr->width &~7; // reduce to multiple of 8
1261 diff = (int) (png_ptr->width & 7); // amount lost //
1393 png_uint_32 initial_val = BPP6 * png_pass_start[png_ptr->pass];
1395 register int stride = BPP6 * png_pass_inc[png_ptr->pass];
1397 register int rep_bytes = BPP6 * png_pass_width[png_ptr->pass];
1399 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
1400 int diff = (int) (png_ptr->width & 7); /* amount lost */
1403 srcptr = png_ptr->row_buf + 1 + initial_val;
1429 case 64: /* png_ptr->row_info.pixel_depth */
1434 png_uint_32 initial_val = BPP8 * png_pass_start[png_ptr->pass];
1436 register int stride = BPP8 * png_pass_inc[png_ptr->pass];
1438 register int rep_bytes = BPP8 * png_pass_width[png_ptr->pass];
1440 png_uint_32 len = png_ptr->width &~7; /* reduce to mult. of 8 */
1441 int diff = (int) (png_ptr->width & 7); /* amount lost */
1444 srcptr = png_ptr->row_buf + 1 + initial_val;
1469 default: /* png_ptr->row_info.pixel_depth != 1,2,4,8,16,24,32,48,64 */
1472 png_warning(png_ptr, "Invalid row_info.pixel_depth in pnggccrd");
1475 } /* end switch (png_ptr->row_info.pixel_depth) */
1500 png_do_read_interlace(png_structp png_ptr)
1502 png_row_infop row_info = &(png_ptr->row_info);
1503 png_bytep row = png_ptr->row_buf + 1;
1504 int pass = png_ptr->pass;
1506 png_uint_32 transformations = png_ptr->transformations;
1515 png_warning(png_ptr, "asm_flags may not have been initialized");
1726 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_INTERLACE)
2674 if (dp < row || dp+3 > row+png_ptr->row_buf_size)
2677 row, dp, row+png_ptr->row_buf_size);
2678 printf("row_buf=%d\n",png_ptr->row_buf_size);
5073 png_read_filter_row(png_structp png_ptr, png_row_infop row_info, png_bytep
5081 /* GRR: these are superseded by png_ptr->asm_flags: */
5090 png_warning(png_ptr, "asm_flags may not have been initialized");
5105 (png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_SUB)? "MMX" :
5113 (png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_UP)? "MMX" :
5121 (png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_AVG)? "MMX" :
5129 (png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_PAETH)? "MMX":
5137 png_debug2(0, "row_number=%5ld, %5s, ", png_ptr->row_number, filnm);
5152 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_SUB) &&
5153 (row_info->pixel_depth >= png_ptr->mmx_bitdepth_threshold) &&
5154 (row_info->rowbytes >= png_ptr->mmx_rowbytes_threshold))
5181 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_UP) &&
5182 (row_info->pixel_depth >= png_ptr->mmx_bitdepth_threshold) &&
5183 (row_info->rowbytes >= png_ptr->mmx_rowbytes_threshold))
5209 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_AVG) &&
5210 (row_info->pixel_depth >= png_ptr->mmx_bitdepth_threshold) &&
5211 (row_info->rowbytes >= png_ptr->mmx_rowbytes_threshold))
5247 if ((png_ptr->asm_flags & PNG_ASM_FLAG_MMX_READ_FILTER_PAETH) &&
5248 (row_info->pixel_depth >= png_ptr->mmx_bitdepth_threshold) &&
5249 (row_info->rowbytes >= png_ptr->mmx_rowbytes_threshold))
5312 png_warning(png_ptr, "Ignoring bad row-filter type");