sndio_dec.c File Reference
#include <stdint.h>
#include <sndio.h>
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "sndio_common.h"
Include dependency graph for sndio_dec.c:

Go to the source code of this file.

Functions

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)
 

Variables

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

Function Documentation

static av_cold int audio_read_close ( AVFormatContext s1)
static

Definition at line 87 of file sndio_dec.c.

static av_cold int audio_read_header ( AVFormatContext s1)
static

Definition at line 32 of file sndio_dec.c.

static int audio_read_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 57 of file sndio_dec.c.

Variable Documentation

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,
}
struct SndioData SndioData
static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: sndio_dec.c:57
static const AVClass sndio_demuxer_class
Definition: sndio_dec.c:102
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. ...
static av_cold int audio_read_close(AVFormatContext *s1)
Definition: sndio_dec.c:87
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
static int flags
Definition: cpu.c:23
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
static av_cold int audio_read_header(AVFormatContext *s1)
Definition: sndio_dec.c:32

Definition at line 109 of file sndio_dec.c.

const AVOption options[]
static
Initial value:
= {
{ "sample_rate", "", offsetof(SndioData, sample_rate), AV_OPT_TYPE_INT, {.i64 = 48000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ "channels", "", offsetof(SndioData, channels), AV_OPT_TYPE_INT, {.i64 = 2}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
NULL
Definition: eval.c:55
sample_rate
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282

Definition at line 96 of file sndio_dec.c.

const AVClass sndio_demuxer_class
static
Initial value:
= {
.class_name = "sndio indev",
.item_name = av_default_item_name,
.option = options,
}
static const AVOption options[]
Definition: sndio_dec.c:96
av_default_item_name
LIBAVUTIL_VERSION_INT
Definition: eval.c:55

Definition at line 102 of file sndio_dec.c.