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
53a11135
Commit
53a11135
authored
Jul 27, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: simplify splitting the transform tree blocks
parent
e36a2f4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
hevc.c
libavcodec/hevc.c
+17
-22
No files found.
libavcodec/hevc.c
View file @
53a11135
...
...
@@ -1392,29 +1392,24 @@ static int hls_transform_tree(HEVCContext *s, int x0, int y0,
}
if
(
split_transform_flag
)
{
int
x1
=
x0
+
((
1
<<
log2_trafo_size
)
>>
1
);
int
y1
=
y0
+
((
1
<<
log2_trafo_size
)
>>
1
);
const
int
trafo_size_split
=
1
<<
(
log2_trafo_size
-
1
);
const
int
x1
=
x0
+
trafo_size_split
;
const
int
y1
=
y0
+
trafo_size_split
;
#define SUBDIVIDE(x, y, idx) \
do { \
ret = hls_transform_tree(s, x, y, x0, y0, cb_xBase, cb_yBase, log2_cb_size, \
log2_trafo_size - 1, trafo_depth + 1, idx); \
if (ret < 0) \
return ret; \
} while (0)
ret
=
hls_transform_tree
(
s
,
x0
,
y0
,
x0
,
y0
,
cb_xBase
,
cb_yBase
,
log2_cb_size
,
log2_trafo_size
-
1
,
trafo_depth
+
1
,
0
);
if
(
ret
<
0
)
return
ret
;
ret
=
hls_transform_tree
(
s
,
x1
,
y0
,
x0
,
y0
,
cb_xBase
,
cb_yBase
,
log2_cb_size
,
log2_trafo_size
-
1
,
trafo_depth
+
1
,
1
);
if
(
ret
<
0
)
return
ret
;
ret
=
hls_transform_tree
(
s
,
x0
,
y1
,
x0
,
y0
,
cb_xBase
,
cb_yBase
,
log2_cb_size
,
log2_trafo_size
-
1
,
trafo_depth
+
1
,
2
);
if
(
ret
<
0
)
return
ret
;
ret
=
hls_transform_tree
(
s
,
x1
,
y1
,
x0
,
y0
,
cb_xBase
,
cb_yBase
,
log2_cb_size
,
log2_trafo_size
-
1
,
trafo_depth
+
1
,
3
);
if
(
ret
<
0
)
return
ret
;
SUBDIVIDE
(
x0
,
y0
,
0
);
SUBDIVIDE
(
x1
,
y0
,
1
);
SUBDIVIDE
(
x0
,
y1
,
2
);
SUBDIVIDE
(
x1
,
y1
,
3
);
#undef SUBDIVIDE
}
else
{
int
min_tu_size
=
1
<<
s
->
sps
->
log2_min_tb_size
;
int
log2_min_tu_size
=
s
->
sps
->
log2_min_tb_size
;
...
...
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