Mercurial > libavcodec.hg
comparison ac3_parser.h @ 8545:a5402e89a80c libavcodec
Factorise enum of AC3 error types to be usable by AAC in the ADTS patch that
will follow
Patch by Alex Converse ( alex converse gmail com )
| author | superdump |
|---|---|
| date | Wed, 07 Jan 2009 18:10:10 +0000 |
| parents | c4a4495715dd |
| children | 04423b2f6e0b |
comparison
equal
deleted
inserted
replaced
| 8544:0ae8629baf6f | 8545:a5402e89a80c |
|---|---|
| 24 #define AVCODEC_AC3_PARSER_H | 24 #define AVCODEC_AC3_PARSER_H |
| 25 | 25 |
| 26 #include "ac3.h" | 26 #include "ac3.h" |
| 27 #include "bitstream.h" | 27 #include "bitstream.h" |
| 28 | 28 |
| 29 typedef enum { | |
| 30 AC3_PARSE_ERROR_SYNC = -1, | |
| 31 AC3_PARSE_ERROR_BSID = -2, | |
| 32 AC3_PARSE_ERROR_SAMPLE_RATE = -3, | |
| 33 AC3_PARSE_ERROR_FRAME_SIZE = -4, | |
| 34 AC3_PARSE_ERROR_FRAME_TYPE = -5, | |
| 35 AC3_PARSE_ERROR_CRC = -6, | |
| 36 } AC3ParseError; | |
| 37 | |
| 38 /** | 29 /** |
| 39 * Parses AC-3 frame header. | 30 * Parses AC-3 frame header. |
| 40 * Parses the header up to the lfeon element, which is the first 52 or 54 bits | 31 * Parses the header up to the lfeon element, which is the first 52 or 54 bits |
| 41 * depending on the audio coding mode. | 32 * depending on the audio coding mode. |
| 42 * @param gbc[in] BitContext containing the first 54 bits of the frame. | 33 * @param gbc[in] BitContext containing the first 54 bits of the frame. |
