Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
dfc561a3
Commit
dfc561a3
authored
Oct 13, 2016
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/decklink_dec: fix indentation
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
2f3015c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
decklink_dec.cpp
libavdevice/decklink_dec.cpp
+11
-11
No files found.
libavdevice/decklink_dec.cpp
View file @
dfc561a3
...
...
@@ -310,17 +310,17 @@ HRESULT decklink_input_callback::VideoInputFrameArrived(
if
(
videoFrame
->
GetFlags
()
&
bmdFrameHasNoInputSource
)
{
if
(
ctx
->
draw_bars
&&
videoFrame
->
GetPixelFormat
()
==
bmdFormat8BitYUV
)
{
unsigned
bars
[
8
]
=
{
0xEA80EA80
,
0xD292D210
,
0xA910A9A5
,
0x90229035
,
0x6ADD6ACA
,
0x51EF515A
,
0x286D28EF
,
0x10801080
};
int
width
=
videoFrame
->
GetWidth
();
int
height
=
videoFrame
->
GetHeight
();
unsigned
*
p
=
(
unsigned
*
)
frameBytes
;
for
(
int
y
=
0
;
y
<
height
;
y
++
)
{
for
(
int
x
=
0
;
x
<
width
;
x
+=
2
)
*
p
++
=
bars
[(
x
*
8
)
/
width
];
}
unsigned
bars
[
8
]
=
{
0xEA80EA80
,
0xD292D210
,
0xA910A9A5
,
0x90229035
,
0x6ADD6ACA
,
0x51EF515A
,
0x286D28EF
,
0x10801080
};
int
width
=
videoFrame
->
GetWidth
();
int
height
=
videoFrame
->
GetHeight
();
unsigned
*
p
=
(
unsigned
*
)
frameBytes
;
for
(
int
y
=
0
;
y
<
height
;
y
++
)
{
for
(
int
x
=
0
;
x
<
width
;
x
+=
2
)
*
p
++
=
bars
[(
x
*
8
)
/
width
];
}
}
if
(
!
no_video
)
{
...
...
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