Libav
Data Structures | Macros | Functions | Variables
fic.c File Reference
#include "libavutil/common.h"
#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
#include "golomb.h"

Go to the source code of this file.

Data Structures

struct  FICThreadContext
 
struct  FICContext
 

Macros

#define FIC_HEADER_SIZE   27
 

Functions

static av_always_inline void fic_idct (int16_t *blk, int step, int shift)
 
static void fic_idct_put (uint8_t *dst, int stride, int16_t *block)
 
static int fic_decode_block (FICContext *ctx, GetBitContext *gb, uint8_t *dst, int stride, int16_t *block)
 
static int fic_decode_slice (AVCodecContext *avctx, void *tdata)
 
static av_always_inline void fic_alpha_blend (uint8_t *dst, uint8_t *src, int size, uint8_t *alpha)
 
static void fic_draw_cursor (AVCodecContext *avctx, int cur_x, int cur_y)
 
static int fic_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int fic_decode_close (AVCodecContext *avctx)
 
static av_cold int fic_decode_init (AVCodecContext *avctx)
 

Variables

static const uint8_t fic_qmat_hq [64]
 
static const uint8_t fic_qmat_lq [64]
 
static const uint8_t fic_header [7] = { 0, 0, 1, 'F', 'I', 'C', 'V' }
 
AVCodec ff_fic_decoder
 

Macro Definition Documentation

§ FIC_HEADER_SIZE

#define FIC_HEADER_SIZE   27

Definition at line 80 of file fic.c.

Referenced by fic_decode_frame().

Function Documentation

§ fic_idct()

static av_always_inline void fic_idct ( int16_t *  blk,
int  step,
int  shift 
)
static

Definition at line 82 of file fic.c.

Referenced by fic_idct_put().

§ fic_idct_put()

static void fic_idct_put ( uint8_t dst,
int  stride,
int16_t *  block 
)
static

Definition at line 106 of file fic.c.

Referenced by fic_decode_block().

§ fic_decode_block()

static int fic_decode_block ( FICContext ctx,
GetBitContext gb,
uint8_t dst,
int  stride,
int16_t *  block 
)
static

Definition at line 131 of file fic.c.

Referenced by fic_decode_slice().

§ fic_decode_slice()

static int fic_decode_slice ( AVCodecContext avctx,
void tdata 
)
static

Definition at line 160 of file fic.c.

Referenced by fic_decode_frame().

§ fic_alpha_blend()

static av_always_inline void fic_alpha_blend ( uint8_t dst,
uint8_t src,
int  size,
uint8_t alpha 
)
static

Definition at line 192 of file fic.c.

Referenced by fic_draw_cursor().

§ fic_draw_cursor()

static void fic_draw_cursor ( AVCodecContext avctx,
int  cur_x,
int  cur_y 
)
static

Definition at line 201 of file fic.c.

Referenced by fic_decode_frame().

§ fic_decode_frame()

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

Definition at line 255 of file fic.c.

§ fic_decode_close()

static av_cold int fic_decode_close ( AVCodecContext avctx)
static

Definition at line 418 of file fic.c.

§ fic_decode_init()

static av_cold int fic_decode_init ( AVCodecContext avctx)
static

Definition at line 429 of file fic.c.

Variable Documentation

§ fic_qmat_hq

const uint8_t fic_qmat_hq[64]
static
Initial value:
= {
1, 2, 2, 2, 3, 3, 3, 4,
2, 2, 2, 3, 3, 3, 4, 4,
2, 2, 3, 3, 3, 4, 4, 4,
2, 2, 3, 3, 3, 4, 4, 5,
2, 3, 3, 3, 4, 4, 5, 6,
3, 3, 3, 4, 4, 5, 6, 7,
3, 3, 3, 4, 4, 5, 7, 7,
3, 3, 4, 4, 5, 7, 7, 7,
}

Definition at line 56 of file fic.c.

Referenced by fic_decode_frame().

§ fic_qmat_lq

const uint8_t fic_qmat_lq[64]
static
Initial value:
= {
1, 5, 6, 7, 8, 9, 9, 11,
5, 5, 7, 8, 9, 9, 11, 12,
6, 7, 8, 9, 9, 11, 11, 12,
7, 7, 8, 9, 9, 11, 12, 13,
7, 8, 9, 9, 10, 11, 13, 16,
8, 9, 9, 10, 11, 13, 16, 19,
8, 9, 9, 11, 12, 15, 18, 23,
9, 9, 11, 12, 15, 18, 23, 27
}

Definition at line 67 of file fic.c.

Referenced by fic_decode_frame().

§ fic_header

const uint8_t fic_header[7] = { 0, 0, 1, 'F', 'I', 'C', 'V' }
static

Definition at line 78 of file fic.c.

Referenced by fic_decode_frame().

§ ff_fic_decoder

AVCodec ff_fic_decoder
Initial value:
= {
.name = "fic",
.long_name = NULL_IF_CONFIG_SMALL("Mirillis FIC"),
.priv_data_size = sizeof(FICContext),
}
static av_cold int fic_decode_close(AVCodecContext *avctx)
Definition: fic.c:418
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
Definition: fic.c:38
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static av_cold int fic_decode_init(AVCodecContext *avctx)
Definition: fic.c:429
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
static int fic_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: fic.c:255
#define CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: avcodec.h:759
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499

Definition at line 448 of file fic.c.