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
84c0ece5
Commit
84c0ece5
authored
Nov 16, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: further reduce code duplication in hls_prediction_unit()
parent
a7b365ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
hevc.c
libavcodec/hevc.c
+6
-12
No files found.
libavcodec/hevc.c
View file @
84c0ece5
...
...
@@ -1665,12 +1665,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
ff_hevc_luma_mv_merge_mode
(
s
,
x0
,
y0
,
nPbW
,
nPbH
,
log2_cb_size
,
partIdx
,
merge_idx
,
&
current_mv
);
x_pu
=
x0
>>
s
->
sps
->
log2_min_pu_size
;
y_pu
=
y0
>>
s
->
sps
->
log2_min_pu_size
;
for
(
j
=
0
;
j
<
nPbH
>>
s
->
sps
->
log2_min_pu_size
;
j
++
)
for
(
i
=
0
;
i
<
nPbW
>>
s
->
sps
->
log2_min_pu_size
;
i
++
)
tab_mvf
[(
y_pu
+
j
)
*
min_pu_width
+
x_pu
+
i
]
=
current_mv
;
}
else
{
enum
InterPredIdc
inter_pred_idc
=
PRED_L0
;
ff_hevc_set_neighbour_available
(
s
,
x0
,
y0
,
nPbW
,
nPbH
);
...
...
@@ -1712,14 +1706,14 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
current_mv
.
mv
[
1
].
x
+=
lc
->
pu
.
mvd
.
x
;
current_mv
.
mv
[
1
].
y
+=
lc
->
pu
.
mvd
.
y
;
}
}
x_pu
=
x0
>>
s
->
sps
->
log2_min_pu_size
;
y_pu
=
y0
>>
s
->
sps
->
log2_min_pu_size
;
x_pu
=
x0
>>
s
->
sps
->
log2_min_pu_size
;
y_pu
=
y0
>>
s
->
sps
->
log2_min_pu_size
;
for
(
j
=
0
;
j
<
nPbH
>>
s
->
sps
->
log2_min_pu_size
;
j
++
)
for
(
i
=
0
;
i
<
nPbW
>>
s
->
sps
->
log2_min_pu_size
;
i
++
)
tab_mvf
[(
y_pu
+
j
)
*
min_pu_width
+
x_pu
+
i
]
=
current_mv
;
}
for
(
j
=
0
;
j
<
nPbH
>>
s
->
sps
->
log2_min_pu_size
;
j
++
)
for
(
i
=
0
;
i
<
nPbW
>>
s
->
sps
->
log2_min_pu_size
;
i
++
)
tab_mvf
[(
y_pu
+
j
)
*
min_pu_width
+
x_pu
+
i
]
=
current_mv
;
if
(
current_mv
.
pred_flag
[
0
])
{
ref0
=
refPicList
[
0
].
ref
[
current_mv
.
ref_idx
[
0
]];
...
...
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