IEC-61937 encapsulation of various formats, used by S/PDIF. More...
#include "avformat.h"
#include "libavcodec/ac3.h"
#include "libavcodec/dca.h"
#include "libavcodec/aac_parser.h"
Go to the source code of this file.
IEC-61937 encapsulation of various formats, used by S/PDIF.
Definition in file spdif.c.
#define BURST_HEADER_SIZE 0x8 |
Definition at line 50 of file spdif.c.
Referenced by spdif_write_packet().
#define SYNCWORD1 0xF872 |
Definition at line 48 of file spdif.c.
Referenced by spdif_write_packet().
#define SYNCWORD2 0x4E1F |
Definition at line 49 of file spdif.c.
Referenced by spdif_write_packet().
typedef struct IEC958Context IEC958Context |
enum IEC958DataType |
static void bswap_buf16 | ( | uint16_t * | dst, | |
const uint16_t * | src, | |||
int | w | |||
) | [static] |
Definition at line 81 of file spdif.c.
Referenced by spdif_write_packet().
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] |
{ { 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] |
{ { 3072, 9216, 4608 }, { 1536, 4608, 4608 }, }
Definition at line 155 of file spdif.c.
Referenced by spdif_header_mpeg().
{ "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, }