Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philip Cowan
VVCSoftware_VTM
Commits
7dbf828a
Commit
7dbf828a
authored
2 years ago
by
Karsten Suehring
Browse files
Options
Downloads
Patches
Plain Diff
Fix trace when writing VLC codes
parent
8be4498e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Lib/EncoderLib/VLCWriter.cpp
+13
-7
13 additions, 7 deletions
source/Lib/EncoderLib/VLCWriter.cpp
source/Lib/EncoderLib/VLCWriter.h
+4
-0
4 additions, 0 deletions
source/Lib/EncoderLib/VLCWriter.h
with
17 additions
and
7 deletions
source/Lib/EncoderLib/VLCWriter.cpp
+
13
−
7
View file @
7dbf828a
...
...
@@ -102,11 +102,8 @@ void VLCWriter::xWriteCode( const uint32_t value, const uint32_t length, const c
#endif
}
#if ENABLE_TRACING
void
VLCWriter
::
xWriteUvlc
(
uint32_t
value
,
const
char
*
symbolName
)
#else
void
VLCWriter
::
xWriteUvlc
(
uint32_t
value
,
const
char
*
)
#endif
// write the VLC code without tracing
void
VLCWriter
::
xWriteVlc
(
uint32_t
value
)
{
uint32_t
length
=
1
;
uint32_t
temp
=
++
value
;
...
...
@@ -120,6 +117,15 @@ void VLCWriter::xWriteUvlc( uint32_t value, const char* )
// Take care of cases where length > 32
m_pcBitIf
->
write
(
0
,
length
>>
1
);
m_pcBitIf
->
write
(
value
,
(
length
+
1
)
>>
1
);
}
#if ENABLE_TRACING
void
VLCWriter
::
xWriteUvlc
(
const
uint32_t
value
,
const
char
*
symbolName
)
#else
void
VLCWriter
::
xWriteUvlc
(
const
uint32_t
value
,
const
char
*
)
#endif
{
xWriteVlc
(
value
);
#if ENABLE_TRACING
if
(
g_HLSTraceEnable
)
...
...
@@ -129,10 +135,10 @@ void VLCWriter::xWriteUvlc( uint32_t value, const char* )
#endif
}
void
VLCWriter
::
xWriteSvlc
(
int
value
,
const
char
*
symbolName
)
void
VLCWriter
::
xWriteSvlc
(
const
int
value
,
const
char
*
symbolName
)
{
uint32_t
unsigendValue
=
uint32_t
(
value
<=
0
?
(
-
value
)
<<
1
:
(
value
<<
1
)
-
1
);
xWrite
Uv
lc
(
unsigendValue
,
symbolName
);
xWrite
V
lc
(
unsigendValue
);
#if ENABLE_TRACING
if
(
g_HLSTraceEnable
)
...
...
This diff is collapsed.
Click to expand it.
source/Lib/EncoderLib/VLCWriter.h
+
4
−
0
View file @
7dbf828a
...
...
@@ -80,6 +80,10 @@ protected:
#endif
void
xWriteRbspTrailingBits
();
bool
isByteAligned
()
{
return
(
m_pcBitIf
->
getNumBitsUntilByteAligned
()
==
0
);
}
;
private
:
void
xWriteVlc
(
uint32_t
value
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment