Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jvet
VVCSoftware_VTM
Commits
22103858
Commit
22103858
authored
Mar 24, 2019
by
Frank Bossen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'unused_var' into 'master'
remove unused global variable See merge request
!391
parents
18af4cfa
9e35b0f4
Pipeline
#1112
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
source/Lib/CommonLib/Rom.cpp
source/Lib/CommonLib/Rom.cpp
+0
-21
source/Lib/CommonLib/Rom.h
source/Lib/CommonLib/Rom.h
+0
-3
No files found.
source/Lib/CommonLib/Rom.cpp
View file @
22103858
...
...
@@ -371,8 +371,6 @@ void initROM()
gp_sizeIdxInfo
->
init
(
MAX_CU_SIZE
);
generateTrafoBlockSizeScaling
(
*
gp_sizeIdxInfo
);
SizeIndexInfoLog2
sizeInfo
;
sizeInfo
.
init
(
MAX_CU_SIZE
);
...
...
@@ -578,24 +576,6 @@ void destroyROM()
gp_sizeIdxInfo
=
nullptr
;
}
void
generateTrafoBlockSizeScaling
(
SizeIndexInfo
&
sizeIdxInfo
)
{
for
(
SizeType
y
=
0
;
y
<
sizeIdxInfo
.
numHeights
();
y
++
)
{
for
(
SizeType
x
=
0
;
x
<
sizeIdxInfo
.
numWidths
();
x
++
)
{
SizeType
h
=
sizeIdxInfo
.
sizeFrom
(
y
);
SizeType
w
=
sizeIdxInfo
.
sizeFrom
(
x
);
double
factor
=
sqrt
(
h
)
*
sqrt
(
w
)
/
(
double
)(
1
<<
((
g_aucLog2
[
h
]
+
g_aucLog2
[
w
])
/
2
));
g_BlockSizeTrafoScale
[
h
][
w
][
0
]
=
((
int
)(
factor
+
0.9
)
!=
1
)
?
(
int
)(
factor
*
(
double
)(
1
<<
ADJ_QUANT_SHIFT
))
:
1
;
g_BlockSizeTrafoScale
[
h
][
w
][
1
]
=
((
int
)(
factor
+
0.9
)
!=
1
)
?
(
int
)((
double
)(
1
<<
ADJ_DEQUANT_SHIFT
)
/
factor
+
0.5
)
:
1
;
}
}
}
// ====================================================================================================================
// Data structure related table & variable
// ====================================================================================================================
...
...
@@ -689,7 +669,6 @@ const DecisionTreeTemplate g_mtSplitDTT = compile(
// Misc.
// ====================================================================================================================
SizeIndexInfo
*
gp_sizeIdxInfo
=
NULL
;
int
g_BlockSizeTrafoScale
[
MAX_CU_SIZE
+
1
][
MAX_CU_SIZE
+
1
][
2
];
int8_t
g_aucLog2
[
MAX_CU_SIZE
+
1
];
int8_t
g_aucNextLog2
[
MAX_CU_SIZE
+
1
];
int8_t
g_aucPrevLog2
[
MAX_CU_SIZE
+
1
];
...
...
source/Lib/CommonLib/Rom.h
View file @
22103858
...
...
@@ -57,8 +57,6 @@
void
initROM
();
void
destroyROM
();
void
generateTrafoBlockSizeScaling
(
SizeIndexInfo
&
sizeIdxInfo
);
// ====================================================================================================================
// Data structure related table & variable
// ====================================================================================================================
...
...
@@ -168,7 +166,6 @@ extern const DecisionTreeTemplate g_mtSplitDTT;
// Misc.
// ====================================================================================================================
extern
SizeIndexInfo
*
gp_sizeIdxInfo
;
extern
int
g_BlockSizeTrafoScale
[
MAX_CU_SIZE
+
1
][
MAX_CU_SIZE
+
1
][
2
];
extern
int8_t
g_aucLog2
[
MAX_CU_SIZE
+
1
];
extern
int8_t
g_aucNextLog2
[
MAX_CU_SIZE
+
1
];
extern
int8_t
g_aucPrevLog2
[
MAX_CU_SIZE
+
1
];
...
...
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