nut.c File Reference
#include "libavutil/mathematics.h"
#include "libavutil/tree.h"
#include "nut.h"
#include "riff.h"
#include "internal.h"

Go to the source code of this file.

Functions

void ff_nut_reset_ts (NUTContext *nut, AVRational time_base, int64_t val)
 
int64_t ff_lsb2full (StreamContext *stream, int64_t lsb)
 
int ff_nut_sp_pos_cmp (const Syncpoint *a, const Syncpoint *b)
 
int ff_nut_sp_pts_cmp (const Syncpoint *a, const Syncpoint *b)
 
int ff_nut_add_sp (NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts)
 
static int enu_free (void *opaque, void *elem)
 
void ff_nut_free_sp (NUTContext *nut)
 

Variables

const AVCodecTag ff_nut_subtitle_tags []
 
const AVCodecTag ff_nut_data_tags []
 
const AVCodecTag ff_nut_video_tags []
 
const AVCodecTag ff_nut_audio_tags []
 
const AVCodecTag *const ff_nut_codec_tags []
 
const Dispositions ff_nut_dispositions []
 
const AVMetadataConv ff_nut_metadata_conv []
 

Function Documentation

static int enu_free ( void opaque,
void elem 
)
static

Definition at line 204 of file nut.c.

Referenced by ff_nut_free_sp().

int64_t ff_lsb2full ( StreamContext stream,
int64_t  lsb 
)

Definition at line 168 of file nut.c.

Referenced by decode_frame_header(), and nut_write_packet().

int ff_nut_add_sp ( NUTContext nut,
int64_t  pos,
int64_t  back_ptr,
int64_t  ts 
)

Definition at line 182 of file nut.c.

Referenced by decode_syncpoint(), and nut_write_packet().

void ff_nut_free_sp ( NUTContext nut)

Definition at line 210 of file nut.c.

Referenced by nut_read_close(), and nut_write_trailer().

void ff_nut_reset_ts ( NUTContext nut,
AVRational  time_base,
int64_t  val 
)

Definition at line 157 of file nut.c.

Referenced by decode_syncpoint(), and nut_write_packet().

int ff_nut_sp_pos_cmp ( const Syncpoint a,
const Syncpoint b 
)

Definition at line 174 of file nut.c.

Referenced by ff_nut_add_sp(), nut_write_packet(), and read_seek().

int ff_nut_sp_pts_cmp ( const Syncpoint a,
const Syncpoint b 
)

Definition at line 178 of file nut.c.

Referenced by read_seek().

Variable Documentation

