FFmpeg
|
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "libavutil/bswap.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/lzo.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "idctdsp.h"
#include "internal.h"
#include "rtjpeg.h"
Go to the source code of this file.
Data Structures | |
struct | NuvContext |
Functions | |
static void | copy_frame (AVFrame *f, const uint8_t *src, int width, int height) |
copy frame data from buffer to AVFrame, handling stride. More... | |
static int | get_quant (AVCodecContext *avctx, NuvContext *c, const uint8_t *buf, int size) |
extract quantization tables from codec data into our context More... | |
static void | get_quant_quality (NuvContext *c, int quality) |
set quantization tables from a quality value More... | |
static int | codec_reinit (AVCodecContext *avctx, int width, int height, int quality) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
static const uint8_t | fallback_lquant [] |
static const uint8_t | fallback_cquant [] |
AVCodec | ff_nuv_decoder |
copy frame data from buffer to AVFrame, handling stride.
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 76 of file nuv.c.
Referenced by decode_frame().
|
static |
extract quantization tables from codec data into our context
Definition at line 86 of file nuv.c.
Referenced by decode_frame(), and decode_init().
|
static |
set quantization tables from a quality value
Definition at line 104 of file nuv.c.
Referenced by codec_reinit().
|
static |
Definition at line 114 of file nuv.c.
Referenced by decode_frame(), and decode_init().
|
static |
|
static |
|
static |
|
static |
Definition at line 47 of file nuv.c.
Referenced by get_quant_quality().
|
static |
Definition at line 58 of file nuv.c.
Referenced by get_quant_quality().
AVCodec ff_nuv_decoder |