FFmpeg
|
pngenc.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "bytestream.h"
#include "dsputil.h"
#include "png.h"
#include "libavutil/avassert.h"
#include <zlib.h>
Include dependency graph for pngenc.c:
Go to the source code of this file.
Data Structures | |
struct | PNGEncContext |
Macros | |
#define | IOBUF_SIZE 4096 |
Typedefs | |
typedef struct PNGEncContext | PNGEncContext |
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, uint8_t *src, uint8_t *top, int w, int bpp) |
static void | png_filter_row (DSPContext *dsp, uint8_t *dst, int filter_type, uint8_t *src, uint8_t *top, int size, int bpp) |
static uint8_t * | png_choose_filter (PNGEncContext *s, uint8_t *dst, uint8_t *src, 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 int | png_write_row (PNGEncContext *s, const uint8_t *data, int size) |
static int | encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
static av_cold int | png_enc_init (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_png_encoder |
Macro Definition Documentation
#define IOBUF_SIZE 4096 |
Definition at line 37 of file pngenc.c.
Referenced by encode_frame(), and png_write_row().
Typedef Documentation
typedef struct PNGEncContext PNGEncContext |
Function Documentation
|
static |
|
static |
Definition at line 149 of file pngenc.c.
Referenced by encode_frame().
|
static |
|
static |
Definition at line 119 of file pngenc.c.
Referenced by png_choose_filter().
|
static |
Definition at line 53 of file pngenc.c.
Referenced by encode_frame().
Definition at line 179 of file pngenc.c.
Referenced by encode_frame(), and png_write_row().
|
static |
Definition at line 199 of file pngenc.c.
Referenced by encode_frame().
|
static |
Definition at line 92 of file pngenc.c.
Referenced by png_filter_row().
Variable Documentation
AVCodec ff_png_encoder |
Initial value:
= {
.name = "png",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_PNG,
.priv_data_size = sizeof(PNGEncContext),
.init = png_enc_init,
.encode2 = encode_frame,
.capabilities = CODEC_CAP_FRAME_THREADS | CODEC_CAP_INTRA_ONLY,
},
.long_name = NULL_IF_CONFIG_SMALL("PNG (Portable Network Graphics) image"),
}
Definition: pixfmt.h:67
struct PNGEncContext PNGEncContext
Definition: libavcodec/avcodec.h:164
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: pngenc.c:219
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:209
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:78
#define CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: libavcodec/avcodec.h:810
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:111
Definition: avutil.h:143
Generated on Fri Dec 20 2024 06:56:15 for FFmpeg by 1.8.11