#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
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, AVFrame *p, int *got_frame, AVPacket *avpkt) |
| |
◆ WRITE_FRAME
| #define WRITE_FRAME |
( |
| D, |
|
|
| PIXEL, |
|
|
| suffix ) |
Value:
{ \
const unsigned offset = sign ? (1 << (
D - 1)) : 0; \
for (j = 0; j <
width; j++) { \
unsigned val = bytestream2_get_ ##suffix##
u(
g) << (
D - depth); \
} \
} \
} \
static double val(void *priv, double ch)
#define i(width, name, range_min, range_max)
#define u(width, name, range_min, range_max)
This structure describes decoded (raw) audio or video data.
Definition at line 93 of file pgxdec.c.
◆ pgx_get_number()
◆ pgx_decode_header()
◆ pgx_decode_frame()
◆ ff_pgx_decoder
Initial value:= {
.p.name = "pgx",
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static int pgx_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition at line 151 of file pgxdec.c.