#include "parser.h"#include "ac3_parser.h"#include "aac_ac3_parser.h"#include "get_bits.h"Go to the source code of this file.
Defines | |
| #define | AC3_HEADER_SIZE 7 |
Functions | |
| int | ff_ac3_parse_header (GetBitContext *gbc, AC3HeaderInfo *hdr) |
| Parses AC-3 frame header. | |
| int | ff_ac3_parse_header_full (GetBitContext *gbc, AC3HeaderInfo *hdr) |
| Parses AC-3 frame header and sets channel_map Parses the header up to the lfeon (channel_map in E-AC-3) element, which is the first 52, 54 or 104 bits depending on the audio coding mode. | |
| static int | ac3_sync (uint64_t state, AACAC3ParseContext *hdr_info, int *need_next_header, int *new_frame_start) |
| static av_cold int | ac3_parse_init (AVCodecParserContext *s1) |
Variables | |
| static const uint8_t | eac3_blocks [4] |
| AVCodecParser | ac3_parser |
| #define AC3_HEADER_SIZE 7 |
Definition at line 29 of file ac3_parser.c.
Referenced by ac3_parse_init(), ac3_sync(), and ff_ac3_parse_header().
| static av_cold int ac3_parse_init | ( | AVCodecParserContext * | s1 | ) | [static] |
Definition at line 192 of file ac3_parser.c.
| static int ac3_sync | ( | uint64_t | state, | |
| AACAC3ParseContext * | hdr_info, | |||
| int * | need_next_header, | |||
| int * | new_frame_start | |||
| ) | [static] |
| int ff_ac3_parse_header | ( | GetBitContext * | gbc, | |
| 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.
| gbc[in] | BitContext containing the first 54 bits of the frame. | |
| hdr[out] | Pointer to struct where header info is written. |
Definition at line 37 of file ac3_parser.c.
Referenced by ac3_sync(), ff_ac3_parse_header_full(), and parse_frame_header().
| int ff_ac3_parse_header_full | ( | GetBitContext * | gbc, | |
| AC3HeaderInfo * | hdr | |||
| ) |
Parses AC-3 frame header and sets channel_map Parses the header up to the lfeon (channel_map in E-AC-3) element, which is the first 52, 54 or 104 bits depending on the audio coding mode.
| gbc[in] | BitContext containing the first 54 bits of the frame. | |
| hdr[out] | Pointer to struct where header info is written. |
Definition at line 131 of file ac3_parser.c.
Initial value:
{
{ CODEC_ID_AC3, CODEC_ID_EAC3 },
sizeof(AACAC3ParseContext),
ac3_parse_init,
ff_aac_ac3_parse,
ff_parse_close,
}
Definition at line 201 of file ac3_parser.c.
const uint8_t eac3_blocks[4] [static] |
Initial value:
{
1, 2, 3, 6
}
Definition at line 32 of file ac3_parser.c.
Referenced by ff_ac3_parse_header().
1.5.8