Home | History | Annotate | Download | only in libpng

Lines Matching refs:keep

1506                                         * keep going.
2821 png_uint_32 length, int keep)
2833 * 'keep' is the value from the png_chunk_unknown_handling, the setting for
2841 keep = png_chunk_unknown_handling(png_ptr, png_ptr->chunk_name);
2850 /* The user callback takes precedence over the chunk keep value, but the
2851 * keep value is still required to validate a save of a critical chunk.
2865 * a 'keep' behavior for this particular chunk, in which
2875 /* If the keep value is 'default' or 'never' override it, but
2876 * still error out on critical chunks unless the keep value is
2886 if (keep < PNG_HANDLE_CHUNK_IF_SAFE)
2895 /* with keep = PNG_HANDLE_CHUNK_IF_SAFE */
2898 keep = PNG_HANDLE_CHUNK_IF_SAFE;
2906 keep = PNG_HANDLE_CHUNK_NEVER;
2911 keep = PNG_HANDLE_CHUNK_NEVER; /* insufficient memory */
2920 /* keep is currently just the per-chunk setting, if there was no
2925 if (keep == PNG_HANDLE_CHUNK_AS_DEFAULT)
2926 keep = png_ptr->unknown_default;
2928 if (keep == PNG_HANDLE_CHUNK_ALWAYS ||
2929 (keep == PNG_HANDLE_CHUNK_IF_SAFE &&
2933 keep = PNG_HANDLE_CHUNK_NEVER;
2947 * chunk. If 'keep' is something other than AS_DEFAULT or NEVER then
2951 if (keep > PNG_HANDLE_CHUNK_NEVER)
2962 if (keep == PNG_HANDLE_CHUNK_ALWAYS ||
2963 (keep == PNG_HANDLE_CHUNK_IF_SAFE &&
3011 PNG_UNUSED(keep)
3105 /* end_mask is now the bits to *keep* from the destination row */