Raw Video Decoder.
More...
Go to the source code of this file.
Raw Video Decoder.
Definition in file rawdec.c.
◆ SCALE16
| #define SCALE16 |
( |
| x, |
|
|
| bits ) |
Value:(((x) << (16 - (
bits))) | ((x) >> (2 * (
bits) - 16)))
static const uint8_t bits[8]
Definition at line 140 of file rawdec.c.
◆ MKSCALE16
| #define MKSCALE16 |
( |
| name, |
|
|
| r16, |
|
|
| w16 ) |
Value:
{ \
if (!packed) { \
for (
i = 0;
i + 1 < buf_size;
i += 2) \
w16(
dst +
i,
SCALE16(r16(buf +
i), avctx->bits_per_coded_sample)); \
} else { \
init_get_bits(&gb, buf, buf_size * 8); \
for (
i = 0;
i < avctx->width * avctx->height;
i++) { \
} \
} \
}
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
main external API structure.
Scale buffer to 16 bits per coded sample resolution.
Definition at line 145 of file rawdec.c.
◆ raw_init_decoder()
◆ flip()
Definition at line 131 of file rawdec.c.
Referenced by av_display_matrix_flip(), config_input(), decode_remap(), encode_histogram_remap(), ff_oss_audio_open(), ff_vp56_init_context(), filter_frame(), fits_encode_frame(), get_video_buffer(), tnput(), and vp6_decode_init_context().
◆ raw_decode()
◆ raw_close_decoder()
◆ options
Initial value:={
}
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
#define AV_OPT_FLAG_VIDEO_PARAM
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition at line 59 of file rawdec.c.
◆ rawdec_class
Initial value:= {
.class_name = "rawdec",
}
#define LIBAVUTIL_VERSION_INT
Definition at line 64 of file rawdec.c.
◆ ff_rawvideo_decoder
Initial value:= {
.p.name = "rawvideo",
}
static av_cold void close(AVCodecParserContext *s)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_PARAM_CHANGE
Codec supports changed parameters at any point.
static av_cold int raw_close_decoder(AVCodecContext *avctx)
static av_cold int raw_init_decoder(AVCodecContext *avctx)
static const AVClass rawdec_class
static int raw_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition at line 474 of file rawdec.c.