|
FFmpeg
|
Go to the source code of this file.
Macros | |
| #define | PNG_COLOR_MASK_PALETTE 1 |
| #define | PNG_COLOR_MASK_COLOR 2 |
| #define | PNG_COLOR_MASK_ALPHA 4 |
| #define | PNG_COLOR_TYPE_GRAY 0 |
| #define | PNG_COLOR_TYPE_PALETTE (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE) |
| #define | PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR) |
| #define | PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA) |
| #define | PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA) |
| #define | PNG_FILTER_TYPE_LOCO 64 |
| #define | PNG_FILTER_VALUE_NONE 0 |
| #define | PNG_FILTER_VALUE_SUB 1 |
| #define | PNG_FILTER_VALUE_UP 2 |
| #define | PNG_FILTER_VALUE_AVG 3 |
| #define | PNG_FILTER_VALUE_PAETH 4 |
| #define | PNG_FILTER_VALUE_MIXED 5 |
| #define | NB_PASSES 7 |
| #define | PNGSIG 0x89504e470d0a1a0a |
| #define | MNGSIG 0x8a4d4e470d0a1a0a |
Functions | |
| int | ff_png_get_nb_channels (int color_type) |
| int | ff_png_pass_row_size (int pass, int bits_per_pixel, int width) |
| void | ff_png_filter_row (PNGDSPContext *dsp, uint8_t *dst, int filter_type, const uint8_t *src, const uint8_t *last, int size, int bpp) |
Variables | |
| const uint8_t | ff_png_pass_ymask [NB_PASSES] |
| #define PNG_COLOR_MASK_PALETTE 1 |
Definition at line 29 of file png.h.
Referenced by decode_sbit_chunk(), encode_headers(), and ff_png_get_nb_channels().
| #define PNG_COLOR_MASK_COLOR 2 |
Definition at line 30 of file png.h.
Referenced by ff_png_get_nb_channels().
| #define PNG_COLOR_MASK_ALPHA 4 |
Definition at line 31 of file png.h.
Referenced by ff_png_get_nb_channels().
| #define PNG_COLOR_TYPE_GRAY 0 |
Definition at line 33 of file png.h.
Referenced by decode_idat_chunk(), decode_trns_chunk(), and png_enc_init().
| #define PNG_COLOR_TYPE_PALETTE (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE) |
Definition at line 34 of file png.h.
Referenced by apng_reset_background(), decode_frame_common(), decode_idat_chunk(), decode_trns_chunk(), encode_apng(), encode_headers(), handle_p_frame_apng(), handle_small_bpp(), and png_enc_init().
| #define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR) |
Definition at line 35 of file png.h.
Referenced by decode_idat_chunk(), decode_trns_chunk(), and png_enc_init().
| #define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA) |
Definition at line 36 of file png.h.
Referenced by decode_idat_chunk(), png_enc_init(), and png_handle_row().
| #define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA) |
Definition at line 37 of file png.h.
Referenced by decode_idat_chunk(), and png_enc_init().
| #define PNG_FILTER_TYPE_LOCO 64 |
Definition at line 39 of file png.h.
Referenced by png_handle_row().
| #define PNG_FILTER_VALUE_NONE 0 |
Definition at line 40 of file png.h.
Referenced by ff_png_filter_row(), png_enc_init(), and png_filter_row().
| #define PNG_FILTER_VALUE_SUB 1 |
Definition at line 41 of file png.h.
Referenced by ff_png_filter_row(), png_choose_filter(), and png_filter_row().
| #define PNG_FILTER_VALUE_UP 2 |
Definition at line 42 of file png.h.
Referenced by ff_png_filter_row(), and png_filter_row().
| #define PNG_FILTER_VALUE_AVG 3 |
Definition at line 43 of file png.h.
Referenced by ff_png_filter_row(), and png_filter_row().
| #define PNG_FILTER_VALUE_PAETH 4 |
Definition at line 44 of file png.h.
Referenced by ff_png_filter_row(), and png_filter_row().
| #define PNG_FILTER_VALUE_MIXED 5 |
Definition at line 45 of file png.h.
Referenced by encode_frame(), and png_choose_filter().
| #define NB_PASSES 7 |
Definition at line 47 of file png.h.
Referenced by encode_frame(), and png_handle_row().
| #define PNGSIG 0x89504e470d0a1a0a |
Definition at line 49 of file png.h.
Referenced by apng_probe(), apng_read_header(), apng_write_header(), encode_png(), ff_flac_parse_picture(), ff_id3v2_parse_apic(), png_parse(), and probe().
| #define MNGSIG 0x8a4d4e470d0a1a0a |
Definition at line 50 of file png.h.
Referenced by png_parse().
| int ff_png_get_nb_channels | ( | int | color_type | ) |
Definition at line 41 of file png.c.
Referenced by decode_idat_chunk(), decode_sbit_chunk(), encode_headers(), and png_enc_init().
| int ff_png_pass_row_size | ( | int | pass, |
| int | bits_per_pixel, | ||
| int | width ) |
Definition at line 54 of file png.c.
Referenced by decode_idat_chunk(), encode_frame(), and png_handle_row().
| void ff_png_filter_row | ( | PNGDSPContext * | dsp, |
| uint8_t * | dst, | ||
| int | filter_type, | ||
| const uint8_t * | src, | ||
| const uint8_t * | last, | ||
| int | size, | ||
| int | bpp ) |
Definition at line 260 of file pngdec.c.
Referenced by handle_row(), and png_handle_row().
|
extern |
Definition at line 27 of file png.c.
Referenced by encode_frame(), and png_handle_row().