FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
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 []
 
static const AVCodecTag nut_audio_extra_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

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

Definition at line 218 of file nut.c.

Referenced by decode_syncpoint(), and nut_write_packet().

int64_t ff_lsb2full ( StreamContext stream,
int64_t  lsb 
)

Definition at line 229 of file nut.c.

Referenced by decode_frame_header(), and nut_write_packet().

int ff_nut_sp_pos_cmp ( const Syncpoint a,
const Syncpoint b 
)

Definition at line 236 of file nut.c.

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

int ff_nut_sp_pts_cmp ( const Syncpoint a,
const Syncpoint b 
)

Definition at line 241 of file nut.c.

Referenced by read_seek().

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

Definition at line 246 of file nut.c.

Referenced by decode_syncpoint(), and nut_write_packet().

static int enu_free ( void opaque,
void elem 
)
static

Definition at line 271 of file nut.c.

Referenced by ff_nut_free_sp().

void ff_nut_free_sp ( NUTContext nut)

Definition at line 277 of file nut.c.

Referenced by nut_read_close(), and nut_write_trailer().

Variable Documentation

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') },
{ AV_CODEC_ID_DVB_TELETEXT, MKTAG('D', 'V', 'B', 'T') },
}

Definition at line 28 of file nut.c.

Referenced by decode_stream_header().

const AVCodecTag ff_nut_data_tags[]
Initial value:
= {
{ AV_CODEC_ID_TEXT, MKTAG('U', 'T', 'F', '8') },
}

Definition at line 37 of file nut.c.

Referenced by decode_stream_header().

const AVCodecTag ff_nut_video_tags[]

Definition at line 42 of file nut.c.

Referenced by decode_stream_header().

const AVCodecTag nut_audio_extra_tags[]
static
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_MP3, MKTAG('M', 'P', '3', ' ') },
}

Definition at line 179 of file nut.c.

const AVCodecTag ff_nut_audio_tags[]
Initial value:
= {
{ 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_S8_PLANAR, MKTAG('P', 'S', 'P', 8 ) },
{ AV_CODEC_ID_PCM_S16BE_PLANAR, MKTAG(16 , 'P', 'S', 'P') },
{ AV_CODEC_ID_PCM_S16LE_PLANAR, MKTAG('P', 'S', 'P', 16 ) },
{ AV_CODEC_ID_PCM_S24LE_PLANAR, MKTAG('P', 'S', 'P', 24 ) },
{ AV_CODEC_ID_PCM_S32LE_PLANAR, MKTAG('P', 'S', 'P', 32 ) },
}

Definition at line 186 of file nut.c.

Referenced by decode_stream_header().

const AVCodecTag* const ff_nut_codec_tags[]
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 283 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 293 of file nut.c.

Referenced by nut_read_header(), and write_headers().