Go to the source code of this file.
|
static int | pgx_get_number (AVCodecContext *avctx, GetByteContext *g, int *number) |
|
static int | pgx_decode_header (AVCodecContext *avctx, GetByteContext *g, int *depth, int *width, int *height, int *sign) |
|
static int | pgx_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
|
◆ WRITE_FRAME
Value:
{ \
for (j = 0; j <
width; j++) { \
if (sign) \
val = (
PIXEL)bytestream2_get_ ##
suffix(
g) + (1 << (depth - 1)); \
else \
val = bytestream2_get_ ##
suffix(
g); \
} \
} \
} \
static double val(void *priv, double ch)
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
Definition at line 97 of file pgxdec.c.
◆ pgx_get_number()
◆ pgx_decode_header()
◆ pgx_decode_frame()
◆ ff_pgx_decoder
Initial value:= {
.name = "pgx",
}
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int pgx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition at line 161 of file pgxdec.c.