nsvdec.c File Reference

Go to the source code of this file.

Classes

struct  NSVf_header
struct  NSVs_header
struct  nsv_avchunk_header
struct  nsv_pcm_header
struct  NSVStream
struct  NSVContext

Enumerations

enum  NSVStatus {
  NSV_UNSYNC, NSV_FOUND_NSVF, NSV_HAS_READ_NSVF, NSV_FOUND_NSVS,
  NSV_HAS_READ_NSVS, NSV_FOUND_BEEF, NSV_GOT_VIDEO, NSV_GOT_AUDIO
}

Functions

static int nsv_read_chunk (AVFormatContext *s, int fill_header)
static void print_tag (const char *str, unsigned int tag, int size)
static int nsv_resync (AVFormatContext *s)
static int nsv_parse_NSVf_header (AVFormatContext *s, AVFormatParameters *ap)
static int nsv_parse_NSVs_header (AVFormatContext *s, AVFormatParameters *ap)
static int nsv_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int nsv_read_packet (AVFormatContext *s, AVPacket *pkt)
static int nsv_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int nsv_read_close (AVFormatContext *s)
static int nsv_probe (AVProbeData *p)

Variables

static const AVCodecTag nsv_codec_video_tags []
static const AVCodecTag nsv_codec_audio_tags []
AVInputFormat nsv_demuxer


Enumeration Type Documentation

enum NSVStatus

Enumerator:
NSV_UNSYNC 
NSV_FOUND_NSVF 
NSV_HAS_READ_NSVF 
NSV_FOUND_NSVS 
NSV_HAS_READ_NSVS 
NSV_FOUND_BEEF 
NSV_GOT_VIDEO 
NSV_GOT_AUDIO 

Definition at line 148 of file nsvdec.c.


Function Documentation

static int nsv_read_chunk ( AVFormatContext s,
int  fill_header 
) [static]

Definition at line 533 of file nsvdec.c.

Referenced by nsv_read_header(), and nsv_read_packet().

static void print_tag ( const char *  str,
unsigned int  tag,
int  size 
) [static]

Definition at line 217 of file nsvdec.c.

static int nsv_resync ( AVFormatContext s  )  [static]

Definition at line 228 of file nsvdec.c.

Referenced by nsv_read_chunk(), and nsv_read_header().

static int nsv_parse_NSVf_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 275 of file nsvdec.c.

Referenced by nsv_read_header().

static int nsv_parse_NSVs_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 394 of file nsvdec.c.

Referenced by nsv_read_chunk(), and nsv_read_header().

static int nsv_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 502 of file nsvdec.c.

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

Definition at line 662 of file nsvdec.c.

static int nsv_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
) [static]

Definition at line 690 of file nsvdec.c.

static int nsv_read_close ( AVFormatContext s  )  [static]

Definition at line 703 of file nsvdec.c.

static int nsv_probe ( AVProbeData p  )  [static]

Definition at line 727 of file nsvdec.c.


Variable Documentation

const AVCodecTag nsv_codec_video_tags[] [static]

Initial value:

 {
    { CODEC_ID_VP3, MKTAG('V', 'P', '3', ' ') },
    { CODEC_ID_VP3, MKTAG('V', 'P', '3', '0') },
    { CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') },
    { CODEC_ID_VP5, MKTAG('V', 'P', '5', ' ') },
    { CODEC_ID_VP5, MKTAG('V', 'P', '5', '0') },
    { CODEC_ID_VP6, MKTAG('V', 'P', '6', ' ') },
    { CODEC_ID_VP6, MKTAG('V', 'P', '6', '0') },
    { CODEC_ID_VP6, MKTAG('V', 'P', '6', '1') },
    { CODEC_ID_VP6, MKTAG('V', 'P', '6', '2') },

    { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, 
    { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', '3') },
    { 0, 0 },
}

Definition at line 186 of file nsvdec.c.

const AVCodecTag nsv_codec_audio_tags[] [static]

Initial value:

 {
    { CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
    { CODEC_ID_AAC, MKTAG('A', 'A', 'C', ' ') },
    { CODEC_ID_AAC, MKTAG('A', 'A', 'C', 'P') }, 
    { CODEC_ID_PCM_U16LE, MKTAG('P', 'C', 'M', ' ') },
    { 0, 0 },
}

Definition at line 205 of file nsvdec.c.

Initial value:

 {
    "nsv",
    "NullSoft Video format",
    sizeof(NSVContext),
    nsv_probe,
    nsv_read_header,
    nsv_read_packet,
    nsv_read_close,
    nsv_read_seek,
}

Definition at line 752 of file nsvdec.c.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5