mpegvideo: remove #if/define PARANOID code
This code never did anything as far as i can remember Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -58,9 +58,6 @@ static void dct_unquantize_h263_inter_c(MpegEncContext *s,
|
|||||||
DCTELEM *block, int n, int qscale);
|
DCTELEM *block, int n, int qscale);
|
||||||
|
|
||||||
|
|
||||||
/* enable all paranoid tests for rounding, overflows, etc... */
|
|
||||||
//#define PARANOID
|
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
@@ -57,9 +57,6 @@ static int sse_mb(MpegEncContext *s);
|
|||||||
static void denoise_dct_c(MpegEncContext *s, DCTELEM *block);
|
static void denoise_dct_c(MpegEncContext *s, DCTELEM *block);
|
||||||
static int dct_quantize_trellis_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow);
|
static int dct_quantize_trellis_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow);
|
||||||
|
|
||||||
/* enable all paranoid tests for rounding, overflows, etc... */
|
|
||||||
//#define PARANOID
|
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
|
||||||
static uint8_t default_mv_penalty[MAX_FCODE + 1][MAX_MV * 2 + 1];
|
static uint8_t default_mv_penalty[MAX_FCODE + 1][MAX_MV * 2 + 1];
|
||||||
|
@@ -166,14 +166,6 @@ __asm__ volatile(
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NK:
|
|
||||||
Note: looking at PARANOID:
|
|
||||||
"enable all paranoid tests for rounding, overflows, etc..."
|
|
||||||
|
|
||||||
#ifdef PARANOID
|
|
||||||
if (level < -2048 || level > 2047)
|
|
||||||
fprintf(stderr, "unquant error %d %d\n", i, level);
|
|
||||||
#endif
|
|
||||||
We can suppose that result of two multiplications can't be greater than 0xFFFF
|
We can suppose that result of two multiplications can't be greater than 0xFFFF
|
||||||
i.e. is 16-bit, so we use here only PMULLW instruction and can avoid
|
i.e. is 16-bit, so we use here only PMULLW instruction and can avoid
|
||||||
a complex multiplication.
|
a complex multiplication.
|
||||||
|
Reference in New Issue
Block a user