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
412594ed
Commit
412594ed
authored
Jul 03, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dct-test: remove commented out code
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
954a6532
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
dct-test.c
libavcodec/dct-test.c
+0
-35
No files found.
libavcodec/dct-test.c
View file @
412594ed
...
...
@@ -177,7 +177,6 @@ static void idct_mmx_init(void)
/* the mmx/mmxext idct uses a reordered input, so we patch scan tables */
for
(
i
=
0
;
i
<
64
;
i
++
)
{
idct_mmx_perm
[
i
]
=
(
i
&
0x38
)
|
((
i
&
6
)
>>
1
)
|
((
i
&
1
)
<<
2
);
// idct_simple_mmx_perm[i] = simple_block_permute_op(i);
}
}
...
...
@@ -235,15 +234,6 @@ static void dct_error(const char *name, int is_idct,
break
;
}
#if 0 // simulate mismatch control
{ int sum=0;
for(i=0;i<64;i++)
sum+=block1[i];
if((sum&1)==0) block1[63]^=1;
}
#endif
for
(
i
=
0
;
i
<
64
;
i
++
)
block_org
[
i
]
=
block1
[
i
];
...
...
@@ -264,14 +254,6 @@ static void dct_error(const char *name, int is_idct,
for
(
i
=
0
;
i
<
64
;
i
++
)
block
[
i
]
=
block1
[
i
];
}
#if 0 // simulate mismatch control for tested IDCT but not the ref
{ int sum=0;
for(i=0;i<64;i++)
sum+=block[i];
if((sum&1)==0) block[63]^=1;
}
#endif
fdct_func
(
block
);
mmx_emms
();
...
...
@@ -296,19 +278,6 @@ static void dct_error(const char *name, int is_idct,
if
(
abs
(
block
[
i
])
>
maxout
)
maxout
=
abs
(
block
[
i
]);
}
if
(
blockSumErrMax
<
blockSumErr
)
blockSumErrMax
=
blockSumErr
;
#if 0 // print different matrix pairs
if(blockSumErr){
printf("\n");
for(i=0; i<64; i++){
if((i&7)==0) printf("\n");
printf("%4d ", block_org[i]);
}
for(i=0; i<64; i++){
if((i&7)==0) printf("\n");
printf("%4d ", block[i] - block1[i]);
}
}
#endif
}
for
(
i
=
0
;
i
<
64
;
i
++
)
sysErrMax
=
FFMAX
(
sysErrMax
,
FFABS
(
sysErr
[
i
]));
...
...
@@ -362,8 +331,6 @@ static void dct_error(const char *name, int is_idct,
for
(
it
=
0
;
it
<
NB_ITS_SPEED
;
it
++
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
block
[
i
]
=
block1
[
i
];
// memcpy(block, block1, sizeof(DCTELEM) * 64);
// do not memcpy especially not fastmemcpy because it does movntq !!!
fdct_func
(
block
);
}
it1
+=
NB_ITS_SPEED
;
...
...
@@ -504,8 +471,6 @@ static void idct248_error(const char *name,
for
(
it
=
0
;
it
<
NB_ITS_SPEED
;
it
++
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
block
[
i
]
=
block1
[
i
];
// memcpy(block, block1, sizeof(DCTELEM) * 64);
// do not memcpy especially not fastmemcpy because it does movntq !!!
idct248_put
(
img_dest
,
8
,
block
);
}
it1
+=
NB_ITS_SPEED
;
...
...
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