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
7f80afe0
Commit
7f80afe0
authored
Feb 29, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libpostproc: add bitexact mode, which is needed for regression testing.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0ae9b32e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
postprocess.c
libpostproc/postprocess.c
+5
-2
postprocess_internal.h
libpostproc/postprocess_internal.h
+1
-0
No files found.
libpostproc/postprocess.c
View file @
7f80afe0
...
...
@@ -150,6 +150,7 @@ static struct PPFilter filters[]=
{
"l5"
,
"lowpass5"
,
1
,
1
,
4
,
LOWPASS5_DEINT_FILTER
},
{
"tn"
,
"tmpnoise"
,
1
,
7
,
8
,
TEMP_NOISE_FILTER
},
{
"fq"
,
"forcequant"
,
1
,
0
,
0
,
FORCE_QUANT
},
{
"be"
,
"bitexact"
,
1
,
0
,
0
,
BITEXACT
},
{
NULL
,
NULL
,
0
,
0
,
0
,
0
}
//End Marker
};
...
...
@@ -536,9 +537,8 @@ static av_always_inline void do_a_deblock_C(uint8_t *src, int step, int stride,
//Note: we have C, MMX, MMX2, 3DNOW version there is no 3DNOW+MMX2 one
//Plain C versions
#if !(HAVE_MMX || HAVE_ALTIVEC) || CONFIG_RUNTIME_CPUDETECT
//we always compile C for testing which needs bitexactness
#define COMPILE_C
#endif
#if HAVE_ALTIVEC
#define COMPILE_ALTIVEC
...
...
@@ -624,6 +624,9 @@ static inline void postProcess(const uint8_t src[], int srcStride, uint8_t dst[]
PPMode
*
ppMode
=
(
PPMode
*
)
vm
;
c
->
ppMode
=
*
ppMode
;
//FIXME
if
(
ppMode
->
lumMode
&
BITEXACT
)
return
postProcess_C
(
src
,
srcStride
,
dst
,
dstStride
,
width
,
height
,
QPs
,
QPStride
,
isColor
,
c
);
// Using ifs here as they are faster than function pointers although the
// difference would not be measurable here but it is much better because
// someone might exchange the CPU whithout restarting MPlayer ;)
...
...
libpostproc/postprocess_internal.h
View file @
7f80afe0
...
...
@@ -67,6 +67,7 @@
#define TEMP_NOISE_FILTER 0x100000
#define FORCE_QUANT 0x200000
#define BITEXACT 0x1000000
//use if you want a faster postprocessing code
//cannot differentiate between chroma & luma filters (both on or both off)
...
...
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