1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Merge commit '5ce7ca68b86856ee8e9d6530dffdadc4eca4f8d1'

* commit '5ce7ca68b86856ee8e9d6530dffdadc4eca4f8d1':
  libxvid: add working lumimasking and variance AQ

Conflicts:
	libavcodec/libxvid.c
	libavcodec/version.h

See: ccb212b6c3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-04-07 03:07:49 +02:00
commit 072278c777
2 changed files with 8 additions and 7 deletions

View File

@ -531,25 +531,26 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) {
xvid_enc_create.num_plugins++; xvid_enc_create.num_plugins++;
} }
if ( avctx->lumi_masking != 0.0) if (avctx->lumi_masking != 0.0)
x->lumi_aq = 1; x->lumi_aq = 1;
/* Luminance Masking */ /* Luminance Masking */
if( x->lumi_aq ) { if (x->lumi_aq) {
masking_l.method = 0; masking_l.method = 0;
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking; plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking;
/* The old behavior is that when avctx->lumi_masking is specified, /* The old behavior is that when avctx->lumi_masking is specified,
* plugins[...].param = NULL. Trying to keep the old behavior here. */ * plugins[...].param = NULL. Trying to keep the old behavior here. */
plugins[xvid_enc_create.num_plugins].param = avctx->lumi_masking ? NULL : &masking_l ; plugins[xvid_enc_create.num_plugins].param = avctx->lumi_masking ? NULL
xvid_enc_create.num_plugins++; : &masking_l;
xvid_enc_create.num_plugins++;
} }
/* Variance AQ */ /* Variance AQ */
if( x->variance_aq ) { if (x->variance_aq) {
masking_v.method = 1; masking_v.method = 1;
plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking; plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking;
plugins[xvid_enc_create.num_plugins].param = &masking_v ; plugins[xvid_enc_create.num_plugins].param = &masking_v;
xvid_enc_create.num_plugins++; xvid_enc_create.num_plugins++;
} }

View File

@ -30,7 +30,7 @@
#define LIBAVCODEC_VERSION_MAJOR 55 #define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 58 #define LIBAVCODEC_VERSION_MINOR 58
#define LIBAVCODEC_VERSION_MICRO 100 #define LIBAVCODEC_VERSION_MICRO 101
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \ LIBAVCODEC_VERSION_MINOR, \