#include "libavutil/opt.h"
#include "libavutil/stereo3d.h"
#include "avcodec.h"
#include "bytestream.h"
#include "huffyuvencdsp.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 (PNGEncContext *c, 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) |
|
◆ IOBUF_SIZE
◆ OFFSET
◆ VE
◆ png_get_interlaced_row()
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 |
◆ sub_png_paeth_prediction()
◆ png_filter_row()
◆ png_choose_filter()
◆ convert_from_rgb32()
◆ png_write_chunk()
static void png_write_chunk |
( |
uint8_t ** |
f, |
|
|
uint32_t |
tag, |
|
|
const uint8_t * |
buf, |
|
|
int |
length |
|
) |
| |
|
static |
◆ png_write_row()
◆ encode_frame()
◆ png_enc_init()
◆ options
Initial value:= {
}
#define PNG_FILTER_VALUE_AVG
#define PNG_FILTER_VALUE_PAETH
#define PNG_FILTER_VALUE_MIXED
#define PNG_FILTER_VALUE_SUB
#define PNG_FILTER_VALUE_UP
#define PNG_FILTER_VALUE_NONE
Definition at line 508 of file pngenc.c.
◆ png_class
Initial value:= {
.class_name = "png",
}
static const AVOption options[]
Definition at line 520 of file pngenc.c.
◆ ff_png_encoder
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 bits with AV_PIX_FMT_RGB32 palette
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int png_enc_init(AVCodecContext *avctx)
static enum AVPixelFormat pix_fmts[]
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
static av_cold int init(AVCodecParserContext *s)
static const AVClass png_class
AVPixelFormat
Pixel format.
Definition at line 526 of file pngenc.c.