#include "avformat.h"
#include "libavcodec/ac3.h"
#include "libavcodec/dca.h"
#include "libavcodec/aac_parser.h"
Go to the source code of this file.
Definition in file spdif.c.
#define BURST_HEADER_SIZE 0x8 |
#define SYNCWORD1 0xF872 |
#define SYNCWORD2 0x4E1F |
enum IEC958DataType |
static void bswap_buf16 | ( | uint16_t * | dst, | |
const uint16_t * | src, | |||
int | w | |||
) | [static] |
static int spdif_header_aac | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int spdif_header_ac3 | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int spdif_header_dts | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int spdif_header_mpeg | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int spdif_write_header | ( | AVFormatContext * | s | ) | [static] |
static int spdif_write_packet | ( | struct AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int spdif_write_trailer | ( | AVFormatContext * | s | ) | [static] |
enum IEC958DataType mpeg_data_type[2][3] [static] |
Initial value:
{ { IEC958_MPEG2_LAYER1_LSF, IEC958_MPEG2_LAYER2_LSF, IEC958_MPEG2_LAYER3_LSF }, { IEC958_MPEG1_LAYER1, IEC958_MPEG1_LAYER23, IEC958_MPEG1_LAYER23 }, }
Definition at line 149 of file spdif.c.
Referenced by spdif_header_mpeg().
const uint16_t mpeg_pkt_offset[2][3] [static] |
Initial value:
{ { 3072, 9216, 4608 }, { 1536, 4608, 4608 }, }
Definition at line 155 of file spdif.c.
Referenced by spdif_header_mpeg().
Initial value:
{ "spdif", NULL_IF_CONFIG_SMALL("IEC958 - S/PDIF (IEC-61937)"), NULL, "spdif", sizeof(IEC958Context), CODEC_ID_AC3, CODEC_ID_NONE, spdif_write_header, spdif_write_packet, spdif_write_trailer, }