mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-08 05:28:40 +00:00
* qatar/master: (32 commits)
doc: create separate section for audio encoders
swscale: Remove orphaned, commented-out function declaration.
swscale: Eliminate rgb24toyv12_c() duplication.
Remove h263_msmpeg4 from MpegEncContext.
APIchanges: Fill in git hash for fps_probe_size (30315a8
)
avformat: Add fpsprobesize as an AVOption.
avoptions: Return explicitly NAN or {0,0} if the option isn't found
rtmp: Reindent
rtmp: Don't try to do av_malloc(0)
tty: replace AVFormatParameters.sample_rate abuse with a private option.
Fix end time of last chapter in compute_chapters_end
ffmpeg: get rid of useless AVInputStream.nb_streams.
ffmpeg: simplify managing input files and streams
ffmpeg: purge redundant AVInputStream.index.
lavf: deprecate AVFormatParameters.channel.
libdc1394: add a private option for channel.
dv1394: add a private option for channel.
v4l2: reindent.
v4l2: add a private option for channel.
lavf: deprecate AVFormatParameters.standard.
...
Conflicts:
doc/APIchanges
doc/encoders.texi
ffmpeg.c
libavdevice/alsa-audio.h
libavformat/version.h
libavutil/opt.c
libswscale/rgb2rgb.h
libswscale/rgb2rgb_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* sndio play and grab interface
|
|
* Copyright (c) 2010 Jacob Meuser
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVDEVICE_SNDIO_COMMON_H
|
|
#define AVDEVICE_SNDIO_COMMON_H
|
|
|
|
#include <stdint.h>
|
|
#include <sndio.h>
|
|
|
|
#include "libavformat/avformat.h"
|
|
#include "libavutil/log.h"
|
|
|
|
typedef struct {
|
|
AVClass *class;
|
|
struct sio_hdl *hdl;
|
|
enum CodecID codec_id;
|
|
int64_t hwpos;
|
|
int64_t softpos;
|
|
uint8_t *buffer;
|
|
int bps;
|
|
int buffer_size;
|
|
int buffer_offset;
|
|
int channels;
|
|
int sample_rate;
|
|
} SndioData;
|
|
|
|
int ff_sndio_open(AVFormatContext *s1, int is_output, const char *audio_device);
|
|
int ff_sndio_close(SndioData *s);
|
|
|
|
#endif /* AVDEVICE_SNDIO_COMMON_H */
|