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
bd55f01c
Commit
bd55f01c
authored
Feb 24, 2015
by
zhaoxiu.zeng
Committed by
Michael Niedermayer
Feb 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vc1_block: Simplify dir_ptr / pred initialization
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f6b195cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
vc1_block.c
libavcodec/vc1_block.c
+3
-11
No files found.
libavcodec/vc1_block.c
View file @
bd55f01c
...
@@ -423,20 +423,12 @@ static inline int ff_vc1_pred_dc(MpegEncContext *s, int overlap, int pq, int n,
...
@@ -423,20 +423,12 @@ static inline int ff_vc1_pred_dc(MpegEncContext *s, int overlap, int pq, int n,
b
=
(
b
*
s
->
y_dc_scale_table
[
q2
]
*
ff_vc1_dqscale
[
dqscale_index
]
+
0x20000
)
>>
18
;
b
=
(
b
*
s
->
y_dc_scale_table
[
q2
]
*
ff_vc1_dqscale
[
dqscale_index
]
+
0x20000
)
>>
18
;
}
}
if
(
a_avail
&&
c_avail
)
{
if
(
c_avail
&&
(
!
a_avail
||
abs
(
a
-
b
)
<=
abs
(
b
-
c
)))
{
if
(
abs
(
a
-
b
)
<=
abs
(
b
-
c
))
{
pred
=
c
;
pred
=
c
;
*
dir_ptr
=
1
;
// left
*
dir_ptr
=
1
;
// left
}
else
{
pred
=
a
;
*
dir_ptr
=
0
;
// top
}
}
else
if
(
a_avail
)
{
}
else
if
(
a_avail
)
{
pred
=
a
;
pred
=
a
;
*
dir_ptr
=
0
;
// top
*
dir_ptr
=
0
;
// top
}
else
if
(
c_avail
)
{
pred
=
c
;
*
dir_ptr
=
1
;
// left
}
else
{
}
else
{
pred
=
0
;
pred
=
0
;
*
dir_ptr
=
1
;
// left
*
dir_ptr
=
1
;
// left
...
...
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