Go to the source code of this file.
|
| static void | copy_frame (AVFrame *f, const uint8_t *src, int width, int height) |
| | copy frame data from buffer to AVFrame, handling stride.
|
| |
| static int | get_quant (AVCodecContext *avctx, NuvContext *c, const uint8_t *buf, int size) |
| | extract quantization tables from codec data into our context
|
| |
| static void | get_quant_quality (NuvContext *c, int quality) |
| | set quantization tables from a quality value
|
| |
| static int | codec_reinit (AVCodecContext *avctx, int width, int height, int quality) |
| |
| static int | decode_frame (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt) |
| |
| static av_cold int | decode_init (AVCodecContext *avctx) |
| |
| static av_cold int | decode_end (AVCodecContext *avctx) |
| |
◆ copy_frame()
| static void copy_frame |
( |
AVFrame * | f, |
|
|
const uint8_t * | src, |
|
|
int | width, |
|
|
int | height ) |
|
static |
copy frame data from buffer to AVFrame, handling stride.
- Parameters
-
| f | destination AVFrame |
| src | source buffer, does not use any line-stride |
| width | width of the video frame |
| height | height of the video frame |
Definition at line 54 of file nuv.c.
Referenced by decode_frame().
◆ get_quant()
◆ get_quant_quality()
| static void get_quant_quality |
( |
NuvContext * | c, |
|
|
int | quality ) |
|
static |
set quantization tables from a quality value
Definition at line 85 of file nuv.c.
Referenced by codec_reinit().
◆ codec_reinit()
| static int codec_reinit |
( |
AVCodecContext * | avctx, |
|
|
int | width, |
|
|
int | height, |
|
|
int | quality ) |
|
static |
◆ decode_frame()
◆ decode_init()
◆ decode_end()
◆ ff_nuv_decoder
Initial value:= {
.p.name = "nuv",
}
static av_cold void close(AVCodecParserContext *s)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static av_cold int decode_init(AVCodecContext *avctx)
static av_cold int decode_end(AVCodecContext *avctx)
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition at line 345 of file nuv.c.