FFmpeg
Functions | Variables
oss_enc.c File Reference
#include "config.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include "libavutil/internal.h"
#include "libavcodec/avcodec.h"
#include "avdevice.h"
#include "libavformat/internal.h"
#include "oss.h"

Go to the source code of this file.

Functions

static 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 oss_muxer_class
 
AVOutputFormat ff_oss_muxer
 

Function Documentation

◆ audio_write_header()

static int audio_write_header ( AVFormatContext s1)
static

Definition at line 40 of file oss_enc.c.

◆ audio_write_packet()

static int audio_write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 57 of file oss_enc.c.

◆ audio_write_trailer()

static int audio_write_trailer ( AVFormatContext s1)
static

Definition at line 84 of file oss_enc.c.

Variable Documentation

◆ oss_muxer_class

const AVClass oss_muxer_class
static
Initial value:
= {
.class_name = "OSS muxer",
.item_name = av_default_item_name,
}

Definition at line 92 of file oss_enc.c.

◆ ff_oss_muxer

AVOutputFormat ff_oss_muxer
Initial value:
= {
.name = "oss",
.long_name = NULL_IF_CONFIG_SMALL("OSS (Open Sound System) playback"),
.priv_data_size = sizeof(OSSAudioData),
.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 = &oss_muxer_class,
}

Definition at line 99 of file oss_enc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: avcodec.h:463
AV_CODEC_ID_PCM_S16BE
@ AV_CODEC_ID_PCM_S16BE
Definition: avcodec.h:464
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:191
OSSAudioData
Definition: oss.h:28
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:188
AVFMT_NOFILE
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:463
AV_NE
#define AV_NE(be, le)
Definition: common.h:50
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: avcodec.h:216
AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
Definition: log.h:43
audio_write_packet
static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: oss_enc.c:57
audio_write_header
static int audio_write_header(AVFormatContext *s1)
Definition: oss_enc.c:40
oss_muxer_class
static const AVClass oss_muxer_class
Definition: oss_enc.c:92
audio_write_trailer
static int audio_write_trailer(AVFormatContext *s1)
Definition: oss_enc.c:84