xine-lib: xine-lib-1.2.12/include/xine/resample.h Source File

xine-lib 1.2.12

resample.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2000-2018 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * xine is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 *
20 * utilitiy functions for audio drivers
21 *
22 * FIXME: not all of them are implemented yet
23 */
24
25#ifndef HAVE_RESAMPLE_H
26#define HAVE_RESAMPLE_H
27
28#include <xine/attributes.h>
29#include <xine/os_types.h>
30
31#define RESAMPLE_MAX_CHANNELS 6
32
33void _x_audio_out_resample_stereo(int16_t* last_sample,
34 int16_t* input_samples, uint32_t in_samples,
35 int16_t* output_samples, uint32_t out_samples) XINE_PROTECTED;
36
37void _x_audio_out_resample_mono(int16_t* last_sample,
38 int16_t* input_samples, uint32_t in_samples,
39 int16_t* output_samples, uint32_t out_samples) XINE_PROTECTED;
40
41void _x_audio_out_resample_4channel(int16_t* last_sample,
42 int16_t* input_samples, uint32_t in_samples,
43 int16_t* output_samples, uint32_t out_samples) XINE_PROTECTED;
44
45void _x_audio_out_resample_5channel(int16_t* last_sample,
46 int16_t* input_samples, uint32_t in_samples,
47 int16_t* output_samples, uint32_t out_samples) XINE_PROTECTED;
48
49void _x_audio_out_resample_6channel(int16_t* last_sample,
50 int16_t* input_samples, uint32_t in_samples,
51 int16_t* output_samples, uint32_t out_samples) XINE_PROTECTED;
52
53void _x_audio_out_resample_8to16(int8_t* input_samples,
54 int16_t* output_samples, uint32_t samples) XINE_PROTECTED;
55
56void _x_audio_out_resample_16to8(int16_t* input_samples,
57 int8_t* output_samples, uint32_t samples) XINE_PROTECTED;
58
59void _x_audio_out_resample_monotostereo(int16_t* input_samples,
60 int16_t* output_samples, uint32_t frames) XINE_PROTECTED;
61
62void _x_audio_out_resample_stereotomono(int16_t* input_samples,
63 int16_t* output_samples, uint32_t frames) XINE_PROTECTED;
64
65#endif
attributes.h
XINE_PROTECTED
#define XINE_PROTECTED
Definition: attributes.h:75
os_types.h
_x_audio_out_resample_mono
void _x_audio_out_resample_mono(int16_t *last_sample, int16_t *input_samples, uint32_t in_samples, int16_t *output_samples, uint32_t out_samples)
Definition: resample.c:32
_x_audio_out_resample_monotostereo
void _x_audio_out_resample_monotostereo(int16_t *input_samples, int16_t *output_samples, uint32_t frames)
Definition: resample.c:339
_x_audio_out_resample_8to16
void _x_audio_out_resample_8to16(int8_t *input_samples, int16_t *output_samples, uint32_t samples)
Definition: resample.c:315
_x_audio_out_resample_4channel
void _x_audio_out_resample_4channel(int16_t *last_sample, int16_t *input_samples, uint32_t in_samples, int16_t *output_samples, uint32_t out_samples)
Definition: resample.c:115
_x_audio_out_resample_stereo
void _x_audio_out_resample_stereo(int16_t *last_sample, int16_t *input_samples, uint32_t in_samples, int16_t *output_samples, uint32_t out_samples)
Definition: resample.c:70
_x_audio_out_resample_5channel
void _x_audio_out_resample_5channel(int16_t *last_sample, int16_t *input_samples, uint32_t in_samples, int16_t *output_samples, uint32_t out_samples)
Definition: resample.c:175
_x_audio_out_resample_stereotomono
void _x_audio_out_resample_stereotomono(int16_t *input_samples, int16_t *output_samples, uint32_t frames)
Definition: resample.c:351
_x_audio_out_resample_16to8
void _x_audio_out_resample_16to8(int16_t *input_samples, int8_t *output_samples, uint32_t samples)
Definition: resample.c:327
_x_audio_out_resample_6channel
void _x_audio_out_resample_6channel(int16_t *last_sample, int16_t *input_samples, uint32_t in_samples, int16_t *output_samples, uint32_t out_samples)
Definition: resample.c:242