#include "avcodec.h"
#include "bytestream.h"
#include "dsputil.h"
#include "png.h"
#include <zlib.h>
Go to the source code of this file.
|
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 | convert_from_rgb32 (uint8_t *dst, const uint8_t *src, int width) |
|
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) |
|
static av_cold int | png_enc_close (AVCodecContext *avctx) |
|
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 |
static void png_write_chunk |
( |
uint8_t ** |
f, |
|
|
uint32_t |
tag, |
|
|
const uint8_t * |
buf, |
|
|
int |
length |
|
) |
| |
|
static |
Initial value:= {
.name = "png",
},
}
packed RGB 8:8:8, 24bpp, RGBRGB...
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
8 bit with PIX_FMT_RGB32 palette
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void close(AVCodecParserContext *s)
static av_cold int png_enc_init(AVCodecContext *avctx)
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
static av_cold int init(AVCodecParserContext *s)
static av_cold int png_enc_close(AVCodecContext *avctx)
AVPixelFormat
Pixel format.
Definition at line 464 of file pngenc.c.