FFmpeg
Data Fields
hdcd_state Struct Reference

Data Fields

uint64_t window
 
unsigned char readahead
 
uint8_t arg
 arg is set when a packet prefix is found. More...
 
uint8_t control
 
unsigned int sustain
 
unsigned int sustain_reset
 code detect timer More...
 
int running_gain
 11-bit (3.8) fixed point, extended from target_gain More...
 
int code_counterA
 8-bit format packet More...
 
int code_counterA_almost
 looks like an A code, but a bit expected to be 0 is 1 More...
 
int code_counterB
 16-bit format packet, 8-bit code, 8-bit XOR of code More...
 
int code_counterB_checkfails
 looks like a B code, but doesn't pass the XOR check More...
 
int code_counterC
 packet prefix was found, expect a code More...
 
int code_counterC_unmatched
 told to look for a code, but didn't find one More...
 
int count_peak_extend
 valid packets where peak_extend was enabled More...
 
int count_transient_filter
 valid packets where filter was detected More...
 
int gain_counts [16]
 target_gain is a 4-bit (3.1) fixed-point value, always negative, but stored positive. More...
 
int max_gain
 
int count_sustain_expired
 occurrences of code detect timer expiring without detecting a code. More...
 
int rate
 sampling rate More...
 
int _ana_snb
 used in the analyze mode tone generator More...
 

Detailed Description

Definition at line 842 of file af_hdcd.c.

Field Documentation

◆ window

uint64_t hdcd_state::window

Definition at line 843 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ readahead

unsigned char hdcd_state::readahead

Definition at line 844 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ arg

uint8_t hdcd_state::arg

arg is set when a packet prefix is found.

control is the active control code, where bit 0-3: target_gain, 4-bit (3.1) fixed-point value bit 4 : peak_extend bit 5 : transient_filter bit 6,7: always zero

Definition at line 852 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ control

uint8_t hdcd_state::control

Definition at line 852 of file af_hdcd.c.

Referenced by hdcd_integrate(), and hdcd_scan().

◆ sustain

unsigned int hdcd_state::sustain

Definition at line 853 of file af_hdcd.c.

Referenced by hdcd_scan().

◆ sustain_reset

unsigned int hdcd_state::sustain_reset

code detect timer

Definition at line 853 of file af_hdcd.c.

Referenced by hdcd_scan().

◆ running_gain

int hdcd_state::running_gain

11-bit (3.8) fixed point, extended from target_gain

Definition at line 855 of file af_hdcd.c.

◆ code_counterA

int hdcd_state::code_counterA

8-bit format packet

Definition at line 858 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ code_counterA_almost

int hdcd_state::code_counterA_almost

looks like an A code, but a bit expected to be 0 is 1

Definition at line 859 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ code_counterB

int hdcd_state::code_counterB

16-bit format packet, 8-bit code, 8-bit XOR of code

Definition at line 860 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ code_counterB_checkfails

int hdcd_state::code_counterB_checkfails

looks like a B code, but doesn't pass the XOR check

Definition at line 861 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ code_counterC

int hdcd_state::code_counterC

packet prefix was found, expect a code

Definition at line 862 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ code_counterC_unmatched

int hdcd_state::code_counterC_unmatched

told to look for a code, but didn't find one

Definition at line 863 of file af_hdcd.c.

◆ count_peak_extend

int hdcd_state::count_peak_extend

valid packets where peak_extend was enabled

Definition at line 864 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ count_transient_filter

int hdcd_state::count_transient_filter

valid packets where filter was detected

Definition at line 865 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ gain_counts

int hdcd_state::gain_counts[16]

target_gain is a 4-bit (3.1) fixed-point value, always negative, but stored positive.

The 16 possible values range from -7.5 to 0.0 dB in steps of 0.5, but no value below -6.0 dB should appear.

Definition at line 870 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ max_gain

int hdcd_state::max_gain

Definition at line 871 of file af_hdcd.c.

Referenced by hdcd_integrate().

◆ count_sustain_expired

int hdcd_state::count_sustain_expired

occurrences of code detect timer expiring without detecting a code.

-1 for timer never set.

Definition at line 874 of file af_hdcd.c.

Referenced by hdcd_scan().

◆ rate

int hdcd_state::rate

sampling rate

Definition at line 876 of file af_hdcd.c.

◆ _ana_snb

int hdcd_state::_ana_snb

used in the analyze mode tone generator

Definition at line 877 of file af_hdcd.c.


The documentation for this struct was generated from the following file: