libavformat/nutenc.c File Reference

#include "nut.h"
#include "tree.h"

Go to the source code of this file.

Functions

static void build_frame_code (AVFormatContext *s)
static int get_length (uint64_t val)
 Gets the length in bytes which is needed to store val as v.
static void put_v (ByteIOContext *bc, uint64_t val)
static void put_t (NUTContext *nut, StreamContext *nus, ByteIOContext *bc, uint64_t val)
static void put_str (ByteIOContext *bc, const char *string)
 Stores a string as vb.
static void put_s (ByteIOContext *bc, int64_t val)
static void put_packet (NUTContext *nut, ByteIOContext *bc, ByteIOContext *dyn_bc, int calculate_checksum, uint64_t startcode)
static void write_mainheader (NUTContext *nut, ByteIOContext *bc)
static int write_streamheader (NUTContext *nut, ByteIOContext *bc, AVCodecContext *codec, int i)
static int add_info (ByteIOContext *bc, const char *type, const char *value)
static int write_globalinfo (NUTContext *nut, ByteIOContext *bc)
static int write_headers (NUTContext *nut, ByteIOContext *bc)
static int write_header (AVFormatContext *s)
static int get_needed_flags (NUTContext *nut, StreamContext *nus, FrameCode *fc, AVPacket *pkt)
static int write_packet (AVFormatContext *s, AVPacket *pkt)
static int write_trailer (AVFormatContext *s)

Variables

AVOutputFormat nut_muxer


Function Documentation

static int add_info ( ByteIOContext bc,
const char *  type,
const char *  value 
) [static]

Definition at line 320 of file nutenc.c.

Referenced by write_globalinfo().

static void build_frame_code ( AVFormatContext s  )  [static]

Definition at line 25 of file nutenc.c.

Referenced by write_header().

static int get_length ( uint64_t  val  )  [static]

Gets the length in bytes which is needed to store val as v.

Definition at line 138 of file nutenc.c.

Referenced by put_v(), and write_packet().

static int get_needed_flags ( NUTContext nut,
StreamContext nus,
FrameCode fc,
AVPacket pkt 
) [static]

Definition at line 437 of file nutenc.c.

Referenced by write_packet().

static void put_packet ( NUTContext nut,
ByteIOContext bc,
ByteIOContext dyn_bc,
int  calculate_checksum,
uint64_t  startcode 
) [static]

Definition at line 193 of file nutenc.c.

Referenced by write_headers(), and write_packet().

static void put_s ( ByteIOContext bc,
int64_t  val 
) [static]

Definition at line 172 of file nutenc.c.

Referenced by add_info(), and write_mainheader().

static void put_str ( ByteIOContext bc,
const char *  string 
) [static]

Stores a string as vb.

Definition at line 165 of file nutenc.c.

Referenced by add_info(), and rv10_write_header().

static void put_t ( NUTContext nut,
StreamContext nus,
ByteIOContext bc,
uint64_t  val 
) [static]

Definition at line 156 of file nutenc.c.

Referenced by write_packet().

static void put_v ( ByteIOContext bc,
uint64_t  val 
) [static]

static int write_globalinfo ( NUTContext nut,
ByteIOContext bc 
) [static]

Definition at line 327 of file nutenc.c.

Referenced by write_headers().

static int write_header ( AVFormatContext s  )  [static]

Definition at line 386 of file nutenc.c.

static int write_headers ( NUTContext nut,
ByteIOContext bc 
) [static]

Definition at line 355 of file nutenc.c.

Referenced by write_header(), write_packet(), and write_trailer().

static void write_mainheader ( NUTContext nut,
ByteIOContext bc 
) [static]

Definition at line 214 of file nutenc.c.

Referenced by write_headers().

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

Definition at line 451 of file nutenc.c.

Referenced by av_alloc_put_byte(), and init_put_byte().

static int write_streamheader ( NUTContext nut,
ByteIOContext bc,
AVCodecContext codec,
int  i 
) [static]

Definition at line 272 of file nutenc.c.

Referenced by write_headers().

static int write_trailer ( AVFormatContext s  )  [static]

Definition at line 585 of file nutenc.c.


Variable Documentation

Initial value:

 {
    "nut",
    "nut format",
    "video/x-nut",
    "nut",
    sizeof(NUTContext),





    CODEC_ID_MP2, 

    CODEC_ID_MPEG4,
    write_header,
    write_packet,
    write_trailer,
    .flags = AVFMT_GLOBALHEADER,
    .codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0},
}

Definition at line 596 of file nutenc.c.


Generated on Fri Apr 23 15:12:03 2010 for ffmpeg by  doxygen 1.5.6