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
0e9873a7
Commit
0e9873a7
authored
Jan 05, 2023
by
景炳强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释没用的代码
parent
63058103
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
24 deletions
+24
-24
MomentaMedia/MomentaMedia.log
+0
-0
MomentaMedia/src/BlackMagicDesign/DeckLinkInputPage.cpp
+1
-1
MomentaMedia/src/BlackMagicDesign/DeckLinkOpenGLWidget.cpp
+1
-1
MomentaMedia/src/BlackMagicDesign/DeckLinkOutputDevice.cpp
+4
-4
MomentaMedia/src/MomentaMedia.cpp
+18
-18
No files found.
MomentaMedia/MomentaMedia.log
View file @
0e9873a7
This source diff could not be displayed because it is too large. You can
view the blob
instead.
MomentaMedia/src/BlackMagicDesign/DeckLinkInputPage.cpp
View file @
0e9873a7
...
...
@@ -75,7 +75,7 @@ DeckLinkInputPage::DeckLinkInputPage() : SelectedDevice(nullptr), NDIOutput(null
PrewCheckBox
=
new
QCheckBox
();
PrewCheckBox
->
setChecked
(
false
);
PrewCheckBox
->
setMinimumWidth
(
kComboMinimumWidth
);
FormLayout
->
addRow
(
"Preview:"
,
PrewCheckBox
);
FormLayout
->
addRow
(
QString
::
fromWCharArray
(
L"Ԥ"
)
,
PrewCheckBox
);
PrewState
=
PrewCheckBox
->
isChecked
();
PreviewView
=
new
DeckLinkOpenGLWidget
(
PrewState
,
dynamic_cast
<
QWidget
*>
(
this
));
...
...
MomentaMedia/src/BlackMagicDesign/DeckLinkOpenGLWidget.cpp
View file @
0e9873a7
...
...
@@ -10,7 +10,7 @@
/// DeckLinkOpenGLOverlay
///
extern
int
PrvwFlag
;
//
extern int PrvwFlag;
DeckLinkOpenGLOverlayWidget
::
DeckLinkOpenGLOverlayWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
...
...
MomentaMedia/src/BlackMagicDesign/DeckLinkOutputDevice.cpp
View file @
0e9873a7
...
...
@@ -5,10 +5,10 @@
#include "BlackMagicDesign/ScreenPreviewCallback.h"
#include "BlackMagicDesign/ReferenceTime.h"
extern
int
OutputDeleyTime
;
//
extern int OutputDeleyTime;
extern
int
OutputPlayMode
;
extern
int
AudioChannel
;
extern
std
::
map
<
qint32
,
qint32
>
map_output_delay
;
//
extern std::map<qint32, qint32> map_output_delay;
#define OUTPUT_1080 1
#define AUDIOMAXSIZE (OutputDeleyTime + 3) * 50
...
...
@@ -568,7 +568,7 @@ void DeckLinkOutputDevice::AddAudioFrame(std::shared_ptr<AudioPacket> audio_pack
void
DeckLinkOutputDevice
::
InitResource
()
{
if
(
deckLink
)
/*
if (deckLink)
{
dlstring_t displayName;
QString deviceName;
...
...
@@ -597,7 +597,7 @@ void DeckLinkOutputDevice::InitResource()
audio_max_size = (output_deley_ms / 1000 + 3) * 50;
}
}
}
}
*/
}
void
DeckLinkOutputDevice
::
SetDeleyTime
(
qint32
&
deleyTime
)
...
...
MomentaMedia/src/MomentaMedia.cpp
View file @
0e9873a7
...
...
@@ -12,16 +12,16 @@
#include "DeckLinkAPI.h"
int
OutputDeleyTime
=
5
;
//
int OutputDeleyTime = 5;
int
FrontDeleyTime
=
1
;
int
FrameRate
=
50
;
int
PrvwFlag
=
0
;
//
int PrvwFlag = 0;
int
OutputPlayMode
=
0
;
int
BlackBottomHeight
=
240
;
//
int BlackBottomHeight = 240;
int
AudioChannel
=
2
;
int
ScaleMode
=
0
;
qint64
StartTimeStamp
=
0
;
std
::
map
<
qint32
,
qint32
>
map_output_delay
;
//
std::map<qint32, qint32> map_output_delay;
std
::
map
<
qint32
,
qint32
>
map_scale_mode
;
int
main_ver
=
1
;
...
...
@@ -610,34 +610,34 @@ void MomentaMedia::ReadSettings()
QString
ini_path
=
exe_dir
+
"/settings.ini"
;
QSettings
settings
(
ini_path
,
QSettings
::
IniFormat
);
settings
.
beginGroup
(
"DELEYTIME"
);
OutputDeleyTime
=
settings
.
value
(
"DELEY_TIME"
,
""
).
toInt
();
/*
OutputDeleyTime = settings.value("DELEY_TIME", "").toInt();
if (OutputDeleyTime < 1 * 1000) OutputDeleyTime = 1 * 1000;
else
if
(
OutputDeleyTime
>
20
*
1000
)
OutputDeleyTime
=
20
*
1000
;
else if (OutputDeleyTime > 20 * 1000) OutputDeleyTime = 20 * 1000;
*/
FrontDeleyTime
=
settings
.
value
(
"FRONT_DELEY_TIME"
,
""
).
toInt
();
if
(
FrontDeleyTime
<
1
||
FrontDeleyTime
>
OutputDeleyTime
)
FrontDeleyTime
=
1
;
if
(
FrontDeleyTime
<
1
)
FrontDeleyTime
=
1
;
FrameRate
=
settings
.
value
(
"FRAME_RATE"
,
""
).
toInt
();
if
(
FrameRate
<
25
)
FrameRate
=
25
;
BlackBottomHeight
=
settings
.
value
(
"BLACK_BOTTOM_HEIGHT"
).
toInt
();
/*
BlackBottomHeight = settings.value("BLACK_BOTTOM_HEIGHT").toInt();
if (BlackBottomHeight < 0) BlackBottomHeight = 0;
else
if
(
BlackBottomHeight
>
480
)
BlackBottomHeight
=
480
;
else if (BlackBottomHeight > 480) BlackBottomHeight = 480;
*/
AudioChannel
=
settings
.
value
(
"AUDIO_CHANNEL"
).
toInt
();
if
(
AudioChannel
<=
0
||
AudioChannel
>
20
)
AudioChannel
=
2
;
PrvwFlag
=
settings
.
value
(
"PRVW_FLAG"
,
""
).
toInt
();
//
PrvwFlag = settings.value("PRVW_FLAG", "").toInt();
OutputPlayMode
=
settings
.
value
(
"OUTPUT_PLAY_MODE"
,
""
).
toInt
();
for
(
int
i
=
1
;
i
<=
4
;
i
++
)
{
std
::
string
key
=
"DELEY_TIME_"
+
std
::
to_string
(
i
);
int
value
=
settings
.
value
(
QString
::
fromStdString
(
key
),
""
).
toInt
();
if
(
value
<
1
*
1000
)
value
=
1
*
1000
;
//else if (value > 60 * 1000) value = 60 * 1000;
map_output_delay
[
i
]
=
value
;
}
//
for(int i = 1;i <= 4;i++)
//
{
//
std::string key = "DELEY_TIME_" + std::to_string(i);
//
int value = settings.value(QString::fromStdString(key), "").toInt();
//
if (value < 1 * 1000) value = 1 * 1000;
//
//else if (value > 60 * 1000) value = 60 * 1000;
//
map_output_delay[i] = value;
//
}
ScaleMode
=
settings
.
value
(
"SCALE_MODE"
,
""
).
toInt
();
if
(
ScaleMode
<
0
)
ScaleMode
=
0
;
...
...
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