Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
0ac82eed
Commit
0ac82eed
authored
6 years ago
by
Josh de Kock
Committed by
Kieran Kunhya
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
lavfi/vf_showinfo: support displaying S12M timecode sidedata
parent
76a8c3b5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/vf_showinfo.c
+10
-0
10 additions, 0 deletions
libavfilter/vf_showinfo.c
with
10 additions
and
0 deletions
libavfilter/vf_showinfo.c
+
10
−
0
View file @
0ac82eed
...
...
@@ -32,6 +32,7 @@
#include
"libavutil/spherical.h"
#include
"libavutil/stereo3d.h"
#include
"libavutil/timestamp.h"
#include
"libavutil/timecode.h"
#include
"avfilter.h"
#include
"internal.h"
...
...
@@ -174,6 +175,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
case
AV_FRAME_DATA_STEREO3D
:
dump_stereo3d
(
ctx
,
sd
);
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
:
av_log
(
ctx
,
AV_LOG_INFO
,
"displaymatrix: rotation of %.2f degrees"
,
av_display_rotation_get
((
int32_t
*
)
sd
->
data
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment