libavformat/nutenc.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavutil/tree.h"
#include "libavcodec/mpegaudiodata.h"
#include "nut.h"

Go to the source code of this file.

Functions

static int find_expected_header (AVCodecContext *c, int size, int key_frame, uint8_t out[64])
static int find_header_idx (AVFormatContext *s, AVCodecContext *c, int size, int frame_type)
static void build_elision_headers (AVFormatContext *s)
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_tt (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, AVStream *st, 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_streaminfo (NUTContext *nut, ByteIOContext *bc, int stream_id)
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 find_best_header_idx (NUTContext *nut, 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 442 of file nutenc.c.

Referenced by write_globalinfo(), and write_streaminfo().

static void build_elision_headers ( AVFormatContext s  )  [static]

Definition at line 107 of file nutenc.c.

Referenced by write_header().

static void build_frame_code ( AVFormatContext s  )  [static]

Definition at line 128 of file nutenc.c.

Referenced by write_header().

static int find_best_header_idx ( NUTContext nut,
AVPacket pkt 
) [static]

Definition at line 621 of file nutenc.c.

Referenced by write_packet().

static int find_expected_header ( AVCodecContext c,
int  size,
int  key_frame,
uint8_t  out[64] 
) [static]

Definition at line 27 of file nutenc.c.

Referenced by find_header_idx().

static int find_header_idx ( AVFormatContext s,
AVCodecContext c,
int  size,
int  frame_type 
) [static]

Definition at line 88 of file nutenc.c.

Referenced by build_frame_code().

static int get_length ( uint64_t  val  )  [static]

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

Definition at line 246 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 603 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 301 of file nutenc.c.

Referenced by write_headers(), and write_packet().

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

Definition at line 280 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 273 of file nutenc.c.

Referenced by add_info(), and rv10_write_header().

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

Definition at line 264 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 449 of file nutenc.c.

Referenced by write_headers().

static int write_header ( AVFormatContext s  )  [static]

Definition at line 551 of file nutenc.c.

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

Definition at line 506 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 322 of file nutenc.c.

Referenced by write_headers().

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

Definition at line 640 of file nutenc.c.

static int write_streamheader ( NUTContext nut,
ByteIOContext bc,
AVStream st,
int  i 
) [static]

Definition at line 393 of file nutenc.c.

Referenced by write_headers().

static int write_streaminfo ( NUTContext nut,
ByteIOContext bc,
int  stream_id 
) [static]

Definition at line 475 of file nutenc.c.

static int write_trailer ( AVFormatContext s  )  [static]

Definition at line 794 of file nutenc.c.


Variable Documentation

Initial value:

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





    CODEC_ID_MP2,

    CODEC_ID_MPEG4,
    write_header,
    write_packet,
    write_trailer,
    .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
    .codec_tag= (const AVCodecTag* const []){ff_codec_bmp_tags, ff_codec_wav_tags, ff_nut_subtitle_tags, 0},
    .metadata_conv = ff_nut_metadata_conv,
}

Definition at line 808 of file nutenc.c.


Generated on Fri Oct 26 02:36:55 2012 for FFmpeg by  doxygen 1.5.8