foobar2000 SDK  2015-08-03
Data Structures | Namespaces | Typedefs | Enumerations | Functions
mp3_utils.h File Reference

Go to the source code of this file.

Data Structures

struct  mp3_utils::TMPEGFrameInfo
 
class  mp3header
 

Namespaces

 mp3_utils
 

Typedefs

typedef t_uint8 mp3_utils::byte
 

Enumerations

enum  { mp3_utils::MPG_MD_STEREO =0, mp3_utils::MPG_MD_JOINT_STEREO =1, mp3_utils::MPG_MD_DUAL_CHANNEL =2, mp3_utils::MPG_MD_MONO =3 }
 
enum  { mp3_utils::MPEG_1, mp3_utils::MPEG_2, mp3_utils::MPEG_25 }
 

Functions

t_uint16 mp3_utils::CalculateFrameCRC (const t_uint8 *frameData, t_size frameSize, TMPEGFrameInfo const &frameInfo)
 
t_uint16 mp3_utils::ExtractFrameCRC (const t_uint8 *frameData, t_size frameSize, TMPEGFrameInfo const &frameInfo)
 
bool mp3_utils::IsSameStream (TMPEGFrameInfo const &p_frame1, TMPEGFrameInfo const &p_frame2)
 
static mp3header mp3header_from_buffer (const void *p_buffer)
 
bool mp3_utils::ParseMPEGFrameHeader (TMPEGFrameInfo &p_info, const t_uint8 p_header[4])
 
unsigned mp3_utils::QueryMPEGFrameSize (const t_uint8 p_header[4])
 
void mp3_utils::RecalculateFrameCRC (t_uint8 *frameData, t_size frameSize, TMPEGFrameInfo const &frameInfo)
 
bool mp3_utils::ValidateFrameCRC (const t_uint8 *frameData, t_size frameSize)
 
bool mp3_utils::ValidateFrameCRC (const t_uint8 *frameData, t_size frameSize, TMPEGFrameInfo const &frameInfo)
 

Data Structure Documentation

struct mp3_utils::TMPEGFrameInfo

Definition at line 15 of file mp3_utils.h.

Data Fields
unsigned m_bytes
unsigned m_channel_mode
unsigned m_channels
bool m_crc
unsigned m_duration
unsigned m_layer
unsigned m_mpegversion
unsigned m_sample_rate

Function Documentation

static mp3header mp3header_from_buffer ( const void *  p_buffer)
inlinestatic

Definition at line 63 of file mp3_utils.h.

64 {
65  mp3header temp;
66  temp.copy_raw(p_buffer);
67  return temp;
68 }
void copy_raw(const void *src)
Definition: mp3_utils.h:49