FFmpeg
 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 "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "sndio_common.h"

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_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.

static av_cold int audio_read_close ( AVFormatContext s1)
static

Definition at line 87 of file sndio_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 },
}

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,
}

Definition at line 102 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,
}

Definition at line 110 of file sndio_dec.c.