const AVCodecTag ff_nut_audio_tags[]
Initial value:
= {
{ AV_CODEC_ID_PCM_ALAW, MKTAG('A', 'L', 'A', 'W') },
{ AV_CODEC_ID_PCM_MULAW, MKTAG('U', 'L', 'A', 'W') },
{ AV_CODEC_ID_PCM_F32BE, MKTAG(32 , 'D', 'F', 'P') },
{ AV_CODEC_ID_PCM_F32LE, MKTAG('P', 'F', 'D', 32 ) },
{ AV_CODEC_ID_PCM_F64BE, MKTAG(64 , 'D', 'F', 'P') },
{ AV_CODEC_ID_PCM_F64LE, MKTAG('P', 'F', 'D', 64 ) },
{ AV_CODEC_ID_PCM_S16BE, MKTAG(16 , 'D', 'S', 'P') },
{ AV_CODEC_ID_PCM_S16LE, MKTAG('P', 'S', 'D', 16 ) },
{ AV_CODEC_ID_PCM_S24BE, MKTAG(24 , 'D', 'S', 'P') },
{ AV_CODEC_ID_PCM_S24LE, MKTAG('P', 'S', 'D', 24 ) },
{ AV_CODEC_ID_PCM_S32BE, MKTAG(32 , 'D', 'S', 'P') },
{ AV_CODEC_ID_PCM_S32LE, MKTAG('P', 'S', 'D', 32 ) },
{ AV_CODEC_ID_PCM_S8, MKTAG('P', 'S', 'D', 8 ) },
{ AV_CODEC_ID_PCM_U16BE, MKTAG(16 , 'D', 'U', 'P') },
{ AV_CODEC_ID_PCM_U16LE, MKTAG('P', 'U', 'D', 16 ) },
{ AV_CODEC_ID_PCM_U24BE, MKTAG(24 , 'D', 'U', 'P') },
{ AV_CODEC_ID_PCM_U24LE, MKTAG('P', 'U', 'D', 24 ) },
{ AV_CODEC_ID_PCM_U32BE, MKTAG(32 , 'D', 'U', 'P') },
{ AV_CODEC_ID_PCM_U32LE, MKTAG('P', 'U', 'D', 32 ) },
{ AV_CODEC_ID_PCM_U8, MKTAG('P', 'U', 'D', 8 ) },
{ AV_CODEC_ID_PCM_S16LE_PLANAR, MKTAG('P', 'S', 'P', 16 ) },
{ AV_CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
}
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: avcodec.h:348

Definition at line 126 of file nut.c.

Referenced by decode_stream_header().

const AVCodecTag* const ff_nut_codec_tags[]
Initial value:
= {
}
const AVCodecTag ff_nut_data_tags[]
Definition: nut.c:36
const AVCodecTag ff_nut_audio_tags[]
Definition: nut.c:126
const AVCodecTag ff_codec_wav_tags[]
Definition: riff.c:297
const AVCodecTag ff_codec_bmp_tags[]
Definition: riff.c:31
const AVCodecTag ff_nut_subtitle_tags[]
Definition: nut.c:28
const AVCodecTag ff_nut_video_tags[]
Definition: nut.c:41

Definition at line 152 of file nut.c.

Referenced by write_streamheader().

const AVCodecTag ff_nut_data_tags[]
Initial value:
= {
{ AV_CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') },
}
raw UTF-8 text
Definition: avcodec.h:416

Definition at line 36 of file nut.c.

Referenced by decode_stream_header().

const Dispositions ff_nut_dispositions[]
Initial value:
= {
{"default" , AV_DISPOSITION_DEFAULT},
{"dub" , AV_DISPOSITION_DUB},
{"original" , AV_DISPOSITION_ORIGINAL},
{"comment" , AV_DISPOSITION_COMMENT},
{"lyrics" , AV_DISPOSITION_LYRICS},
{"karaoke" , AV_DISPOSITION_KARAOKE},
{"" , 0}
}

Definition at line 216 of file nut.c.

Referenced by set_disposition_bits(), and write_streaminfo().

const AVMetadataConv ff_nut_metadata_conv[]
Initial value:
= {
{ "Author", "artist" },
{ "X-CreationTime", "date" },
{ "CreationTime", "date" },
{ "SourceFilename", "filename" },
{ "X-Language", "language" },
{ "X-Disposition", "disposition" },
{ "X-Replaces", "replaces" },
{ "X-Depends", "depends" },
{ "X-Uses", "uses" },
{ "X-UsesFont", "usesfont" },
{ 0 },
}

Definition at line 226 of file nut.c.

Referenced by nut_read_header(), and write_headers().

const AVCodecTag ff_nut_subtitle_tags[]
Initial value:
= {
{ AV_CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') },
{ AV_CODEC_ID_SSA , MKTAG('S', 'S', 'A', 0 ) },
{ AV_CODEC_ID_DVD_SUBTITLE, MKTAG('D', 'V', 'D', 'S') },
{ AV_CODEC_ID_DVB_SUBTITLE, MKTAG('D', 'V', 'B', 'S') },
}
raw UTF-8 text
Definition: avcodec.h:416

Definition at line 28 of file nut.c.

Referenced by decode_stream_header().

const AVCodecTag ff_nut_video_tags[]

Definition at line 41 of file nut.c.

Referenced by decode_stream_header().