MythTV  master
Classes | Typedefs | Functions | Variables
atsc_huffman.cpp File Reference
#include "atsc_huffman.h"
Include dependency graph for atsc_huffman.cpp:

Go to the source code of this file.

Classes

struct  huffman_table
 
struct  huff2_parts
 

Typedefs

using atsc_table_vec = std::vector< uint8_t >
 
using huff2_table_vec = std::vector< huffman_table >
 
using huff2_lookup_vec = std::vector< uint8_t >
 

Functions

static int huffman1_get_root (uint input, const atsc_table_vec &table)
 
static bool huffman1_get_bit (const unsigned char *src, uint bit)
 
QString atsc_huffman1_to_string (const unsigned char *compressed, uint size, uint table_index)
 
static int huffman2_get_bit (unsigned char &bitpos, const unsigned char **bufptr)
 
static void huffman2_set_pos (unsigned char &bitpos, const unsigned char **bufptr, const unsigned char *buffer, uint pos)
 
QString atsc_huffman2_to_string (const unsigned char *compressed, uint length, uint table)
 

Variables

const atsc_table_vec ATSC_C5
 
const atsc_table_vec ATSC_C7
 
const std::array< const atsc_table_vec, 2 > atsc_tables
 
const huff2_table_vec Table128
 
const huff2_table_vec Table255
 
const huff2_lookup_vec Huff2Lookup128
 
const huff2_lookup_vec Huff2Lookup256
 
const std::array< const huff2_parts, 2 > huff2_tables
 

Typedef Documentation

◆ atsc_table_vec

using atsc_table_vec = std::vector<uint8_t>

Definition at line 15 of file atsc_huffman.cpp.

◆ huff2_table_vec

using huff2_table_vec = std::vector<huffman_table>

Definition at line 16 of file atsc_huffman.cpp.

◆ huff2_lookup_vec

using huff2_lookup_vec = std::vector<uint8_t>

Definition at line 17 of file atsc_huffman.cpp.

Function Documentation

◆ huffman1_get_root()

static int huffman1_get_root ( uint  input,
const atsc_table_vec table 
)
inlinestatic

Definition at line 2198 of file atsc_huffman.cpp.

Referenced by atsc_huffman1_to_string().

◆ huffman1_get_bit()

static bool huffman1_get_bit ( const unsigned char *  src,
uint  bit 
)
inlinestatic

Definition at line 2206 of file atsc_huffman.cpp.

Referenced by atsc_huffman1_to_string().

◆ atsc_huffman1_to_string()

QString atsc_huffman1_to_string ( const unsigned char *  compressed,
uint  size,
uint  table_index 
)

Definition at line 2211 of file atsc_huffman.cpp.

Referenced by MultipleStringStructure::GetSegment().

◆ huffman2_get_bit()

static int huffman2_get_bit ( unsigned char &  bitpos,
const unsigned char **  bufptr 
)
inlinestatic

Definition at line 2267 of file atsc_huffman.cpp.

Referenced by atsc_huffman2_to_string().

◆ huffman2_set_pos()

static void huffman2_set_pos ( unsigned char &  bitpos,
const unsigned char **  bufptr,
const unsigned char *  buffer,
uint  pos 
)
inlinestatic

Definition at line 2280 of file atsc_huffman.cpp.

Referenced by atsc_huffman2_to_string().

◆ atsc_huffman2_to_string()

QString atsc_huffman2_to_string ( const unsigned char *  compressed,
uint  length,
uint  table 
)

Variable Documentation

◆ ATSC_C5

const atsc_table_vec ATSC_C5

Definition at line 22 of file atsc_huffman.cpp.

◆ ATSC_C7

const atsc_table_vec ATSC_C7

Definition at line 270 of file atsc_huffman.cpp.

◆ atsc_tables

const std::array<const atsc_table_vec,2> atsc_tables
Initial value:

Definition at line 497 of file atsc_huffman.cpp.

Referenced by atsc_huffman1_to_string().

◆ Table128

const huff2_table_vec Table128

Definition at line 503 of file atsc_huffman.cpp.

◆ Table255

const huff2_table_vec Table255

Definition at line 636 of file atsc_huffman.cpp.

◆ Huff2Lookup128

const huff2_lookup_vec Huff2Lookup128

Definition at line 896 of file atsc_huffman.cpp.

◆ Huff2Lookup256

const huff2_lookup_vec Huff2Lookup256

Definition at line 1156 of file atsc_huffman.cpp.

◆ huff2_tables

const std::array<const huff2_parts,2> huff2_tables
Initial value:
{{
}}

Definition at line 2191 of file atsc_huffman.cpp.

Referenced by atsc_huffman2_to_string().

Huff2Lookup128
const huff2_lookup_vec Huff2Lookup128
Definition: atsc_huffman.cpp:896
ATSC_C7
const atsc_table_vec ATSC_C7
Definition: atsc_huffman.cpp:270
Huff2Lookup256
const huff2_lookup_vec Huff2Lookup256
Definition: atsc_huffman.cpp:1156
Table255
const huff2_table_vec Table255
Definition: atsc_huffman.cpp:636
ATSC_C5
const atsc_table_vec ATSC_C5
Definition: atsc_huffman.cpp:22
Table128
const huff2_table_vec Table128
Definition: atsc_huffman.cpp:503