libavformat/spdifenc.c File Reference

IEC-61937 encapsulation of various formats, used by S/PDIF. More...

#include "avformat.h"
#include "spdif.h"
#include "libavcodec/ac3.h"
#include "libavcodec/dca.h"
#include "libavcodec/aacadtsdec.h"

Go to the source code of this file.

Data Structures

struct  IEC61937Context

Defines

#define MAT_FRAME_SIZE   61424
#define TRUEHD_FRAME_OFFSET   2560
#define MAT_MIDDLE_CODE_OFFSET   -4

Functions

static int spdif_header_ac3 (AVFormatContext *s, AVPacket *pkt)
static int spdif_header_eac3 (AVFormatContext *s, AVPacket *pkt)
static int spdif_header_dts (AVFormatContext *s, AVPacket *pkt)
static int spdif_header_mpeg (AVFormatContext *s, AVPacket *pkt)
static int spdif_header_aac (AVFormatContext *s, AVPacket *pkt)
static int spdif_header_truehd (AVFormatContext *s, AVPacket *pkt)
static int spdif_write_header (AVFormatContext *s)
static int spdif_write_trailer (AVFormatContext *s)
static int spdif_write_packet (struct AVFormatContext *s, AVPacket *pkt)

Variables

static enum IEC61937DataType mpeg_data_type [2][3]
AVOutputFormat spdif_muxer


Detailed Description

IEC-61937 encapsulation of various formats, used by S/PDIF.

Author:
Bartlomiej Wolowiec

Anssi Hannula

Carl Eugen Hoyos

Definition in file spdifenc.c.


Define Documentation

#define MAT_FRAME_SIZE   61424

Definition at line 240 of file spdifenc.c.

Referenced by spdif_header_truehd(), and spdif_write_header().

#define MAT_MIDDLE_CODE_OFFSET   -4

Definition at line 242 of file spdifenc.c.

Referenced by spdif_header_truehd().

#define TRUEHD_FRAME_OFFSET   2560

Definition at line 241 of file spdifenc.c.

Referenced by spdif_header_truehd().


Function Documentation

static int spdif_header_aac ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 196 of file spdifenc.c.

Referenced by spdif_write_header().

static int spdif_header_ac3 ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 77 of file spdifenc.c.

Referenced by spdif_write_header().

static int spdif_header_dts ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 118 of file spdifenc.c.

Referenced by spdif_write_header().

static int spdif_header_eac3 ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 87 of file spdifenc.c.

Referenced by spdif_write_header().

static int spdif_header_mpeg ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 173 of file spdifenc.c.

Referenced by spdif_write_header().

static int spdif_header_truehd ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 244 of file spdifenc.c.

Referenced by spdif_write_header().

static int spdif_write_header ( AVFormatContext s  )  [static]

Definition at line 290 of file spdifenc.c.

static int spdif_write_packet ( struct AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 333 of file spdifenc.c.

static int spdif_write_trailer ( AVFormatContext s  )  [static]

Definition at line 325 of file spdifenc.c.


Variable Documentation

enum IEC61937DataType mpeg_data_type[2][3] [static]

Initial value:

Definition at line 167 of file spdifenc.c.

Referenced by spdif_header_mpeg().

Initial value:

 {
    "spdif",
    NULL_IF_CONFIG_SMALL("IEC 61937 (used on S/PDIF - IEC958)"),
    NULL,
    "spdif",
    sizeof(IEC61937Context),
    CODEC_ID_AC3,
    CODEC_ID_NONE,
    spdif_write_header,
    spdif_write_packet,
    spdif_write_trailer,
}

Definition at line 385 of file spdifenc.c.


Generated on Wed Jan 19 23:49:51 2011 for FFmpeg by  doxygen 1.5.6