FFmpeg
Functions | Variables
sndio_enc.c File Reference
#include <stdint.h>
#include <sndio.h>
#include "libavutil/internal.h"
#include "libavformat/mux.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
 
const FFOutputFormat ff_sndio_muxer
 

Function Documentation

◆ audio_write_header()

static av_cold int audio_write_header ( AVFormatContext s1)
static

Definition at line 32 of file sndio_enc.c.

◆ audio_write_packet()

static int audio_write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 47 of file sndio_enc.c.

◆ audio_write_trailer()

static int audio_write_trailer ( AVFormatContext s1)
static

Definition at line 72 of file sndio_enc.c.

Variable Documentation

◆ sndio_muxer_class

const AVClass sndio_muxer_class
static
Initial value:
= {
.class_name = "sndio outdev",
.item_name = av_default_item_name,
}

Definition at line 83 of file sndio_enc.c.

◆ ff_sndio_muxer

const FFOutputFormat ff_sndio_muxer
Initial value:
= {
.p.name = "sndio",
.p.long_name = NULL_IF_CONFIG_SMALL("sndio audio playback"),
.priv_data_size = sizeof(SndioData),
.p.video_codec = AV_CODEC_ID_NONE,
.write_header = audio_write_header,
.write_packet = audio_write_packet,
.write_trailer = audio_write_trailer,
.p.flags = AVFMT_NOFILE,
.p.priv_class = &sndio_muxer_class,
}

Definition at line 90 of file sndio_enc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:326
audio_write_packet
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: sndio_enc.c:47
AV_CODEC_ID_PCM_S16BE
@ AV_CODEC_ID_PCM_S16BE
Definition: codec_id.h:327
AV_NE
#define AV_NE(be, le)
Definition: macros.h:33
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
SndioData
Definition: sndio.h:31
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:115
audio_write_header
static av_cold int audio_write_header(AVFormatContext *s1)
Definition: sndio_enc.c:32
AVFMT_NOFILE
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:468
sndio_muxer_class
static const AVClass sndio_muxer_class
Definition: sndio_enc.c:83
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
Definition: log.h:42
audio_write_trailer
static int audio_write_trailer(AVFormatContext *s1)
Definition: sndio_enc.c:72