diff options
author | Luca Abeni <lucabe72@email.it> | 2007-01-23 13:41:45 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2007-01-23 13:41:45 +0000 |
commit | 2d529db50f735b3aaaf673b905c10f6e8ef36db1 (patch) | |
tree | faf7a2d713f057d4a9354679505aeae5e2e3eb7e /libswscale/swscale_internal.h | |
parent | 6f9ca74becb3ee09b8ff9823578c663d96c00272 (diff) | |
download | ffmpeg-2d529db50f735b3aaaf673b905c10f6e8ef36db1.tar.gz |
Pass a context to av_log(), when possible
Originally committed as revision 21999 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 06ce13f8c5..6302e86d18 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -33,13 +33,6 @@ #define AVV(x...) {x} #endif -#define MSG_WARN(args...) av_log(NULL, AV_LOG_DEBUG, ##args ) -#define MSG_FATAL(args...) av_log(NULL, AV_LOG_ERROR, ##args ) -#define MSG_ERR(args...) av_log(NULL, AV_LOG_ERROR, ##args ) -#define MSG_V(args...) av_log(NULL, AV_LOG_INFO, ##args ) -#define MSG_DBG2(args...) av_log(NULL, AV_LOG_DEBUG, ##args ) -#define MSG_INFO(args...) av_log(NULL, AV_LOG_INFO, ##args ) - #define MAX_FILTER_SIZE 256 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, @@ -47,6 +40,11 @@ typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride /* this struct should be aligned on at least 32-byte boundary */ typedef struct SwsContext{ + /** + * info on struct for av_log + */ + AVClass *av_class; + /** * * Note the src,dst,srcStride,dstStride will be copied, in the sws_scale() warper so they can freely be modified here |