Go to the source code of this file.
Raw Video Decoder
Definition in file rawdec.c.
◆ SCALE16
#define SCALE16 |
( |
|
x, |
|
|
|
bits |
|
) |
| (((x) << (16 - (bits))) | ((x) >> (2 * (bits) - 16))) |
◆ MKSCALE16
#define MKSCALE16 |
( |
|
name, |
|
|
|
r16, |
|
|
|
w16 |
|
) |
| |
Value:static void name(
AVCodecContext *avctx, uint8_t * dst,
const uint8_t *buf,
int buf_size,
int packed) \
{ \
if (!packed) { \
for (
i = 0;
i + 1 < buf_size;
i += 2) \
w16(dst +
i,
SCALE16(r16(buf +
i), avctx->bits_per_coded_sample)); \
} else { \
GetBitContext gb; \
init_get_bits(&gb, buf, buf_size * 8); \
for (
i = 0;
i < avctx->width * avctx->height;
i++) { \
} \
} \
}
Scale buffer to 16 bits per coded sample resolution.
Definition at line 145 of file rawdec.c.
◆ raw_init_decoder()
◆ flip()
◆ raw_decode()
◆ raw_close_decoder()
◆ options
Initial value:
Definition at line 59 of file rawdec.c.
◆ rawdec_class
Initial value:= {
.class_name = "rawdec",
}
Definition at line 64 of file rawdec.c.
◆ ff_rawvideo_decoder
Initial value:= {
.name = "rawvideo",
}
Definition at line 484 of file rawdec.c.
static av_cold int raw_init_decoder(AVCodecContext *avctx)
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
#define AV_OPT_FLAG_VIDEO_PARAM
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static const AVOption options[]
#define LIBAVUTIL_VERSION_INT
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define i(width, name, range_min, range_max)
static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
static av_cold int raw_close_decoder(AVCodecContext *avctx)
main external API structure.
static const AVClass rawdec_class
#define AV_CODEC_CAP_PARAM_CHANGE
Codec supports changed parameters at any point.