mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
4baa52c9c5
Original commit message from CVS: * gst/audioresample/debug.h: replace debug macros with variable number of parameters by a simple alias to gstreamer standard debug macros (#define RESAMPLE_ERROR GST_ERROR, __VA_ARGS__ is not supported by MSVC 6.0 and 7.1) * gst/audioresample/resample.h: define M_PI and rint for WIN32 * win32/common/libgstaudio.def: * win32/common/libgstriff.def: * win32/common/libgsttag.def: * win32/common/libgstvideo.def: add new exported functions * win32/vs6: update project files
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
|
|
#ifndef __RESAMPLE_DEBUG_H__
|
|
#define __RESAMPLE_DEBUG_H__
|
|
|
|
#if 0
|
|
enum
|
|
{
|
|
RESAMPLE_LEVEL_NONE = 0,
|
|
RESAMPLE_LEVEL_ERROR,
|
|
RESAMPLE_LEVEL_WARNING,
|
|
RESAMPLE_LEVEL_INFO,
|
|
RESAMPLE_LEVEL_DEBUG,
|
|
RESAMPLE_LEVEL_LOG
|
|
};
|
|
|
|
#define RESAMPLE_ERROR(...) \
|
|
RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_ERROR, __VA_ARGS__)
|
|
#define RESAMPLE_WARNING(...) \
|
|
RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_WARNING, __VA_ARGS__)
|
|
#define RESAMPLE_INFO(...) \
|
|
RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_INFO, __VA_ARGS__)
|
|
#define RESAMPLE_DEBUG(...) \
|
|
RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_DEBUG, __VA_ARGS__)
|
|
#define RESAMPLE_LOG(...) \
|
|
RESAMPLE_DEBUG_LEVEL(RESAMPLE_LEVEL_LOG, __VA_ARGS__)
|
|
|
|
#define RESAMPLE_DEBUG_LEVEL(level,...) \
|
|
resample_debug_log ((level), __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
|
|
|
|
void resample_debug_log (int level, const char *file, const char *function,
|
|
int line, const char *format, ...);
|
|
void resample_debug_set_level (int level);
|
|
int resample_debug_get_level (void);
|
|
#else
|
|
|
|
#include <gst/gst.h>
|
|
|
|
GST_DEBUG_CATEGORY_EXTERN (audioresample_debug);
|
|
#define GST_CAT_DEFAULT audioresample_debug
|
|
|
|
#define RESAMPLE_ERROR GST_ERROR
|
|
#define RESAMPLE_WARNING GST_WARNING
|
|
#define RESAMPLE_INFO GST_INFO
|
|
#define RESAMPLE_DEBUG GST_DEBUG
|
|
#define RESAMPLE_LOG GST_LOG
|
|
|
|
#define resample_debug_set_level(x) do { } while (0)
|
|
|
|
#endif
|
|
|
|
#endif
|