FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
hq_hqa.c File Reference
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "canopus.h"
#include "get_bits.h"
#include "internal.h"
#include "hq_hqa.h"
#include "hq_hqadsp.h"

Go to the source code of this file.

Functions

static void put_blocks (HQContext *c, AVFrame *pic, int plane, int x, int y, int ilace, int16_t *block0, int16_t *block1)
 
static int hq_decode_block (HQContext *c, GetBitContext *gb, int16_t block[64], int qsel, int is_chroma, int is_hqa)
 
static int hq_decode_mb (HQContext *c, AVFrame *pic, GetBitContext *gb, int x, int y)
 
static int hq_decode_frame (HQContext *ctx, AVFrame *pic, int prof_num, size_t data_size)
 
static int hqa_decode_mb (HQContext *c, AVFrame *pic, int qgroup, GetBitContext *gb, int x, int y)
 
static int hqa_decode_slice (HQContext *ctx, AVFrame *pic, GetBitContext *gb, int quant, int slice_no, int w, int h)
 
static int hqa_decode_frame (HQContext *ctx, AVFrame *pic, size_t data_size)
 
static int hq_hqa_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int hq_hqa_decode_init (AVCodecContext *avctx)
 
static av_cold int hq_hqa_decode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_hq_hqa_decoder
 

Function Documentation

static void put_blocks ( HQContext c,
AVFrame pic,
int  plane,
int  x,
int  y,
int  ilace,
int16_t *  block0,
int16_t *  block1 
)
inlinestatic

Definition at line 50 of file hq_hqa.c.

Referenced by hq_decode_mb(), and hqa_decode_mb().

static int hq_decode_block ( HQContext c,
GetBitContext gb,
int16_t  block[64],
int  qsel,
int  is_chroma,
int  is_hqa 
)
static

Definition at line 62 of file hq_hqa.c.

Referenced by hq_decode_mb(), and hqa_decode_mb().

static int hq_decode_mb ( HQContext c,
AVFrame pic,
GetBitContext gb,
int  x,
int  y 
)
static

Definition at line 93 of file hq_hqa.c.

Referenced by hq_decode_frame().

static int hq_decode_frame ( HQContext ctx,
AVFrame pic,
int  prof_num,
size_t  data_size 
)
static

Definition at line 116 of file hq_hqa.c.

Referenced by hq_hqa_decode_frame().

static int hqa_decode_mb ( HQContext c,
AVFrame pic,
int  qgroup,
GetBitContext gb,
int  x,
int  y 
)
static

Definition at line 178 of file hq_hqa.c.

Referenced by hqa_decode_slice().

static int hqa_decode_slice ( HQContext ctx,
AVFrame pic,
GetBitContext gb,
int  quant,
int  slice_no,
int  w,
int  h 
)
static

Definition at line 218 of file hq_hqa.c.

Referenced by hqa_decode_frame().

static int hqa_decode_frame ( HQContext ctx,
AVFrame pic,
size_t  data_size 
)
static

Definition at line 239 of file hq_hqa.c.

Referenced by hq_hqa_decode_frame().

static int hq_hqa_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 295 of file hq_hqa.c.

static av_cold int hq_hqa_decode_init ( AVCodecContext avctx)
static

Definition at line 356 of file hq_hqa.c.

static av_cold int hq_hqa_decode_close ( AVCodecContext avctx)
static

Definition at line 366 of file hq_hqa.c.

Variable Documentation

AVCodec ff_hq_hqa_decoder
Initial value:
= {
.name = "hq_hqa",
.long_name = NULL_IF_CONFIG_SMALL("Canopus HQ/HQA"),
.priv_data_size = sizeof(HQContext),
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int hq_hqa_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: hq_hqa.c:295
static av_cold int hq_hqa_decode_init(AVCodecContext *avctx)
Definition: hq_hqa.c:356
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static av_cold int hq_hqa_decode_close(AVCodecContext *avctx)
Definition: hq_hqa.c:366
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 376 of file hq_hqa.c.