Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MomentaMedia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
景炳强
MomentaMedia
Commits
94cac13f
Commit
94cac13f
authored
Jan 09, 2023
by
景炳强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setting output display mode
parent
19cca262
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
MomentaMedia/src/BlackMagicDesign/DeckLinkOutputDevice.cpp
+7
-6
No files found.
MomentaMedia/src/BlackMagicDesign/DeckLinkOutputDevice.cpp
View file @
94cac13f
...
@@ -141,17 +141,13 @@ bool DeckLinkOutputDevice::StartPlayback(BMDDisplayMode displayMode, bool enable
...
@@ -141,17 +141,13 @@ bool DeckLinkOutputDevice::StartPlayback(BMDDisplayMode displayMode, bool enable
outputDisplayMode
=
bmdModeHD1080i50
;
outputDisplayMode
=
bmdModeHD1080i50
;
break
;
break
;
default
:
default
:
outputDisplayMode
=
displayMode
;
outputDisplayMode
=
bmdModeHD1080p25
;
break
;
break
;
}
}
#else
#else
outputDisplayMode
=
BMDDisplayMode
::
bmdModeHD720p50
;
outputDisplayMode
=
BMDDisplayMode
::
bmdModeHD720p50
;
#endif
#endif
#if USE_4K
outputDisplayMode
=
bmdModeHD1080p25
;
#endif
// Pass through RP188 timecode and VANC from input frame. VITC timecode is forwarded with VANC
// Pass through RP188 timecode and VANC from input frame. VITC timecode is forwarded with VANC
BMDVideoOutputFlags
outputFlags
=
(
BMDVideoOutputFlags
)(
bmdVideoOutputRP188
|
bmdVideoOutputVANC
);
BMDVideoOutputFlags
outputFlags
=
(
BMDVideoOutputFlags
)(
bmdVideoOutputRP188
|
bmdVideoOutputVANC
);
...
@@ -173,6 +169,11 @@ bool DeckLinkOutputDevice::StartPlayback(BMDDisplayMode displayMode, bool enable
...
@@ -173,6 +169,11 @@ bool DeckLinkOutputDevice::StartPlayback(BMDDisplayMode displayMode, bool enable
return
false
;
return
false
;
}
}
if
(
outputDisplayMode
==
bmdModeHD1080i50
)
qDebug
()
<<
"output display HD1080i50"
;
else
if
(
outputDisplayMode
==
bmdModeHD1080p25
)
qDebug
()
<<
"output display HD1080p25"
;
if
(
deckLinkOutput
->
GetDisplayMode
(
outputDisplayMode
,
deckLinkDisplayMode
.
ReleaseAndGetAddressOf
())
!=
S_OK
)
if
(
deckLinkOutput
->
GetDisplayMode
(
outputDisplayMode
,
deckLinkDisplayMode
.
ReleaseAndGetAddressOf
())
!=
S_OK
)
{
{
qDebug
()
<<
"call GetDisplayMode fuc is failure"
<<
"
\n
"
;
qDebug
()
<<
"call GetDisplayMode fuc is failure"
<<
"
\n
"
;
...
@@ -409,7 +410,7 @@ bool DeckLinkOutputDevice::getReferenceSignalMode(BMDDisplayMode* mode)
...
@@ -409,7 +410,7 @@ bool DeckLinkOutputDevice::getReferenceSignalMode(BMDDisplayMode* mode)
deltaTime
=
currTime
-
m_lastRecvTS
;
deltaTime
=
currTime
-
m_lastRecvTS
;
if
(
deltaTime
>=
1000
)
if
(
deltaTime
>=
1000
)
{
{
qDebug
()
<<
GetCurrDateTimeStr
()
<<
" decklink output fps "
<<
m_fps
<<
", qsize "
<<
qsize
<<
"
\n
"
;
//
qDebug() << GetCurrDateTimeStr() << " decklink output fps " << m_fps << ", qsize " << qsize << "\n";
m_fps
=
0
;
m_fps
=
0
;
m_lastRecvTS
=
currTime
;
m_lastRecvTS
=
currTime
;
...
...
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