FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
sndio_enc.c File Reference
#include <stdint.h>
#include <sndio.h>
#include "libavutil/internal.h"
#include "libavdevice/avdevice.h"

Go to the source code of this file.

Functions

static av_cold int audio_write_header (AVFormatContext *s1)
 
static int audio_write_packet (AVFormatContext *s1, AVPacket *pkt)
 
static int audio_write_trailer (AVFormatContext *s1)
 

Variables

static const AVClass sndio_muxer_class
 
AVOutputFormat ff_sndio_muxer
 

Function Documentation

static av_cold int audio_write_header ( AVFormatContext s1)
static

Definition at line 31 of file sndio_enc.c.

static int audio_write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 46 of file sndio_enc.c.

static int audio_write_trailer ( AVFormatContext s1)
static

Definition at line 71 of file sndio_enc.c.

Variable Documentation

const AVClass sndio_muxer_class
static
Initial value:
= {
.class_name = "sndio outdev",
.item_name = av_default_item_name,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:62
av_default_item_name

Definition at line 82 of file sndio_enc.c.

AVOutputFormat ff_sndio_muxer
Initial value:
= {
.name = "sndio",
.long_name = NULL_IF_CONFIG_SMALL("sndio audio playback"),
.priv_data_size = sizeof(SndioData),
.video_codec = AV_CODEC_ID_NONE,
.write_header = audio_write_header,
.write_packet = audio_write_packet,
.write_trailer = audio_write_trailer,
.flags = AVFMT_NOFILE,
.priv_class = &sndio_muxer_class,
}
static int audio_write_trailer(AVFormatContext *s1)
Definition: sndio_enc.c:71
#define AV_NE(be, le)
Definition: common.h:49
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:465
static av_cold int audio_write_header(AVFormatContext *s1)
Definition: sndio_enc.c:31
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: sndio_enc.c:46
static const AVClass sndio_muxer_class
Definition: sndio_enc.c:82

Definition at line 89 of file sndio_enc.c.