FFmpeg
Data Structures | Macros | Functions | Variables
cfhddata.c File Reference
#include <stdint.h>
#include "libavutil/attributes.h"
#include "cfhd.h"
#include "vlc.h"

Go to the source code of this file.

Data Structures

struct  CFHD_RL_ELEM
 

Macros

#define NB_VLC_TABLE_9   (71 + 3)
 
#define NB_VLC_TABLE_18   (263 + 1)
 

Functions

static av_cold int cfhd_init_vlc (CFHD_RL_VLC_ELEM out[], unsigned out_size, const CFHD_RL_ELEM table_vlc[], unsigned table_size, CFHD_RL_VLC_ELEM tmp[], void *logctx)
 
av_cold int ff_cfhd_init_vlcs (CFHDContext *s)
 

Variables

static const CFHD_RL_ELEM table_9_vlc [NB_VLC_TABLE_9]
 
static const CFHD_RL_ELEM table_18_vlc [NB_VLC_TABLE_18]
 

Macro Definition Documentation

◆ NB_VLC_TABLE_9

#define NB_VLC_TABLE_9   (71 + 3)

Definition at line 28 of file cfhddata.c.

◆ NB_VLC_TABLE_18

#define NB_VLC_TABLE_18   (263 + 1)

Definition at line 29 of file cfhddata.c.

Function Documentation

◆ cfhd_init_vlc()

static av_cold int cfhd_init_vlc ( CFHD_RL_VLC_ELEM  out[],
unsigned  out_size,
const CFHD_RL_ELEM  table_vlc[],
unsigned  table_size,
CFHD_RL_VLC_ELEM  tmp[],
void *  logctx 
)
static

Similar to dv.c, generate signed VLC tables

Definition at line 128 of file cfhddata.c.

Referenced by ff_cfhd_init_vlcs().

◆ ff_cfhd_init_vlcs()

av_cold int ff_cfhd_init_vlcs ( CFHDContext s)

Definition at line 181 of file cfhddata.c.

Referenced by cfhd_init().

Variable Documentation

◆ table_9_vlc

const CFHD_RL_ELEM table_9_vlc[NB_VLC_TABLE_9]
static
Initial value:
= {
{ 1, 0, 1 }, { 1, 1, 2 }, { 1, 2, 4 }, { 1, 3, 5 },
{ 1, 6, 7 }, { 1, 15, 11 }, { 1, 26, 14 }, { 1, 27, 14 },
{ 1, 23, 13 }, { 1, 36, 16 }, { 1, 40, 17 }, { 1, 41, 17 },
{ 1, 32, 15 }, { 1, 48, 19 }, { 1, 49, 19 }, { 1, 51, 20 },
{ 1, 52, 20 }, { 1, 50, 19 }, { 1, 42, 17 }, { 1, 37, 16 },
{ 1, 33, 15 }, { 1, 24, 13 }, { 1, 13, 10 }, { 1, 10, 9 },
{ 1, 8, 8 }, { 1, 5, 6 }, { 80, 0, 8 }, { 1, 16, 11 },
{ 1, 19, 12 }, { 1, 20, 12 }, { 1, 14, 10 }, { 120, 0, 9 },
{ 320, 0, 8 }, { 1, 11, 9 }, { 1, 28, 14 }, { 1, 29, 14 },
{ 1, 25, 13 }, { 1, 21, 12 }, { 1, 17, 11 }, { 1, 34, 15 },
{ 1, 45, 18 }, { 1, 46, 18 }, { 1, 47, 18 }, { 1, 57, 23 },
{ 1, 58, 23 }, { 1, 59, 23 }, { 1, 62, 24 }, { 1, 63, 24 },
{ 1, 56, 22 }, { 1, 60, 23 }, { 1, 61, 24 }, { 1, 64, 25 },
{ 0, 64, 26 }, { 1, 64, 26 }, { 1, 53, 20 }, { 1, 54, 20 },
{ 1, 55, 20 }, { 1, 38, 16 }, { 1, 30, 14 }, { 1, 31, 14 },
{ 1, 43, 17 }, { 1, 44, 17 }, { 1, 39, 16 }, { 1, 35, 15 },
{ 1, 22, 12 }, { 1, 18, 11 }, { 32, 0, 6 }, { 12, 0, 5 },
{ 1, 4, 5 }, { 160, 0, 6 }, { 1, 7, 7 }, { 1, 9, 8 },
{ 100, 0, 9 }, { 1, 12, 9 },
}

Definition at line 37 of file cfhddata.c.

Referenced by ff_cfhd_init_vlcs().

◆ table_18_vlc

const CFHD_RL_ELEM table_18_vlc[NB_VLC_TABLE_18]
static

Definition at line 59 of file cfhddata.c.

Referenced by ff_cfhd_init_vlcs().