libavformat/nutdec.c File Reference

#include <strings.h>
#include "libavutil/avstring.h"
#include "libavutil/bswap.h"
#include "libavutil/tree.h"
#include "nut.h"
#include <assert.h>

Go to the source code of this file.

Defines

#define GET_V(dst, check)

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 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 void set_disposition_bits (AVFormatContext *avf, char *value, int stream_id)
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, uint8_t *header_idx, 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)


Define Documentation

#define GET_V ( dst,
check   ) 

Value:

tmp= ff_get_v(bc);\
    if(!(check)){\
        av_log(s, AV_LOG_ERROR, "Error " #dst " is (%"PRId64")\n", tmp);\
        return -1;\
    }\
    dst= tmp;

Definition at line 164 of file nutdec.c.

Referenced by decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), and find_and_decode_index().


Function Documentation

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

Definition at line 723 of file nutdec.c.

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

Definition at line 653 of file nutdec.c.

Referenced by decode_frame().

static int decode_info_header ( NUTContext nut  )  [static]

Definition at line 389 of file nutdec.c.

Referenced by nut_read_header(), and nut_read_packet().

static int decode_main_header ( NUTContext nut  )  [static]

Definition at line 184 of file nutdec.c.

Referenced by nut_read_header().

static int decode_stream_header ( NUTContext nut  )  [static]

Definition at line 294 of file nutdec.c.

Referenced by nut_read_header().

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

Definition at line 466 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 494 of file nutdec.c.

Referenced by nut_read_header().

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

Definition at line 112 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 141 of file nutdec.c.

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

static uint64_t get_fourcc ( ByteIOContext bc  )  [static]

Definition at line 58 of file nutdec.c.

Referenced by decode_stream_header().

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

static int64_t get_s ( ByteIOContext bc  )  [static]

Definition at line 51 of file nutdec.c.

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

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

Definition at line 32 of file nutdec.c.

Referenced by decode_info_header().

static int nut_probe ( AVProbeData p  )  [static]

Definition at line 152 of file nutdec.c.

static int nut_read_close ( AVFormatContext s  )  [static]

Definition at line 897 of file nutdec.c.

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

Definition at line 591 of file nutdec.c.

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

Definition at line 763 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 820 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 845 of file nutdec.c.

static void set_disposition_bits ( AVFormatContext avf,
char *  value,
int  stream_id 
) [static]

Definition at line 376 of file nutdec.c.

Referenced by decode_info_header().

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


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