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
4961be95
Commit
4961be95
authored
5 years ago
by
Vadim Seregin
Browse files
Options
Downloads
Patches
Plain Diff
static bitstream
parent
9b93350c
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/App/EncoderApp/EncApp.cpp
+14
-4
14 additions, 4 deletions
source/App/EncoderApp/EncApp.cpp
source/App/EncoderApp/EncApp.h
+4
-0
4 additions, 0 deletions
source/App/EncoderApp/EncApp.h
with
18 additions
and
4 deletions
source/App/EncoderApp/EncApp.cpp
+
14
−
4
View file @
4961be95
...
@@ -57,6 +57,10 @@ using namespace std;
...
@@ -57,6 +57,10 @@ using namespace std;
// Constructor / destructor / initialization / destroy
// Constructor / destructor / initialization / destroy
// ====================================================================================================================
// ====================================================================================================================
#if JVET_N0278_FIXES
fstream
EncApp
::
m_bitstream
;
#endif
EncApp
::
EncApp
()
EncApp
::
EncApp
()
{
{
m_iFrameRcvd
=
0
;
m_iFrameRcvd
=
0
;
...
@@ -717,10 +721,13 @@ void EncApp::createLib()
...
@@ -717,10 +721,13 @@ void EncApp::createLib()
m_ext360
=
new
TExt360AppEncTop
(
*
this
,
m_cEncLib
.
getGOPEncoder
()
->
getExt360Data
(),
*
(
m_cEncLib
.
getGOPEncoder
()
),
orgPic
);
m_ext360
=
new
TExt360AppEncTop
(
*
this
,
m_cEncLib
.
getGOPEncoder
()
->
getExt360Data
(),
*
(
m_cEncLib
.
getGOPEncoder
()
),
orgPic
);
#endif
#endif
m_bitstream
.
open
(
m_bitstreamFileName
.
c_str
(),
fstream
::
binary
|
fstream
::
out
);
if
(
!
m_bitstream
.
is_open
()
)
if
(
!
m_bitstream
)
{
{
EXIT
(
"Failed to open bitstream file "
<<
m_bitstreamFileName
.
c_str
()
<<
" for writing
\n
"
);
m_bitstream
.
open
(
m_bitstreamFileName
.
c_str
(),
fstream
::
binary
|
fstream
::
out
);
if
(
!
m_bitstream
)
{
EXIT
(
"Failed to open bitstream file "
<<
m_bitstreamFileName
.
c_str
()
<<
" for writing
\n
"
);
}
}
}
// initialize internal class & member variables
// initialize internal class & member variables
...
@@ -746,7 +753,10 @@ void EncApp::destroyLib()
...
@@ -746,7 +753,10 @@ void EncApp::destroyLib()
xDestroyLib
();
xDestroyLib
();
m_bitstream
.
close
();
if
(
m_bitstream
.
is_open
()
)
{
m_bitstream
.
close
();
}
m_orgPic
->
destroy
();
m_orgPic
->
destroy
();
m_trueOrgPic
->
destroy
();
m_trueOrgPic
->
destroy
();
...
...
This diff is collapsed.
Click to expand it.
source/App/EncoderApp/EncApp.h
+
4
−
0
View file @
4961be95
...
@@ -68,7 +68,11 @@ private:
...
@@ -68,7 +68,11 @@ private:
int
m_iFrameRcvd
;
///< number of received frames
int
m_iFrameRcvd
;
///< number of received frames
uint32_t
m_essentialBytes
;
uint32_t
m_essentialBytes
;
uint32_t
m_totalBytes
;
uint32_t
m_totalBytes
;
#if JVET_N0278_FIXES
static
fstream
m_bitstream
;
#else
fstream
m_bitstream
;
fstream
m_bitstream
;
#endif
#if JVET_O0756_CALCULATE_HDRMETRICS
#if JVET_O0756_CALCULATE_HDRMETRICS
std
::
chrono
::
duration
<
long
long
,
ratio
<
1
,
1000000000
>>
m_metricTime
;
std
::
chrono
::
duration
<
long
long
,
ratio
<
1
,
1000000000
>>
m_metricTime
;
#endif
#endif
...
...
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