nutdec.c File Reference

Go to the source code of this file.

Functions

static int get_str (ByteIOContext *bc, char *string, unsigned int maxlen)
static int64_t get_s (ByteIOContext *bc)
static uint64_t get_fourcc (ByteIOContext *bc)
static uint64_t get_v_trace (ByteIOContext *bc, char *file, char *func, int line)
static int64_t get_s_trace (ByteIOContext *bc, char *file, char *func, int line)
static uint64_t get_vb_trace (ByteIOContext *bc, char *file, char *func, int line)
static int get_packetheader (NUTContext *nut, ByteIOContext *bc, int calculate_checksum, uint64_t startcode)
static uint64_t find_any_startcode (ByteIOContext *bc, int64_t pos)
static int64_t find_startcode (ByteIOContext *bc, uint64_t code, int64_t pos)
 Find the given startcode.
static int nut_probe (AVProbeData *p)
static int skip_reserved (ByteIOContext *bc, int64_t pos)
static int decode_main_header (NUTContext *nut)
static int decode_stream_header (NUTContext *nut)
static int decode_info_header (NUTContext *nut)
static int decode_syncpoint (NUTContext *nut, int64_t *ts, int64_t *back_ptr)
static int find_and_decode_index (NUTContext *nut)
static int nut_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int decode_frame_header (NUTContext *nut, int64_t *pts, int *stream_id, int frame_code)
static int decode_frame (NUTContext *nut, AVPacket *pkt, int frame_code)
static int nut_read_packet (AVFormatContext *s, AVPacket *pkt)
static int64_t nut_read_timestamp (AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit)
static int read_seek (AVFormatContext *s, int stream_index, int64_t pts, int flags)
static int nut_read_close (AVFormatContext *s)

Variables

AVInputFormat nut_demuxer


Function Documentation

static int get_str ( ByteIOContext bc,
char *  string,
unsigned int  maxlen 
) [static]

Definition at line 30 of file nutdec.c.

Referenced by decode_info_header().

static int64_t get_s ( ByteIOContext bc  )  [static]

Definition at line 49 of file nutdec.c.

Referenced by decode_info_header(), decode_main_header(), and get_s_trace().

static uint64_t get_fourcc ( ByteIOContext bc  )  [static]

Definition at line 56 of file nutdec.c.

Referenced by decode_stream_header().

static uint64_t get_v_trace ( ByteIOContext bc,
char *  file,
char *  func,
int  line 
) [inline, static]

Definition at line 65 of file nutdec.c.

static int64_t get_s_trace ( ByteIOContext bc,
char *  file,
char *  func,
int  line 
) [inline, static]

Definition at line 72 of file nutdec.c.

static uint64_t get_vb_trace ( ByteIOContext bc,
char *  file,
char *  func,
int  line 
) [inline, static]

Definition at line 79 of file nutdec.c.

static int get_packetheader ( NUTContext nut,
ByteIOContext bc,
int  calculate_checksum,
uint64_t  startcode 
) [static]

static uint64_t find_any_startcode ( ByteIOContext bc,
int64_t  pos 
) [static]

Definition at line 110 of file nutdec.c.

Referenced by find_startcode(), nut_read_header(), and nut_read_packet().

static int64_t find_startcode ( ByteIOContext bc,
uint64_t  code,
int64_t  pos 
) [static]

Find the given startcode.

Parameters:
code the startcode
pos the start position of the search, or -1 if the current position
Returns:
the position of the startcode or -1 if not found

Definition at line 139 of file nutdec.c.

Referenced by nut_read_header(), nut_read_timestamp(), and read_seek().

static int nut_probe ( AVProbeData p  )  [static]

Definition at line 150 of file nutdec.c.

static int skip_reserved ( ByteIOContext bc,
int64_t  pos 
) [static]

static int decode_main_header ( NUTContext nut  )  [static]

Definition at line 182 of file nutdec.c.

Referenced by nut_read_header().

static int decode_stream_header ( NUTContext nut  )  [static]

Definition at line 269 of file nutdec.c.

Referenced by nut_read_header().

static int decode_info_header ( NUTContext nut  )  [static]

Definition at line 355 of file nutdec.c.

Referenced by nut_read_header(), and nut_read_packet().

static int decode_syncpoint ( NUTContext nut,
int64_t ts,
int64_t back_ptr 
) [static]

Definition at line 413 of file nutdec.c.

Referenced by nut_read_packet(), and nut_read_timestamp().

static int find_and_decode_index ( NUTContext nut  )  [static]

Definition at line 441 of file nutdec.c.

Referenced by nut_read_header().

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

Definition at line 531 of file nutdec.c.

static int decode_frame_header ( NUTContext nut,
int64_t pts,
int *  stream_id,
int  frame_code 
) [static]

Definition at line 593 of file nutdec.c.

Referenced by decode_frame().

static int decode_frame ( NUTContext nut,
AVPacket pkt,
int  frame_code 
) [static]

Definition at line 649 of file nutdec.c.

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

Definition at line 684 of file nutdec.c.

static int64_t nut_read_timestamp ( AVFormatContext s,
int  stream_index,
int64_t pos_arg,
int64_t  pos_limit 
) [static]

Definition at line 741 of file nutdec.c.

Referenced by read_seek().

static int read_seek ( AVFormatContext s,
int  stream_index,
int64_t  pts,
int  flags 
) [static]

Definition at line 766 of file nutdec.c.

static int nut_read_close ( AVFormatContext s  )  [static]

Definition at line 818 of file nutdec.c.


Variable Documentation

Initial value:

 {
    "nut",
    "nut format",
    sizeof(NUTContext),
    nut_probe,
    nut_read_header,
    nut_read_packet,
    nut_read_close,
    read_seek,
    .extensions = "nut",
}

Definition at line 829 of file nutdec.c.


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