libavcodec/ac3_parser.h File Reference

#include "ac3.h"

Go to the source code of this file.

Enumerations

enum  AC3ParseError { AC3_PARSE_ERROR_SYNC = -1, AC3_PARSE_ERROR_BSID = -2, AC3_PARSE_ERROR_SAMPLE_RATE = -3, AC3_PARSE_ERROR_FRAME_SIZE = -4 }

Functions

int ff_ac3_parse_header (const uint8_t buf[7], AC3HeaderInfo *hdr)
 Parses AC-3 frame header.


Enumeration Type Documentation

Enumerator:
AC3_PARSE_ERROR_SYNC 
AC3_PARSE_ERROR_BSID 
AC3_PARSE_ERROR_SAMPLE_RATE 
AC3_PARSE_ERROR_FRAME_SIZE 

Definition at line 28 of file ac3_parser.h.


Function Documentation

int ff_ac3_parse_header ( const uint8_t  buf[7],
AC3HeaderInfo hdr 
)

Parses AC-3 frame header.

Parses the header up to the lfeon element, which is the first 52 or 54 bits depending on the audio coding mode.

Parameters:
buf[in] Array containing the first 7 bytes of the frame.
hdr[out] Pointer to struct where header info is written.
Returns:
Returns 0 on success, -1 if there is a sync word mismatch, -2 if the bsid (version) element is invalid, -3 if the fscod (sample rate) element is invalid, or -4 if the frmsizecod (bit rate) element is invalid.

Definition at line 37 of file ac3_parser.c.

Referenced by ac3_parse_header(), ac3_probe(), and ac3_sync().


Generated on Thu Apr 2 07:15:40 2009 for ffmpeg by  doxygen 1.5.6