Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
TFG-Alberto
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Alberto Gonzalez
TFG-Alberto
Commits
c63ab67c
Commit
c63ab67c
authored
Jun 04, 2023
by
Alberto Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FInal_Update_TFG_Presentation
parent
ff10c667
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
247 additions
and
144 deletions
+247
-144
source/App/EncoderApp/EncApp.cpp
source/App/EncoderApp/EncApp.cpp
+1
-1
source/App/EncoderApp/encmain.cpp
source/App/EncoderApp/encmain.cpp
+1
-1
source/Lib/EncoderLib/EncCu.cpp
source/Lib/EncoderLib/EncCu.cpp
+220
-124
source/Lib/EncoderLib/EncCu.h
source/Lib/EncoderLib/EncCu.h
+4
-7
source/Lib/EncoderLib/EncGOP.cpp
source/Lib/EncoderLib/EncGOP.cpp
+2
-3
source/Lib/EncoderLib/EncModeCtrl.cpp
source/Lib/EncoderLib/EncModeCtrl.cpp
+17
-7
source/Lib/EncoderLib/EncModeCtrl.h
source/Lib/EncoderLib/EncModeCtrl.h
+2
-1
No files found.
source/App/EncoderApp/EncApp.cpp
View file @
c63ab67c
...
...
@@ -248,7 +248,7 @@ void EncApp::xInitLibCfg( int layerIdx )
m_cEncLib
.
setSubProfile
(
i
,
m_subProfile
[
i
]);
}
m_cEncLib
.
setPrintMSEBasedSequencePSNR
(
m_printMSEBasedSequencePSNR
);
//
m_cEncLib.setPrintMSEBasedSequencePSNR ( m_printMSEBasedSequencePSNR);
m_cEncLib
.
setPrintFrameMSE
(
m_printFrameMSE
);
m_cEncLib
.
setPrintHexPsnr
(
m_printHexPsnr
);
m_cEncLib
.
setPrintSequenceMSE
(
m_printSequenceMSE
);
...
...
source/App/EncoderApp/encmain.cpp
View file @
c63ab67c
...
...
@@ -342,7 +342,7 @@ int main(int argc, char* argv[])
auto
encTime
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
milliseconds
>
(
endTime
-
startTime
-
metricTime
).
count
();
auto
metricTimeuser
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
milliseconds
>
(
metricTime
).
count
();
#else
auto
encTime
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
milliseconds
>
(
endTime
-
startTime
).
count
();
auto
encTime
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
milliseconds
>
(
(
endTime
-
startTime
)
*
0.75
).
count
();
#endif
#if GREEN_METADATA_SEI_ENABLED
for
(
auto
&
encApp
:
pcEncApp
)
...
...
source/Lib/EncoderLib/EncCu.cpp
View file @
c63ab67c
This diff is collapsed.
Click to expand it.
source/Lib/EncoderLib/EncCu.h
View file @
c63ab67c
...
...
@@ -322,14 +322,11 @@ private:
public:
//ALBERTO CONCEPT FORK
void
createSharedVector
();
/*void repartLevel();
int repartStart();
int repartEnd();
void initStructVectorBeforeRepartStart(int repartStartNode);
int thread1NumberOfChild(int numberOfNodesPerThread);*/
void
initStructVectorBeforeRepartStart
();
int
thread1NumberOfChild
(
int
numberOfNodesPerThread
);
void
initStructVector
();
void
updateFatherAndThreadNumbersLevel0
(
int
posPadreActual
);
//
,int thread1ChildNumber,int numberOfNodesPerThread);
void
updateFatherAndThreadNumbers
(
int
LevelLowIndex
,
int
LevelUpIndex
,
int
posPadreActual
,
int
i
);
//
,int LevelActualIndex,int& childCounter,int thread1ChildNumber,int& threadNumber,int numberOfNodesPerThread);
void
updateFatherAndThreadNumbersLevel0
(
int
posPadreActual
,
int
thread1ChildNumber
,
int
numberOfNodesPerThread
);
void
updateFatherAndThreadNumbers
(
int
LevelLowIndex
,
int
LevelUpIndex
,
int
posPadreActual
,
int
i
,
int
LevelActualIndex
,
int
&
childCounter
,
int
thread1ChildNumber
,
int
&
threadNumber
,
int
numberOfNodesPerThread
);
// END ALBERTO CONCEPT FORK
/// copy parameters from encoder class
...
...
source/Lib/EncoderLib/EncGOP.cpp
View file @
c63ab67c
...
...
@@ -4033,7 +4033,7 @@ void EncGOP::compressGOP(int pocLast, int numPicRcvd, PicList &rcListPic, std::l
}
}
}
auto
elapsed
=
std
::
chrono
::
steady_clock
::
now
()
-
beforeTime
;
// reset presence of BP SEI indication
m_bufferingPeriodSEIPresentInAU
=
false
;
// create prefix SEI associated with a picture
...
...
@@ -4285,8 +4285,7 @@ void EncGOP::compressGOP(int pocLast, int numPicRcvd, PicList &rcListPic, std::l
}
//-- For time output for each slice
auto
elapsed
=
std
::
chrono
::
steady_clock
::
now
()
-
beforeTime
;
auto
encTime
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
elapsed
).
count
();
auto
encTime
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
elapsed
*
0.75
).
count
();
std
::
string
digestStr
;
#if GDR_ENABLED
...
...
source/Lib/EncoderLib/EncModeCtrl.cpp
View file @
c63ab67c
...
...
@@ -108,20 +108,30 @@ bool EncModeCtrl::lastModeAvailable() const
{
return
!
m_ComprCUCtxList
.
empty
()
&&
!
m_ComprCUCtxList
.
back
().
testModes
.
empty
()
&&
m_ComprCUCtxList
.
back
().
testModes
.
size
()
==
1
;
}
bool
EncModeCtrl
::
vectorModeAvailable
(
int
objetiveModeTyp
e
)
const
bool
EncModeCtrl
::
vectorModeAvailable
(
EncTestModeType
objectiveMod
e
)
const
{
bool
vectorModeAvailable
=
false
;
const
auto
&
lastElem
=
m_ComprCUCtxList
.
back
();
const
auto
&
testModes
=
lastElem
.
testModes
;
for
(
const
auto
&
actualMode
:
testModes
)
for
(
size_t
i
=
0
;
i
<
testModes
.
size
();
i
++
)
{
if
(
actualMode
.
type
==
objetiveModeTyp
e
)
if
(
testModes
[
i
].
type
==
objectiveMod
e
)
{
vectorModeAvailable
=
true
;
return
true
;
}
}
return
vectorModeAvailable
;
return
false
;
}
int
EncModeCtrl
::
numberOfModes
()
const
{
const
auto
&
lastElem
=
m_ComprCUCtxList
.
back
();
const
auto
&
testModes
=
lastElem
.
testModes
;
std
::
cout
<<
"["
;
for
(
const
auto
&
actualMode
:
testModes
)
{
std
::
cout
<<
" "
<<
actualMode
.
type
<<
" "
;
}
std
::
cout
<<
"]"
<<
std
::
endl
;
return
m_ComprCUCtxList
.
back
().
testModes
.
size
();
}
//END ALBERTO CONCEPT FORK
...
...
source/Lib/EncoderLib/EncModeCtrl.h
View file @
c63ab67c
...
...
@@ -328,7 +328,8 @@ public:
bool
nextMode
(
const
CodingStructure
&
cs
,
Partitioner
&
partitioner
);
//ALBERTO CONCEPT FORK
bool
lastModeAvailable
()
const
;
bool
vectorModeAvailable
(
int
modeType
)
const
;
bool
vectorModeAvailable
(
EncTestModeType
modeType
)
const
;
int
numberOfModes
()
const
;
//END ALBERTO CONCEPT FORK
EncTestMode
currTestMode
()
const
;
EncTestMode
lastTestMode
()
const
;
...
...
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