FFmpeg
|
#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 |
Definition at line 87 of file sndio_dec.c.
|
static |
Definition at line 32 of file sndio_dec.c.
|
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),
.flags = AVFMT_NOFILE,
.priv_class = &sndio_demuxer_class,
}
struct SndioData SndioData
static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: sndio_dec.c:57
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
#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.
|
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 },
}
Definition: opt.h:222
Definition: sndio_common.h:31
#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.
|
static |
Initial value:
= {
.class_name = "sndio indev",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
Definition at line 102 of file sndio_dec.c.
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11