FFmpeg
Public Attributes | List of all members
hdcd_state Struct Reference

Public Attributes

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
 
int running_gain
 11-bit (3.8) fixed point, extended from target_gain
 
int code_counterA
 8-bit format packet
 
int code_counterA_almost
 looks like an A code, but a bit expected to be 0 is 1
 
int code_counterB
 16-bit format packet, 8-bit code, 8-bit XOR of code
 
int code_counterB_checkfails
 looks like a B code, but doesn't pass the XOR check
 
int code_counterC
 packet prefix was found, expect a code
 
int code_counterC_unmatched
 told to look for a code, but didn't find one
 
int count_peak_extend
 valid packets where peak_extend was enabled
 
int count_transient_filter
 valid packets where filter was detected
 
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
 
int _ana_snb
 used in the analyze mode tone generator
 

Member Data Documentation

§ 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

§ count_sustain_expired

int hdcd_state::count_sustain_expired

occurrences of code detect timer expiring without detecting a code.

-1 for timer never set.

§ 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.


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