#include <stdint.h>
#include <sndio.h>
#include "libavformat/avformat.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, AVFormatParameters *ap) |
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 |
static av_cold int audio_read_close | ( | AVFormatContext * | s1 | ) | [static] |
Definition at line 93 of file sndio_dec.c.
static av_cold int audio_read_header | ( | AVFormatContext * | s1, | |
AVFormatParameters * | ap | |||
) | [static] |
Definition at line 30 of file sndio_dec.c.
static int audio_read_packet | ( | AVFormatContext * | s1, | |
AVPacket * | pkt | |||
) | [static] |
Definition at line 63 of file sndio_dec.c.
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 115 of file sndio_dec.c.
Initial value:
{ { "sample_rate", "", 0x42, FF_OPT_TYPE_INT, {.dbl = 48000}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { "channels", "", 0x42, FF_OPT_TYPE_INT, {.dbl = 2}, 1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { NULL }, }
Definition at line 102 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 108 of file sndio_dec.c.