9#ifndef COMMON_H_INCLUDED
10#define COMMON_H_INCLUDED
14#elif (SIZEOF_INT == 4)
16#elif (SIZEOF_LONG == 4)
20#define SRC_MAX_RATIO 256
21#define SRC_MAX_RATIO_STR "256"
23#define SRC_MIN_RATIO_DIFF (1e-20)
25#define MAX(a,b) (((a) > (b)) ? (a) : (b))
26#define MIN(a,b) (((a) < (b)) ? (a) : (b))
28#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
29#define OFFSETOF(type,member) ((int) (&((type*) 0)->member))
31#define MAKE_MAGIC(a,b,c,d,e,f) ((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))
37#elif defined (__GNUC__)
38# define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))
39#elif defined (__LCLINT__)
46# define WARN_UNUSED __attribute__ ((warn_unused_result))
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLint GLint GLint GLint x
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
_Check_return_ __CRT_INLINE long lrint(_In_ double x)
long(* src_callback_t)(void *cb_data, float **data)
static int is_bad_src_ratio(double ratio)
const char * sinc_get_description(int src_enum)
const char * zoh_get_description(int src_enum)
int sinc_set_converter(SRC_PRIVATE *psrc, int src_enum)
const char * zoh_get_name(int src_enum)
int linear_set_converter(SRC_PRIVATE *psrc, int src_enum)
const char * sinc_get_name(int src_enum)
struct SRC_PRIVATE_tag SRC_PRIVATE
static double fmod_one(double x)
const char * linear_get_name(int src_enum)
int zoh_set_converter(SRC_PRIVATE *psrc, int src_enum)
@ SRC_ERR_SIZE_INCOMPATIBILITY
@ SRC_ERR_NO_VARIABLE_RATIO
@ SRC_ERR_BAD_INTERNAL_STATE
@ SRC_ERR_BAD_CHANNEL_COUNT
@ SRC_ERR_SINC_PREPARE_DATA_BAD_LEN
@ SRC_ERR_SINC_BAD_BUFFER_LEN
const char * linear_get_description(int src_enum)
int(* const_process)(struct SRC_PRIVATE_tag *psrc, SRC_DATA *data)
int(* vari_process)(struct SRC_PRIVATE_tag *psrc, SRC_DATA *data)
src_callback_t callback_func
void * user_callback_data