FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
fic.c File Reference
#include "libavutil/common.h"
#include "avcodec.h"
#include "internal.h"
#include "dsputil.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 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 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

#define FIC_HEADER_SIZE   27

Definition at line 81 of file fic.c.

Referenced by fic_decode_frame().

Function Documentation

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

Definition at line 83 of file fic.c.

Referenced by fic_decode_slice().

static int fic_decode_slice ( AVCodecContext avctx,
void tdata 
)
static

Definition at line 111 of file fic.c.

Referenced by fic_decode_frame().

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

Definition at line 143 of file fic.c.

static av_cold int fic_decode_close ( AVCodecContext avctx)
static

Definition at line 261 of file fic.c.

static av_cold int fic_decode_init ( AVCodecContext avctx)
static

Definition at line 271 of file fic.c.

Variable Documentation

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 57 of file fic.c.

Referenced by fic_decode_frame().

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 68 of file fic.c.

Referenced by fic_decode_frame().

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

Definition at line 79 of file fic.c.

Referenced by fic_decode_frame().

AVCodec ff_fic_decoder
Initial value:
= {
.name = "fic",
.long_name = NULL_IF_CONFIG_SMALL("Mirillis FIC"),
.priv_data_size = sizeof(FICContext),
}

Definition at line 294 of file fic.c.