FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
nut.h File Reference
#include "avformat.h"
#include "internal.h"
#include "metadata.h"

Go to the source code of this file.

Data Structures

struct  Syncpoint
 
struct  FrameCode
 
struct  StreamContext
 
struct  ChapterContext
 
struct  NUTContext
 
struct  Dispositions
 

Macros

#define MAIN_STARTCODE   (0x7A561F5F04ADULL + (((uint64_t)('N'<<8) + 'M')<<48))
 
#define STREAM_STARTCODE   (0x11405BF2F9DBULL + (((uint64_t)('N'<<8) + 'S')<<48))
 
#define SYNCPOINT_STARTCODE   (0xE4ADEECA4569ULL + (((uint64_t)('N'<<8) + 'K')<<48))
 
#define INDEX_STARTCODE   (0xDD672F23E64EULL + (((uint64_t)('N'<<8) + 'X')<<48))
 
#define INFO_STARTCODE   (0xAB68B596BA78ULL + (((uint64_t)('N'<<8) + 'I')<<48))
 
#define ID_STRING   "nut/multimedia container\0"
 
#define MAX_DISTANCE   (1024*32-1)
 
#define NUT_MAX_VERSION   4
 
#define NUT_STABLE_VERSION   3
 
#define NUT_MIN_VERSION   2
 
#define NUT_BROADCAST   1
 
#define NUT_PIPE   2
 

Enumerations

enum  Flag {
  FLAG_KEY = 1, FLAG_EOR = 2, FLAG_CODED_PTS = 8, FLAG_STREAM_ID = 16,
  FLAG_SIZE_MSB = 32, FLAG_CHECKSUM = 64, FLAG_RESERVED = 128, FLAG_SM_DATA = 256,
  FLAG_HEADER_IDX =1024, FLAG_MATCH_TIME =2048, FLAG_CODED =4096, FLAG_INVALID =8192
}
 

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 void *a, const void *b)
 
int ff_nut_sp_pts_cmp (const void *a, const void *b)
 
int ff_nut_add_sp (NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts)
 
void ff_nut_free_sp (NUTContext *nut)
 

Variables

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

Macro Definition Documentation

◆ MAIN_STARTCODE

#define MAIN_STARTCODE   (0x7A561F5F04ADULL + (((uint64_t)('N'<<8) + 'M')<<48))

Definition at line 29 of file nut.h.

◆ STREAM_STARTCODE

#define STREAM_STARTCODE   (0x11405BF2F9DBULL + (((uint64_t)('N'<<8) + 'S')<<48))

Definition at line 30 of file nut.h.

◆ SYNCPOINT_STARTCODE

#define SYNCPOINT_STARTCODE   (0xE4ADEECA4569ULL + (((uint64_t)('N'<<8) + 'K')<<48))

Definition at line 31 of file nut.h.

◆ INDEX_STARTCODE

#define INDEX_STARTCODE   (0xDD672F23E64EULL + (((uint64_t)('N'<<8) + 'X')<<48))

Definition at line 32 of file nut.h.

◆ INFO_STARTCODE

#define INFO_STARTCODE   (0xAB68B596BA78ULL + (((uint64_t)('N'<<8) + 'I')<<48))

Definition at line 33 of file nut.h.

◆ ID_STRING

#define ID_STRING   "nut/multimedia container\0"

Definition at line 35 of file nut.h.

◆ MAX_DISTANCE

#define MAX_DISTANCE   (1024*32-1)

Definition at line 37 of file nut.h.

◆ NUT_MAX_VERSION

#define NUT_MAX_VERSION   4

Definition at line 39 of file nut.h.

◆ NUT_STABLE_VERSION

#define NUT_STABLE_VERSION   3

Definition at line 40 of file nut.h.

◆ NUT_MIN_VERSION

#define NUT_MIN_VERSION   2

Definition at line 41 of file nut.h.

◆ NUT_BROADCAST

#define NUT_BROADCAST   1

Definition at line 113 of file nut.h.

◆ NUT_PIPE

#define NUT_PIPE   2

Definition at line 114 of file nut.h.

Enumeration Type Documentation

◆ Flag

enum Flag
Enumerator
FLAG_KEY 
FLAG_EOR 
FLAG_CODED_PTS 
FLAG_STREAM_ID 
FLAG_SIZE_MSB 
FLAG_CHECKSUM 
FLAG_RESERVED 
FLAG_SM_DATA 
FLAG_HEADER_IDX 
FLAG_MATCH_TIME 
FLAG_CODED 
FLAG_INVALID 

Definition at line 43 of file nut.h.

Function Documentation

◆ ff_nut_reset_ts()

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

Definition at line 255 of file nut.c.

Referenced by decode_syncpoint(), and nut_write_packet().

◆ ff_lsb2full()

int64_t ff_lsb2full ( StreamContext stream,
int64_t  lsb 
)

Definition at line 266 of file nut.c.

Referenced by decode_frame_header(), and nut_write_packet().

◆ ff_nut_sp_pos_cmp()

int ff_nut_sp_pos_cmp ( const void *  a,
const void *  b 
)

Definition at line 273 of file nut.c.

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

◆ ff_nut_sp_pts_cmp()

int ff_nut_sp_pts_cmp ( const void *  a,
const void *  b 
)

Definition at line 279 of file nut.c.

Referenced by read_seek().

◆ ff_nut_add_sp()

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

Definition at line 285 of file nut.c.

Referenced by decode_syncpoint(), and nut_write_packet().

◆ ff_nut_free_sp()

void ff_nut_free_sp ( NUTContext nut)

Definition at line 316 of file nut.c.

Referenced by nut_read_close(), and nut_write_deinit().

Variable Documentation

◆ ff_nut_subtitle_tags

const AVCodecTag ff_nut_subtitle_tags[]

Definition at line 28 of file nut.c.

Referenced by decode_stream_header().

◆ ff_nut_video_tags

const AVCodecTag ff_nut_video_tags[]

Definition at line 43 of file nut.c.

Referenced by decode_stream_header().

◆ ff_nut_audio_tags

const AVCodecTag ff_nut_audio_tags[]

Definition at line 221 of file nut.c.

Referenced by decode_stream_header().

◆ ff_nut_audio_extra_tags

const AVCodecTag ff_nut_audio_extra_tags[]

Definition at line 211 of file nut.c.

Referenced by decode_stream_header().

◆ ff_nut_data_tags

const AVCodecTag ff_nut_data_tags[]

Definition at line 38 of file nut.c.

Referenced by decode_stream_header().

◆ ff_nut_codec_tags

const AVCodecTag* const ff_nut_codec_tags[]

Definition at line 250 of file nut.c.

◆ ff_nut_dispositions

const Dispositions ff_nut_dispositions[]

Definition at line 324 of file nut.c.

Referenced by set_disposition_bits(), and write_streaminfo().

◆ ff_nut_metadata_conv

const AVMetadataConv ff_nut_metadata_conv[]

Definition at line 334 of file nut.c.

Referenced by nut_read_header(), and write_headers().