FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libnut.c File Reference

NUT demuxing and muxing via libnut. More...

#include "avformat.h"
#include "internal.h"
#include "riff.h"
#include <libnut.h>

Go to the source code of this file.

Data Structures

struct  NUTContext
 

Macros

#define ID_STRING   "nut/multimedia container"
 
#define ID_LENGTH   (strlen(ID_STRING) + 1)
 

Functions

static int nut_probe (AVProbeData *p)
 
static size_t av_read (void *h, size_t len, uint8_t *buf)
 
static off_t av_seek (void *h, int64_t pos, int whence)
 
static int nut_read_header (AVFormatContext *avf)
 
static int nut_read_packet (AVFormatContext *avf, AVPacket *pkt)
 
static int nut_read_seek (AVFormatContext *avf, int stream_index, int64_t target_ts, int flags)
 
static int nut_read_close (AVFormatContext *s)
 

Variables

static const AVCodecTag nut_tags []
 
AVInputFormat ff_libnut_demuxer
 

Detailed Description

NUT demuxing and muxing via libnut.

Author
Oded Shimon ods15.nosp@m.@ods.nosp@m.15.dy.nosp@m.ndns.nosp@m..org

Definition in file libnut.c.

Macro Definition Documentation

#define ID_STRING   "nut/multimedia container"

Definition at line 33 of file libnut.c.

Referenced by nut_probe().

#define ID_LENGTH   (strlen(ID_STRING) + 1)

Definition at line 34 of file libnut.c.

Referenced by nut_probe().

Function Documentation

static int nut_probe ( AVProbeData p)
static

Definition at line 171 of file libnut.c.

static size_t av_read ( void h,
size_t  len,
uint8_t buf 
)
static

Definition at line 177 of file libnut.c.

Referenced by nut_read_header().

static off_t av_seek ( void h,
int64_t  pos,
int  whence 
)
static

Definition at line 182 of file libnut.c.

Referenced by nut_read_header().

static int nut_read_header ( AVFormatContext avf)
static

Definition at line 191 of file libnut.c.

static int nut_read_packet ( AVFormatContext avf,
AVPacket pkt 
)
static

Definition at line 273 of file libnut.c.

static int nut_read_seek ( AVFormatContext avf,
int  stream_index,
int64_t  target_ts,
int  flags 
)
static

Definition at line 296 of file libnut.c.

static int nut_read_close ( AVFormatContext s)
static

Definition at line 306 of file libnut.c.

Variable Documentation

const AVCodecTag nut_tags[]
static
Initial value:
= {
{ AV_CODEC_ID_MPEG4, MKTAG('m', 'p', '4', 'v') },
{ AV_CODEC_ID_MP3, MKTAG('m', 'p', '3', ' ') },
{ AV_CODEC_ID_VORBIS, MKTAG('v', 'r', 'b', 's') },
{ 0, 0 },
}
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: avcodec.h:425
#define MKTAG(a, b, c, d)
Definition: common.h:330

Definition at line 41 of file libnut.c.

AVInputFormat ff_libnut_demuxer
Initial value:
= {
.name = "libnut",
.long_name = NULL_IF_CONFIG_SMALL("NUT format"),
.priv_data_size = sizeof(NUTContext),
.extensions = "nut",
}
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:153
static int nut_read_header(AVFormatContext *avf)
Definition: libnut.c:191
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
static int nut_read_seek(AVFormatContext *avf, int stream_index, int64_t target_ts, int flags)
Definition: libnut.c:296
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:623
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int nut_probe(AVProbeData *p)
Definition: libnut.c:171
static int nut_read_close(AVFormatContext *s)
Definition: libnut.c:306
static int nut_read_packet(AVFormatContext *avf, AVPacket *pkt)
Definition: libnut.c:273

Definition at line 314 of file libnut.c.