mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-15 04:10:00 +01:00
backported obsolete resampler from ffmpeg (issue #12) added lvdshared plugins to facilite #16 on local machine via shared memory fixes to reloaded ui (maximize screen and others) added -b and -a to reloaded commandline to resp. enable beta feature (SRT) and to connect to all (local running veejays) fixes to built-in FX solve issue #23 in reloaded (samplelist load image) add VIMS_GET_SHM_EXT to query remote veejay properties add VIMS_GET_SAMPLE_IMAGE to grab any frame (issue #23) add VIMS_SPLIT_CONNECT_SHM to request part of frame via shm fixes to general error messages and warnings replaced env VEEJAY_SCREEN_SIZE with VEEJAY_DESKTOP_GEOMETRY added env VEEJAY_VIDEO_POSITION bump version to 1.5.58
51 lines
1.8 KiB
C
51 lines
1.8 KiB
C
/*
|
|
* samplerate conversion for both audio and video
|
|
* Copyright (c) 2000 Fabrice Bellard
|
|
*
|
|
* 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
|
|
*/
|
|
|
|
|
|
/* libav only has libavresample
|
|
* ffmpeg has both libavresample and libswresample
|
|
*
|
|
* backport obsolete resampler to veejay
|
|
*
|
|
*/
|
|
|
|
#ifndef AV_RESAMPLER
|
|
#define AV_RESAMPLER
|
|
|
|
void *vj_av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff);
|
|
|
|
void vj_av_resample_close(void *ptr);
|
|
|
|
int vj_av_resample(void *ptr, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx);
|
|
|
|
void *vj_av_audio_resample_init(int output_channels, int input_channels,
|
|
int output_rate, int input_rate,
|
|
enum AVSampleFormat sample_fmt_out,
|
|
enum AVSampleFormat sample_fmt_in,
|
|
int filter_length, int log2_phase_count,
|
|
int linear, double cutoff);
|
|
|
|
int vj_audio_resample(void *s, short *output, short *input, int nb_samples);
|
|
|
|
|
|
void vj_audio_resample_close(void *s);
|
|
#endif
|