Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
x264
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
x264
Commits
8423fd9e
Commit
8423fd9e
authored
May 21, 2010
by
Fiona Glaser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid an extra var2 in chroma encoding if possible
Also remove a redundant if.
parent
0d74fbda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
encoder/analyse.c
encoder/analyse.c
+2
-3
encoder/macroblock.c
encoder/macroblock.c
+2
-1
No files found.
encoder/analyse.c
View file @
8423fd9e
...
...
@@ -2637,9 +2637,8 @@ intra_analysis:
h
->
mb
.
i_partition
=
D_16x16
;
assert
(
h
->
mb
.
cache
.
pskip_mv
[
1
]
<=
h
->
mb
.
mv_max_spel
[
1
]
||
h
->
i_thread_frames
==
1
);
/* Set up MVs for future predictors */
if
(
b_skip
)
for
(
int
i
=
0
;
i
<
h
->
mb
.
pic
.
i_fref
[
0
];
i
++
)
M32
(
h
->
mb
.
mvr
[
0
][
i
][
h
->
mb
.
i_mb_xy
]
)
=
0
;
for
(
int
i
=
0
;
i
<
h
->
mb
.
pic
.
i_fref
[
0
];
i
++
)
M32
(
h
->
mb
.
mvr
[
0
][
i
][
h
->
mb
.
i_mb_xy
]
)
=
0
;
}
else
{
...
...
encoder/macroblock.c
View file @
8423fd9e
...
...
@@ -331,7 +331,8 @@ void x264_mb_encode_8x8_chroma( x264_t *h, int b_inter, int i_qp )
{
int
thresh
=
(
x264_lambda2_tab
[
i_qp
]
+
32
)
>>
6
;
int
ssd
[
2
];
int
score
=
h
->
pixf
.
var2_8x8
(
h
->
mb
.
pic
.
p_fenc
[
1
],
FENC_STRIDE
,
h
->
mb
.
pic
.
p_fdec
[
1
],
FDEC_STRIDE
,
&
ssd
[
0
]
);
int
score
=
h
->
pixf
.
var2_8x8
(
h
->
mb
.
pic
.
p_fenc
[
1
],
FENC_STRIDE
,
h
->
mb
.
pic
.
p_fdec
[
1
],
FDEC_STRIDE
,
&
ssd
[
0
]
);
if
(
score
<
thresh
*
4
)
score
+=
h
->
pixf
.
var2_8x8
(
h
->
mb
.
pic
.
p_fenc
[
2
],
FENC_STRIDE
,
h
->
mb
.
pic
.
p_fdec
[
2
],
FDEC_STRIDE
,
&
ssd
[
1
]
);
if
(
score
<
thresh
*
4
)
{
...
...
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