FFmpeg
Functions | Variables
oss_dec.c File Reference
#include "config.h"
#include <stdint.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.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_read_header (AVFormatContext *s1)
 
static int audio_read_packet (AVFormatContext *s1, AVPacket *pkt)
 
static int audio_read_close (AVFormatContext *s1)
 

Variables

static const AVOption options []
 
static const AVClass oss_demuxer_class
 
AVInputFormat ff_oss_demuxer
 

Function Documentation

static int audio_read_header ( AVFormatContext s1)
static

Definition at line 44 of file oss_dec.c.

static int audio_read_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 70 of file oss_dec.c.

static int audio_read_close ( AVFormatContext s1)
static

Definition at line 113 of file oss_dec.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "sample_rate", "", 0x42, AV_OPT_TYPE_INT, {.i64 = 48000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "channels", "", 0x42, AV_OPT_TYPE_INT, {.i64 = 2}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:277

Definition at line 121 of file oss_dec.c.

const AVClass oss_demuxer_class
static
Initial value:
= {
.class_name = "OSS indev",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
static const AVOption options[]
Definition: oss_dec.c:121
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235

Definition at line 127 of file oss_dec.c.

AVInputFormat ff_oss_demuxer
Initial value:
= {
.name = "oss",
.long_name = NULL_IF_CONFIG_SMALL("OSS (Open Sound System) capture"),
.priv_data_size = sizeof(OSSAudioData),
.priv_class = &oss_demuxer_class,
}
static int audio_read_header(AVFormatContext *s1)
Definition: oss_dec.c:44
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int audio_read_close(AVFormatContext *s1)
Definition: oss_dec.c:113
static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: oss_dec.c:70
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:527
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static const AVClass oss_demuxer_class
Definition: oss_dec.c:127
#define flags(name, subs,...)
Definition: cbs_av1.c:564
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:458

Definition at line 135 of file oss_dec.c.