mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
lavr: typedef internal structs in internal.h
Simplifies header dependencies by not including all other internal headers in internal.h.
This commit is contained in:
parent
6042a12174
commit
4d68269d58
@ -30,7 +30,6 @@
|
||||
#include "audio_convert.h"
|
||||
#include "audio_data.h"
|
||||
#include "dither.h"
|
||||
#include "internal.h"
|
||||
|
||||
enum ConvFuncType {
|
||||
CONV_FUNC_TYPE_FLAT,
|
||||
|
@ -23,10 +23,9 @@
|
||||
|
||||
#include "libavutil/samplefmt.h"
|
||||
#include "avresample.h"
|
||||
#include "internal.h"
|
||||
#include "audio_data.h"
|
||||
|
||||
typedef struct AudioConvert AudioConvert;
|
||||
|
||||
/**
|
||||
* Set conversion function if the parameters match.
|
||||
*
|
||||
|
@ -27,11 +27,12 @@
|
||||
#include "libavutil/log.h"
|
||||
#include "libavutil/samplefmt.h"
|
||||
#include "avresample.h"
|
||||
#include "internal.h"
|
||||
|
||||
/**
|
||||
* Audio buffer used for intermediate storage between conversion phases.
|
||||
*/
|
||||
typedef struct AudioData {
|
||||
struct AudioData {
|
||||
const AVClass *class; /**< AVClass for logging */
|
||||
uint8_t *data[AVRESAMPLE_MAX_CHANNELS]; /**< data plane pointers */
|
||||
uint8_t *buffer; /**< data buffer */
|
||||
@ -50,7 +51,7 @@ typedef struct AudioData {
|
||||
int ptr_align; /**< minimum data pointer alignment */
|
||||
int samples_align; /**< allocated samples alignment */
|
||||
const char *name; /**< name for debug logging */
|
||||
} AudioData;
|
||||
};
|
||||
|
||||
int ff_audio_data_set_channels(AudioData *a, int channels);
|
||||
|
||||
|
@ -25,13 +25,12 @@
|
||||
|
||||
#include "libavutil/samplefmt.h"
|
||||
#include "avresample.h"
|
||||
#include "internal.h"
|
||||
#include "audio_data.h"
|
||||
|
||||
typedef void (mix_func)(uint8_t **src, void **matrix, int len, int out_ch,
|
||||
int in_ch);
|
||||
|
||||
typedef struct AudioMix AudioMix;
|
||||
|
||||
/**
|
||||
* Set mixing function if the parameters match.
|
||||
*
|
||||
|
@ -26,10 +26,11 @@
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/samplefmt.h"
|
||||
#include "avresample.h"
|
||||
#include "audio_convert.h"
|
||||
#include "audio_data.h"
|
||||
#include "audio_mix.h"
|
||||
#include "resample.h"
|
||||
|
||||
typedef struct AudioData AudioData;
|
||||
typedef struct AudioConvert AudioConvert;
|
||||
typedef struct AudioMix AudioMix;
|
||||
typedef struct ResampleContext ResampleContext;
|
||||
|
||||
struct AVAudioResampleContext {
|
||||
const AVClass *av_class; /**< AVClass for logging and AVOptions */
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "libavutil/libm.h"
|
||||
#include "libavutil/log.h"
|
||||
#include "internal.h"
|
||||
#include "resample.h"
|
||||
#include "audio_data.h"
|
||||
|
||||
struct ResampleContext {
|
||||
|
@ -22,10 +22,9 @@
|
||||
#define AVRESAMPLE_RESAMPLE_H
|
||||
|
||||
#include "avresample.h"
|
||||
#include "internal.h"
|
||||
#include "audio_data.h"
|
||||
|
||||
typedef struct ResampleContext ResampleContext;
|
||||
|
||||
/**
|
||||
* Allocate and initialize a ResampleContext.
|
||||
*
|
||||
|
@ -26,8 +26,11 @@
|
||||
#include "libavutil/opt.h"
|
||||
|
||||
#include "avresample.h"
|
||||
#include "audio_data.h"
|
||||
#include "internal.h"
|
||||
#include "audio_data.h"
|
||||
#include "audio_convert.h"
|
||||
#include "audio_mix.h"
|
||||
#include "resample.h"
|
||||
|
||||
int avresample_open(AVAudioResampleContext *avr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user