|
FFmpeg
|
#include <math.h>#include "avcodec.h"#include "codec_internal.h"#include "encode.h"#include "exif_internal.h"#include "bytestream.h"#include "lossless_videoencdsp.h"#include "png.h"#include "apng.h"#include "zlib_wrapper.h"#include "libavutil/avassert.h"#include "libavutil/buffer.h"#include "libavutil/crc.h"#include "libavutil/csp.h"#include "libavutil/mastering_display_metadata.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "libavutil/rational.h"#include "libavutil/stereo3d.h"#include <zlib.h>Go to the source code of this file.
Data Structures | |
| struct | APNGFctlChunk |
| struct | PNGEncContext |
Macros | |
| #define | IOBUF_SIZE 4096 |
| #define | PNG_LRINT(d, divisor) |
| #define | PNG_Q2D(q, divisor) |
| #define | AV_WB32_PNG_D(buf, q) |
| #define | OFFSET(x) |
| #define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
| static void | png_get_interlaced_row (uint8_t *dst, int row_size, int bits_per_pixel, int pass, const uint8_t *src, int width) |
| static void | sub_png_paeth_prediction (uint8_t *dst, const uint8_t *src, const uint8_t *top, int w, int bpp) |
| static void | sub_left_prediction (PNGEncContext *c, uint8_t *dst, const uint8_t *src, int bpp, int size) |
| static void | png_filter_row (PNGEncContext *c, uint8_t *dst, int filter_type, const uint8_t *src, const uint8_t *top, int size, int bpp) |
| static uint8_t * | png_choose_filter (PNGEncContext *s, uint8_t *dst, const uint8_t *src, const uint8_t *top, int size, int bpp) |
| static void | png_write_chunk (uint8_t **f, uint32_t tag, const uint8_t *buf, int length) |
| static void | png_write_image_data (AVCodecContext *avctx, const uint8_t *buf, int length) |
| static int | png_write_row (AVCodecContext *avctx, const uint8_t *data, int size) |
| static int | png_get_chrm (enum AVColorPrimaries prim, uint8_t *buf) |
| static int | png_get_gama (enum AVColorTransferCharacteristic trc, uint8_t *buf) |
| static int | png_write_iccp (PNGEncContext *s, const AVFrameSideData *sd) |
| static int | encode_headers (AVCodecContext *avctx, const AVFrame *pict) |
| static int | encode_frame (AVCodecContext *avctx, const AVFrame *pict) |
| static int | add_icc_profile_size (AVCodecContext *avctx, const AVFrame *pict, uint64_t *max_packet_size) |
| static int | add_exif_profile_size (AVCodecContext *avctx, const AVFrame *pict, uint64_t *max_packet_size) |
| static int | encode_png (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
| static int | apng_do_inverse_blend (AVFrame *output, const AVFrame *input, APNGFctlChunk *fctl_chunk, uint8_t bpp) |
| static int | apng_encode_frame (AVCodecContext *avctx, const AVFrame *pict, APNGFctlChunk *best_fctl_chunk, APNGFctlChunk *best_last_fctl_chunk) |
| static int | encode_apng (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
| static av_cold int | png_enc_init (AVCodecContext *avctx) |
| static av_cold int | png_enc_close (AVCodecContext *avctx) |
Variables | |
| static const AVOption | options [] |
| static const AVClass | pngenc_class |
| const FFCodec | ff_png_encoder |
| const FFCodec | ff_apng_encoder |
| #define IOBUF_SIZE 4096 |
Definition at line 46 of file pngenc.c.
Referenced by encode_apng(), encode_frame(), encode_png(), and png_write_row().
| #define PNG_LRINT | ( | d, | |
| divisor ) |
| #define PNG_Q2D | ( | q, | |
| divisor ) |
| #define AV_WB32_PNG_D | ( | buf, | |
| q ) |
| #define OFFSET | ( | x | ) |
| #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
|
static |
Definition at line 92 of file pngenc.c.
Referenced by encode_frame().
|
static |
Definition at line 131 of file pngenc.c.
Referenced by png_filter_row().
|
static |
Definition at line 159 of file pngenc.c.
Referenced by png_filter_row().
|
static |
Definition at line 175 of file pngenc.c.
Referenced by png_choose_filter().
|
static |
Definition at line 206 of file pngenc.c.
Referenced by encode_frame().
|
static |
Definition at line 236 of file pngenc.c.
Referenced by encode_apng(), encode_headers(), encode_png(), png_write_iccp(), and png_write_image_data().
|
static |
Definition at line 256 of file pngenc.c.
Referenced by encode_frame(), and png_write_row().
|
static |
Definition at line 284 of file pngenc.c.
Referenced by encode_frame().
|
static |
Definition at line 309 of file pngenc.c.
Referenced by encode_headers().
|
static |
Definition at line 327 of file pngenc.c.
Referenced by encode_headers().
|
static |
Definition at line 337 of file pngenc.c.
Referenced by encode_headers().
|
static |
Definition at line 379 of file pngenc.c.
Referenced by encode_apng(), and encode_png().
|
static |
Definition at line 522 of file pngenc.c.
Referenced by apng_encode_frame(), and encode_png().
|
static |
Definition at line 616 of file pngenc.c.
Referenced by encode_apng(), and encode_png().
|
static |
Definition at line 644 of file pngenc.c.
Referenced by encode_apng(), and encode_png().
|
static |
|
static |
Definition at line 727 of file pngenc.c.
Referenced by apng_encode_frame().
|
static |
Definition at line 873 of file pngenc.c.
Referenced by encode_apng().
|
static |
|
static |
|
static |
|
static |
|
static |
| const FFCodec ff_png_encoder |
| const FFCodec ff_apng_encoder |