Home | History | Annotate | Download | only in libpng

Lines Matching defs:pass

1348     * and only clear them in they were not set before and all the tests pass.
3024 * 'display' is false only those pixels present in the pass are filled in.
3032 unsigned int pass = png_ptr->pass;
3081 * pass.
3085 pass < 6 && (display == 0 ||
3087 (display == 1 && (pass & 1) != 0)))
3089 /* Narrow images may have no bits in a pass; the caller should handle
3092 if (row_width <= PNG_PASS_START_COL(pass))
3113 * only calling it on rows appropriate to the pass. This function only
3118 * swapped bytes. Pass 'p' is in the range 0..6; 'x', a pixel index,
3120 * copied in the pass, 0 if not. 'S' is for the sparkle method, 'B'
3146 /* Return a mask for pass 'p' pixel 'x' at depth 'd'. The mask is
3188 * then pass:
3199 * pass>>1.
3209 # define MASK(pass,depth,display,png)\
3210 ((display)?display_mask[png][DEPTH_INDEX(depth)][pass>>1]:\
3211 row_mask[png][DEPTH_INDEX(depth)][pass])
3217 # define MASK(pass,depth,display,png)\
3218 ((display)?B_MASK(pass,depth,png):S_MASK(pass,depth,png))
3231 mask = MASK(pass, pixel_depth, display, 0);
3235 mask = MASK(pass, pixel_depth, display, 1);
3281 /* Regardless of pass number the Adam 7 interlace always results in a
3286 unsigned int offset = PNG_PASS_START_COL(pass) * pixel_depth;
3296 /* When doing the 'block' algorithm the pixel in the pass gets
3300 bytes_to_copy = (1<<((6-pass)>>1)) * pixel_depth;
3311 bytes_to_jump = PNG_PASS_COL_OFFSET(pass) * pixel_depth;
3509 png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass,
3512 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */
3521 final_width = row_info->width * png_pass_inc[pass];
3531 int jstop = png_pass_inc[pass];
3593 int jstop = png_pass_inc[pass];
3657 int jstop = png_pass_inc[pass];
3721 int jstop = png_pass_inc[pass];
4152 pass)
4154 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */
4163 png_ptr->pass = pass;
4165 png_pass_inc[png_ptr->pass] - 1 -
4166 png_pass_start[png_ptr->pass]) /
4167 png_pass_inc[png_ptr->pass];
4175 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */
4207 png_ptr->pass++;
4209 if (png_ptr->pass >= 7)
4213 png_pass_inc[png_ptr->pass] - 1 -
4214 png_pass_start[png_ptr->pass]) /
4215 png_pass_inc[png_ptr->pass];
4220 png_pass_yinc[png_ptr->pass] - 1 -
4221 png_pass_ystart[png_ptr->pass]) /
4222 png_pass_yinc[png_ptr->pass];
4230 if (png_ptr->pass < 7)
4235 /* Here after at the end of the last row of the last pass. */
4244 /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */
4278 png_pass_inc[png_ptr->pass] - 1 -
4279 png_pass_start[png_ptr->pass]) /
4280 png_pass_inc[png_ptr->pass];