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
2e90b37c
Commit
2e90b37c
authored
Jan 04, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg2 QP clamping fix
Originally committed as revision 2663 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0982834b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
postprocess.c
libavcodec/libpostproc/postprocess.c
+2
-2
postprocess_internal.h
libavcodec/libpostproc/postprocess_internal.h
+2
-2
postprocess_template.c
libavcodec/libpostproc/postprocess_template.c
+1
-1
No files found.
libavcodec/libpostproc/postprocess.c
View file @
2e90b37c
...
...
@@ -943,10 +943,10 @@ for(y=0; y<mbHeight; y++){
int
i
;
const
int
count
=
mbHeight
*
QPStride
;
for
(
i
=
0
;
i
<
(
count
>>
2
);
i
++
){
((
uint32_t
*
)
c
->
nonBQPTable
)[
i
]
=
((
uint32_t
*
)
QP_store
)[
i
]
&
0x
1F1F1F1
F
;
((
uint32_t
*
)
c
->
nonBQPTable
)[
i
]
=
((
uint32_t
*
)
QP_store
)[
i
]
&
0x
3F3F3F3
F
;
}
for
(
i
<<=
2
;
i
<
count
;
i
++
){
c
->
nonBQPTable
[
i
]
=
QP_store
[
i
]
&
0x
1
F
;
c
->
nonBQPTable
[
i
]
=
QP_store
[
i
]
&
0x
3
F
;
}
}
...
...
libavcodec/libpostproc/postprocess_internal.h
View file @
2e90b37c
...
...
@@ -134,8 +134,8 @@ typedef struct PPContext{
uint64_t
__attribute__
((
aligned
(
8
)))
pQPb
;
uint64_t
__attribute__
((
aligned
(
8
)))
pQPb2
;
uint64_t
__attribute__
((
aligned
(
8
)))
mmxDcOffset
[
32
];
uint64_t
__attribute__
((
aligned
(
8
)))
mmxDcThreshold
[
32
];
uint64_t
__attribute__
((
aligned
(
8
)))
mmxDcOffset
[
64
];
uint64_t
__attribute__
((
aligned
(
8
)))
mmxDcThreshold
[
64
];
QP_STORE_T
*
stdQPTable
;
///< used to fix MPEG2 style qscale
QP_STORE_T
*
nonBQPTable
;
...
...
libavcodec/libpostproc/postprocess_template.c
View file @
2e90b37c
...
...
@@ -2792,7 +2792,7 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int
const
int
mbWidth
=
isColor
?
(
width
+
7
)
>>
3
:
(
width
+
15
)
>>
4
;
#ifdef HAVE_MMX
for
(
i
=
0
;
i
<
32
;
i
++
){
for
(
i
=
0
;
i
<
57
;
i
++
){
int
offset
=
((
i
*
c
.
ppMode
.
baseDcDiff
)
>>
8
)
+
1
;
int
threshold
=
offset
*
2
+
1
;
c
.
mmxDcOffset
[
i
]
=
0x7F
-
offset
;
...
...
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