All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
sndio_dec.c File Reference
#include <stdint.h>
#include <sndio.h>
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"

Go to the source code of this file.


static av_cold int audio_read_header (AVFormatContext *s1)
static int audio_read_packet (AVFormatContext *s1, AVPacket *pkt)
static av_cold int audio_read_close (AVFormatContext *s1)


static const AVOption options []
static const AVClass sndio_demuxer_class
AVInputFormat ff_sndio_demuxer

Function Documentation

static av_cold int audio_read_header ( AVFormatContext s1)

Definition at line 34 of file sndio_dec.c.

static int audio_read_packet ( AVFormatContext s1,
AVPacket pkt 

Definition at line 59 of file sndio_dec.c.

static av_cold int audio_read_close ( AVFormatContext s1)

Definition at line 89 of file sndio_dec.c.

Variable Documentation

const AVOption options[]
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
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:277

Definition at line 98 of file sndio_dec.c.

const AVClass sndio_demuxer_class
Initial value:
= {
.class_name = "sndio indev",
.item_name = av_default_item_name,
.option = options,
static const AVOption options[]
Definition: sndio_dec.c:98
Definition: version.h:86

Definition at line 104 of file sndio_dec.c.

AVInputFormat ff_sndio_demuxer
Initial value:
= {
.name = "sndio",
.long_name = NULL_IF_CONFIG_SMALL("sndio audio capture"),
.priv_data_size = sizeof(SndioData),
.priv_class = &sndio_demuxer_class,
static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: sndio_dec.c:59
static const AVClass sndio_demuxer_class
Definition: sndio_dec.c:104
static int flags
Definition: log.c:57
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static av_cold int audio_read_close(AVFormatContext *s1)
Definition: sndio_dec.c:89
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:528
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:478
static av_cold int audio_read_header(AVFormatContext *s1)
Definition: sndio_dec.c:34

Definition at line 112 of file sndio_dec.c.