libavformat/gxfenc.c File Reference

#include "libavutil/fifo.h"
#include "avformat.h"
#include "gxf.h"
#include "riff.h"
#include "audiointerleave.h"

Go to the source code of this file.

Data Structures

struct  GXFStreamContext
struct  GXFContext
struct  GXF_Lines

Defines

#define GXF_AUDIO_PACKET_SIZE   65536
#define SERVER_PATH   "/space/"
#define ES_NAME_PATTERN   "ES."
#define GXF_NODELAY   -5000

Functions

static int gxf_find_lines_index (GXFStreamContext *ctx)
static void gxf_write_padding (ByteIOContext *pb, int64_t to_pad)
static int64_t updatePacketSize (ByteIOContext *pb, int64_t pos)
static int64_t updateSize (ByteIOContext *pb, int64_t pos)
static void gxf_write_packet_header (ByteIOContext *pb, GXFPktType type)
static int gxf_write_mpeg_auxiliary (ByteIOContext *pb, GXFStreamContext *ctx)
static int gxf_write_timecode_auxiliary (ByteIOContext *pb, GXFStreamContext *ctx)
static int gxf_write_track_description (ByteIOContext *pb, GXFStreamContext *stream)
static int gxf_write_material_data_section (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_track_description_section (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_map_packet (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_umf_material_description (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_umf_payload (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_umf_track_description (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_umf_media_mpeg (ByteIOContext *pb, GXFStreamContext *stream)
static int gxf_write_umf_media_timecode (ByteIOContext *pb, GXFStreamContext *track)
static int gxf_write_umf_media_dv (ByteIOContext *pb, GXFStreamContext *track)
static int gxf_write_umf_media_audio (ByteIOContext *pb, GXFStreamContext *track)
static int gxf_write_umf_media_description (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_umf_user_data (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_umf_packet (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_header (AVFormatContext *s)
static int gxf_write_eos_packet (ByteIOContext *pb, GXFContext *ctx)
static int gxf_write_trailer (AVFormatContext *s)
static int gxf_parse_mpeg_frame (GXFStreamContext *sc, const uint8_t *buf, int size)
static int gxf_write_media_preamble (ByteIOContext *pb, GXFContext *ctx, AVPacket *pkt, int size)
static int gxf_write_media_packet (ByteIOContext *pb, GXFContext *ctx, AVPacket *pkt)
static int gxf_write_packet (AVFormatContext *s, AVPacket *pkt)
static int gxf_interleave_packet (AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)

Variables

static const GXF_Lines gxf_lines_tab []
static const AVCodecTag gxf_media_types []
static const int GXF_samples_per_frame [] = { 32768, 0 }
AVOutputFormat gxf_muxer


Define Documentation

#define ES_NAME_PATTERN   "ES."

Definition at line 108 of file gxfenc.c.

Referenced by gxf_write_track_description(), and gxf_write_umf_media_description().

#define GXF_AUDIO_PACKET_SIZE   65536

Definition at line 28 of file gxfenc.c.

Referenced by gxf_write_media_packet().

#define GXF_NODELAY   -5000

Definition at line 592 of file gxfenc.c.

Referenced by gxf_write_header().

#define SERVER_PATH   "/space/"

Definition at line 107 of file gxfenc.c.

Referenced by gxf_write_material_data_section().


Function Documentation

static int gxf_find_lines_index ( GXFStreamContext ctx  )  [static]

Definition at line 110 of file gxfenc.c.

Referenced by gxf_write_header().

static int gxf_interleave_packet ( AVFormatContext s,
AVPacket out,
AVPacket pkt,
int  flush 
) [static]

Definition at line 801 of file gxfenc.c.

static int gxf_parse_mpeg_frame ( GXFStreamContext sc,
const uint8_t *  buf,
int  size 
) [static]

Definition at line 716 of file gxfenc.c.

Referenced by gxf_write_media_preamble().

static int gxf_write_eos_packet ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 689 of file gxfenc.c.

Referenced by gxf_write_trailer().

static int gxf_write_header ( AVFormatContext s  )  [static]

Definition at line 596 of file gxfenc.c.

static int gxf_write_map_packet ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 330 of file gxfenc.c.

Referenced by gxf_write_header(), and gxf_write_trailer().

static int gxf_write_material_data_section ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 272 of file gxfenc.c.

Referenced by gxf_write_map_packet().

static int gxf_write_media_packet ( ByteIOContext pb,
GXFContext ctx,
AVPacket pkt 
) [static]

Definition at line 771 of file gxfenc.c.

Referenced by gxf_write_packet().

static int gxf_write_media_preamble ( ByteIOContext pb,
GXFContext ctx,
AVPacket pkt,
int  size 
) [static]

Definition at line 728 of file gxfenc.c.

Referenced by gxf_write_media_packet().

static int gxf_write_mpeg_auxiliary ( ByteIOContext pb,
GXFStreamContext ctx 
) [static]

Definition at line 169 of file gxfenc.c.

Referenced by gxf_write_track_description().

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

Definition at line 792 of file gxfenc.c.

static void gxf_write_packet_header ( ByteIOContext pb,
GXFPktType  type 
) [static]

static void gxf_write_padding ( ByteIOContext pb,
int64_t  to_pad 
) [static]

Definition at line 123 of file gxfenc.c.

Referenced by gxf_write_media_packet(), and updatePacketSize().

static int gxf_write_timecode_auxiliary ( ByteIOContext pb,
GXFStreamContext ctx 
) [static]

Definition at line 206 of file gxfenc.c.

Referenced by gxf_write_track_description().

static int gxf_write_track_description ( ByteIOContext pb,
GXFStreamContext stream 
) [static]

Definition at line 218 of file gxfenc.c.

Referenced by gxf_write_track_description_section().

static int gxf_write_track_description_section ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 318 of file gxfenc.c.

Referenced by gxf_write_map_packet().

static int gxf_write_trailer ( AVFormatContext s  )  [static]

Definition at line 697 of file gxfenc.c.

static int gxf_write_umf_material_description ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 364 of file gxfenc.c.

Referenced by gxf_write_umf_packet().

static int gxf_write_umf_media_audio ( ByteIOContext pb,
GXFStreamContext track 
) [static]

Definition at line 482 of file gxfenc.c.

Referenced by gxf_write_umf_media_description().

static int gxf_write_umf_media_description ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 504 of file gxfenc.c.

Referenced by gxf_write_umf_packet().

static int gxf_write_umf_media_dv ( ByteIOContext pb,
GXFStreamContext track 
) [static]

Definition at line 472 of file gxfenc.c.

Referenced by gxf_write_umf_media_description().

static int gxf_write_umf_media_mpeg ( ByteIOContext pb,
GXFStreamContext stream 
) [static]

Definition at line 437 of file gxfenc.c.

Referenced by gxf_write_umf_media_description().

static int gxf_write_umf_media_timecode ( ByteIOContext pb,
GXFStreamContext track 
) [static]

Definition at line 458 of file gxfenc.c.

Referenced by gxf_write_umf_media_description().

static int gxf_write_umf_packet ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 572 of file gxfenc.c.

Referenced by gxf_write_header(), and gxf_write_trailer().

static int gxf_write_umf_payload ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 391 of file gxfenc.c.

Referenced by gxf_write_umf_packet().

static int gxf_write_umf_track_description ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 408 of file gxfenc.c.

Referenced by gxf_write_umf_packet().

static int gxf_write_umf_user_data ( ByteIOContext pb,
GXFContext ctx 
) [static]

Definition at line 556 of file gxfenc.c.

Referenced by gxf_write_umf_packet().

static int64_t updatePacketSize ( ByteIOContext pb,
int64_t  pos 
) [static]

static int64_t updateSize ( ByteIOContext pb,
int64_t  pos 
) [static]


Variable Documentation

const GXF_Lines gxf_lines_tab[] [static]

Initial value:

 {
    { 480,  1 }, 
    { 512,  1 }, 
    { 576,  2 }, 
    { 608,  2 }, 
    { 1080, 4 },
    { 720,  6 },
}

Definition at line 79 of file gxfenc.c.

const AVCodecTag gxf_media_types[] [static]

Initial value:

 {
    { CODEC_ID_MJPEG     ,   3 }, 
    { CODEC_ID_MJPEG     ,   4 }, 
    { CODEC_ID_PCM_S24LE ,   9 },
    { CODEC_ID_PCM_S16LE ,  10 },
    { CODEC_ID_MPEG2VIDEO,  11 }, 
    { CODEC_ID_MPEG2VIDEO,  12 }, 
    { CODEC_ID_DVVIDEO   ,  13 }, 
    { CODEC_ID_DVVIDEO   ,  14 }, 
    { CODEC_ID_DVVIDEO   ,  15 }, 
    { CODEC_ID_DVVIDEO   ,  16 }, 
    { CODEC_ID_AC3       ,  17 },
    
    { CODEC_ID_MPEG2VIDEO,  20 }, 
    { CODEC_ID_MPEG1VIDEO,  22 }, 
    { CODEC_ID_MPEG1VIDEO,  23 }, 
    { 0, 0 },
}

Definition at line 88 of file gxfenc.c.

Initial value:

Definition at line 807 of file gxfenc.c.

const int GXF_samples_per_frame[] = { 32768, 0 } [static]

Definition at line 594 of file gxfenc.c.


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8