Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
004b81c4
Commit
004b81c4
authored
May 15, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: Remove commented-out PARANOID debug cruft
parent
d46c588f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
37 deletions
+0
-37
mpegvideo.c
libavcodec/mpegvideo.c
+0
-4
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+0
-3
mpegvideo.c
libavcodec/x86/mpegvideo.c
+0
-30
No files found.
libavcodec/mpegvideo.c
View file @
004b81c4
...
...
@@ -59,10 +59,6 @@ static void dct_unquantize_h263_intra_c(MpegEncContext *s,
static
void
dct_unquantize_h263_inter_c
(
MpegEncContext
*
s
,
int16_t
*
block
,
int
n
,
int
qscale
);
/* enable all paranoid tests for rounding, overflows, etc... */
//#define PARANOID
//#define DEBUG
...
...
libavcodec/mpegvideo_enc.c
View file @
004b81c4
...
...
@@ -60,9 +60,6 @@ static int sse_mb(MpegEncContext *s);
static
void
denoise_dct_c
(
MpegEncContext
*
s
,
int16_t
*
block
);
static
int
dct_quantize_trellis_c
(
MpegEncContext
*
s
,
int16_t
*
block
,
int
n
,
int
qscale
,
int
*
overflow
);
/* enable all paranoid tests for rounding, overflows, etc... */
//#define PARANOID
//#define DEBUG
static
uint8_t
default_mv_penalty
[
MAX_FCODE
+
1
][
MAX_MV
*
2
+
1
];
...
...
libavcodec/x86/mpegvideo.c
View file @
004b81c4
...
...
@@ -164,36 +164,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
i.e. is 16-bit, so we use here only PMULLW instruction and can avoid
a complex multiplication.
=====================================================
Full formula for multiplication of 2 integer numbers
which are represent as high:low words:
input: value1 = high1:low1
value2 = high2:low2
output: value3 = value1*value2
value3=high3:low3 (on overflow: modulus 2^32 wrap-around)
this mean that for 0x123456 * 0x123456 correct result is 0x766cb0ce4
but this algorithm will compute only 0x66cb0ce4
this limited by 16-bit size of operands
---------------------------------
tlow1 = high1*low2
tlow2 = high2*low1
tlow1 = tlow1 + tlow2
high3:low3 = low1*low2
high3 += tlow1
*/
static
void
dct_unquantize_mpeg1_intra_mmx
(
MpegEncContext
*
s
,
int16_t
*
block
,
int
n
,
int
qscale
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment