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
3f46e7ba
Commit
3f46e7ba
authored
Dec 05, 2015
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/codecview: reindent after previous commit
parent
560d1e7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
vf_codecview.c
libavfilter/vf_codecview.c
+14
-14
No files found.
libavfilter/vf_codecview.c
View file @
3f46e7ba
...
...
@@ -225,22 +225,22 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
}
if
(
s
->
mv
)
{
AVFrameSideData
*
sd
=
av_frame_get_side_data
(
frame
,
AV_FRAME_DATA_MOTION_VECTORS
);
if
(
sd
)
{
int
i
;
const
AVMotionVector
*
mvs
=
(
const
AVMotionVector
*
)
sd
->
data
;
for
(
i
=
0
;
i
<
sd
->
size
/
sizeof
(
*
mvs
);
i
++
)
{
const
AVMotionVector
*
mv
=
&
mvs
[
i
];
const
int
direction
=
mv
->
source
>
0
;
if
((
direction
==
0
&&
(
s
->
mv
&
MV_P_FOR
)
&&
frame
->
pict_type
==
AV_PICTURE_TYPE_P
)
||
(
direction
==
0
&&
(
s
->
mv
&
MV_B_FOR
)
&&
frame
->
pict_type
==
AV_PICTURE_TYPE_B
)
||
(
direction
==
1
&&
(
s
->
mv
&
MV_B_BACK
)
&&
frame
->
pict_type
==
AV_PICTURE_TYPE_B
))
draw_arrow
(
frame
->
data
[
0
],
mv
->
dst_x
,
mv
->
dst_y
,
mv
->
src_x
,
mv
->
src_y
,
frame
->
width
,
frame
->
height
,
frame
->
linesize
[
0
],
100
,
0
,
mv
->
source
>
0
);
AVFrameSideData
*
sd
=
av_frame_get_side_data
(
frame
,
AV_FRAME_DATA_MOTION_VECTORS
);
if
(
sd
)
{
int
i
;
const
AVMotionVector
*
mvs
=
(
const
AVMotionVector
*
)
sd
->
data
;
for
(
i
=
0
;
i
<
sd
->
size
/
sizeof
(
*
mvs
);
i
++
)
{
const
AVMotionVector
*
mv
=
&
mvs
[
i
];
const
int
direction
=
mv
->
source
>
0
;
if
((
direction
==
0
&&
(
s
->
mv
&
MV_P_FOR
)
&&
frame
->
pict_type
==
AV_PICTURE_TYPE_P
)
||
(
direction
==
0
&&
(
s
->
mv
&
MV_B_FOR
)
&&
frame
->
pict_type
==
AV_PICTURE_TYPE_B
)
||
(
direction
==
1
&&
(
s
->
mv
&
MV_B_BACK
)
&&
frame
->
pict_type
==
AV_PICTURE_TYPE_B
))
draw_arrow
(
frame
->
data
[
0
],
mv
->
dst_x
,
mv
->
dst_y
,
mv
->
src_x
,
mv
->
src_y
,
frame
->
width
,
frame
->
height
,
frame
->
linesize
[
0
],
100
,
0
,
mv
->
source
>
0
);
}
}
}
}
return
ff_filter_frame
(
outlink
,
frame
);
}
...
...
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