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
0ac82eed
Commit
0ac82eed
authored
Oct 12, 2018
by
Josh de Kock
Committed by
Kieran Kunhya
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_showinfo: support displaying S12M timecode sidedata
parent
76a8c3b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vf_showinfo.c
libavfilter/vf_showinfo.c
+10
-0
No files found.
libavfilter/vf_showinfo.c
View file @
0ac82eed
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include "libavutil/spherical.h"
#include "libavutil/spherical.h"
#include "libavutil/stereo3d.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timestamp.h"
#include "libavutil/timestamp.h"
#include "libavutil/timecode.h"
#include "avfilter.h"
#include "avfilter.h"
#include "internal.h"
#include "internal.h"
...
@@ -174,6 +175,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
...
@@ -174,6 +175,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
case
AV_FRAME_DATA_STEREO3D
:
case
AV_FRAME_DATA_STEREO3D
:
dump_stereo3d
(
ctx
,
sd
);
dump_stereo3d
(
ctx
,
sd
);
break
;
break
;
case
AV_FRAME_DATA_S12M_TIMECODE
:
{
uint32_t
*
tc
=
(
uint32_t
*
)
sd
->
data
;
for
(
int
j
=
1
;
j
<
tc
[
0
];
j
++
)
{
char
tcbuf
[
AV_TIMECODE_STR_SIZE
];
av_timecode_make_smpte_tc_string
(
tcbuf
,
tc
[
j
],
0
);
av_log
(
ctx
,
AV_LOG_INFO
,
"timecode - %s%s"
,
tcbuf
,
j
!=
tc
[
0
]
-
1
?
", "
:
""
);
}
break
;
}
case
AV_FRAME_DATA_DISPLAYMATRIX
:
case
AV_FRAME_DATA_DISPLAYMATRIX
:
av_log
(
ctx
,
AV_LOG_INFO
,
"displaymatrix: rotation of %.2f degrees"
,
av_log
(
ctx
,
AV_LOG_INFO
,
"displaymatrix: rotation of %.2f degrees"
,
av_display_rotation_get
((
int32_t
*
)
sd
->
data
));
av_display_rotation_get
((
int32_t
*
)
sd
->
data
));
...
...
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