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
0daa2554
Commit
0daa2554
authored
Jul 27, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: do not store the transform inter_split flag in the context
It does not need to be preserved.
parent
53a11135
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
hevc.c
libavcodec/hevc.c
+6
-6
hevc.h
libavcodec/hevc.h
+0
-3
No files found.
libavcodec/hevc.c
View file @
0daa2554
...
@@ -1361,20 +1361,20 @@ static int hls_transform_tree(HEVCContext *s, int x0, int y0,
...
@@ -1361,20 +1361,20 @@ static int hls_transform_tree(HEVCContext *s, int x0, int y0,
lc
->
tt
.
cbf_luma
=
1
;
lc
->
tt
.
cbf_luma
=
1
;
lc
->
tt
.
inter_split_flag
=
s
->
sps
->
max_transform_hierarchy_depth_inter
==
0
&&
lc
->
cu
.
pred_mode
==
MODE_INTER
&&
lc
->
cu
.
part_mode
!=
PART_2Nx2N
&&
trafo_depth
==
0
;
if
(
log2_trafo_size
<=
s
->
sps
->
log2_max_trafo_size
&&
if
(
log2_trafo_size
<=
s
->
sps
->
log2_max_trafo_size
&&
log2_trafo_size
>
s
->
sps
->
log2_min_tb_size
&&
log2_trafo_size
>
s
->
sps
->
log2_min_tb_size
&&
trafo_depth
<
lc
->
cu
.
max_trafo_depth
&&
trafo_depth
<
lc
->
cu
.
max_trafo_depth
&&
!
(
lc
->
cu
.
intra_split_flag
&&
trafo_depth
==
0
))
{
!
(
lc
->
cu
.
intra_split_flag
&&
trafo_depth
==
0
))
{
split_transform_flag
=
ff_hevc_split_transform_flag_decode
(
s
,
log2_trafo_size
);
split_transform_flag
=
ff_hevc_split_transform_flag_decode
(
s
,
log2_trafo_size
);
}
else
{
}
else
{
int
inter_split
=
s
->
sps
->
max_transform_hierarchy_depth_inter
==
0
&&
lc
->
cu
.
pred_mode
==
MODE_INTER
&&
lc
->
cu
.
part_mode
!=
PART_2Nx2N
&&
trafo_depth
==
0
;
split_transform_flag
=
log2_trafo_size
>
s
->
sps
->
log2_max_trafo_size
||
split_transform_flag
=
log2_trafo_size
>
s
->
sps
->
log2_max_trafo_size
||
(
lc
->
cu
.
intra_split_flag
&&
trafo_depth
==
0
)
||
(
lc
->
cu
.
intra_split_flag
&&
trafo_depth
==
0
)
||
lc
->
tt
.
inter_split_flag
;
inter_split
;
}
}
if
(
log2_trafo_size
>
2
)
{
if
(
log2_trafo_size
>
2
)
{
...
...
libavcodec/hevc.h
View file @
0daa2554
...
@@ -650,9 +650,6 @@ typedef struct TransformTree {
...
@@ -650,9 +650,6 @@ typedef struct TransformTree {
uint8_t
cbf_cb
[
MAX_TRANSFORM_DEPTH
][
MAX_CU_SIZE
*
MAX_CU_SIZE
];
uint8_t
cbf_cb
[
MAX_TRANSFORM_DEPTH
][
MAX_CU_SIZE
*
MAX_CU_SIZE
];
uint8_t
cbf_cr
[
MAX_TRANSFORM_DEPTH
][
MAX_CU_SIZE
*
MAX_CU_SIZE
];
uint8_t
cbf_cr
[
MAX_TRANSFORM_DEPTH
][
MAX_CU_SIZE
*
MAX_CU_SIZE
];
uint8_t
cbf_luma
;
uint8_t
cbf_luma
;
// Inferred parameters
uint8_t
inter_split_flag
;
}
TransformTree
;
}
TransformTree
;
typedef
struct
TransformUnit
{
typedef
struct
TransformUnit
{
...
...
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