Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VVCSoftware_VTM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
jvet
VVCSoftware_VTM
Commits
dab7ce3c
Commit
dab7ce3c
authored
Feb 11, 2019
by
Frederic Barbier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align ALF syntax element trace with specification
parent
673f795b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
source/Lib/DecoderLib/VLCReader.cpp
source/Lib/DecoderLib/VLCReader.cpp
+2
-2
source/Lib/EncoderLib/VLCWriter.cpp
source/Lib/EncoderLib/VLCWriter.cpp
+2
-2
No files found.
source/Lib/DecoderLib/VLCReader.cpp
View file @
dab7ce3c
...
...
@@ -2530,7 +2530,7 @@ void HLSyntaxReader::alfFilter( AlfSliceParam& alfSliceParam, const bool isChrom
// derive maxGolombIdx
AlfFilterShape
alfShape
(
isChroma
?
5
:
7
);
const
int
maxGolombIdx
=
AdaptiveLoopFilter
::
getMaxGolombIdx
(
alfShape
.
filterType
);
READ_UVLC
(
code
,
"min_golomb_order
"
);
READ_UVLC
(
code
,
isChroma
?
"alf_chroma_min_eg_order_minus1"
:
"alf_luma_min_eg_order_minus1
"
);
int
kMin
=
code
+
1
;
static
int
kMinTab
[
MAX_NUM_ALF_COEFF
];
...
...
@@ -2539,7 +2539,7 @@ void HLSyntaxReader::alfFilter( AlfSliceParam& alfSliceParam, const bool isChrom
for
(
int
idx
=
0
;
idx
<
maxGolombIdx
;
idx
++
)
{
READ_FLAG
(
code
,
"golomb
_order_increase_flag"
);
READ_FLAG
(
code
,
isChroma
?
"alf_chroma_eg_order_increase_flag"
:
"alf_luma_eg
_order_increase_flag"
);
CHECK
(
code
>
1
,
"Wrong golomb_order_increase_flag"
);
kMinTab
[
idx
]
=
kMin
+
code
;
kMin
=
kMinTab
[
idx
];
...
...
source/Lib/EncoderLib/VLCWriter.cpp
View file @
dab7ce3c
...
...
@@ -1824,13 +1824,13 @@ void HLSWriter::alfFilter( const AlfSliceParam& alfSliceParam, const bool isChro
int
kMin
=
EncAdaptiveLoopFilter
::
getGolombKMin
(
alfShape
,
numFilters
,
kMinTab
,
bitsCoeffScan
);
// Golomb parameters
WRITE_UVLC
(
kMin
-
1
,
"min_golomb_order
"
);
WRITE_UVLC
(
kMin
-
1
,
isChroma
?
"alf_chroma_min_eg_order_minus1"
:
"alf_luma_min_eg_order_minus1
"
);
for
(
int
idx
=
0
;
idx
<
maxGolombIdx
;
idx
++
)
{
bool
golombOrderIncreaseFlag
=
(
kMinTab
[
idx
]
!=
kMin
)
?
true
:
false
;
CHECK
(
!
(
kMinTab
[
idx
]
<=
kMin
+
1
),
"ALF Golomb parameter not consistent"
);
WRITE_FLAG
(
golombOrderIncreaseFlag
,
"golomb
_order_increase_flag"
);
WRITE_FLAG
(
golombOrderIncreaseFlag
,
isChroma
?
"alf_chroma_eg_order_increase_flag"
:
"alf_luma_eg
_order_increase_flag"
);
kMin
=
kMinTab
[
idx
];
}
...
...
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