libavdevice/sndio_dec.c File Reference

#include <stdint.h>
#include <sndio.h>
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "libavutil/opt.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_close ( AVFormatContext s1  )  [static]

Definition at line 86 of file sndio_dec.c.

static av_cold int audio_read_header ( AVFormatContext s1  )  [static]

Definition at line 31 of file sndio_dec.c.

static int audio_read_packet ( AVFormatContext s1,
AVPacket pkt 
) [static]

Definition at line 56 of file sndio_dec.c.


Variable Documentation

Initial value:

 {
    .name           = "sndio",
    .long_name      = NULL_IF_CONFIG_SMALL("sndio audio capture"),
    .priv_data_size = sizeof(SndioData),
    .read_header    = audio_read_header,
    .read_packet    = audio_read_packet,
    .read_close     = audio_read_close,
    .flags          = AVFMT_NOFILE,
    .priv_class     = &sndio_demuxer_class,
}

Definition at line 108 of file sndio_dec.c.

const AVOption options[] [static]

Initial value:

 {
    { "sample_rate", "", 0x42, AV_OPT_TYPE_INT, {.dbl = 48000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
    { "channels",    "", 0x42,    AV_OPT_TYPE_INT, {.dbl = 2},     1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
    { NULL },
}

Definition at line 95 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,
    .version        = LIBAVUTIL_VERSION_INT,
}

Definition at line 101 of file sndio_dec.c.


Generated on Fri Oct 26 02:48:00 2012 for FFmpeg by  doxygen 1.5.8