FFmpeg
timecode_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2006 Smartjog S.A.S, Baptiste Coudurier <baptiste.coudurier@gmail.com>
3  * Copyright (c) 2011-2012 Smartjog S.A.S, Clément Bœsch <clement.boesch@smartjog.com>
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 /**
23  * @file
24  * Timecode helpers header
25  */
26 
27 #ifndef AVUTIL_TIMECODE_INTERNAL_H
28 #define AVUTIL_TIMECODE_INTERNAL_H
29 
30 #include <stdint.h>
31 #include "rational.h"
32 
33 /**
34  * Convert SMPTE 12M binary representation to sei info.
35  *
36  * @param drop drop flag output
37  * @param hh hour output
38  * @param mm minute output
39  * @param ss second output
40  * @param ff frame number output
41  * @param rate frame rate of the timecode
42  * @param tcsmpte the 32-bit SMPTE timecode
43  * @param prevent_df prevent the use of a drop flag when it is known the DF bit
44  * is arbitrary
45  * @param skip_field prevent the use of a field flag when it is known the field
46  * bit is arbitrary (e.g. because it is used as PC flag)
47  */
48 void ff_timecode_set_smpte(unsigned *drop, unsigned *hh, unsigned *mm, unsigned *ss, unsigned *ff,
49  AVRational rate, uint32_t tcsmpte, int prevent_df, int skip_field);
50 
51 #endif /* AVUTIL_TIMECODE_INTERNAL_H */
ff_timecode_set_smpte
void ff_timecode_set_smpte(unsigned *drop, unsigned *hh, unsigned *mm, unsigned *ss, unsigned *ff, AVRational rate, uint32_t tcsmpte, int prevent_df, int skip_field)
Convert SMPTE 12M binary representation to sei info.
Definition: timecode_internal.c:33
rational.h
ss
#define ss(width, name, subs,...)
Definition: cbs_vp9.c:202
AVRational
Rational number (pair of numerator and denominator).
Definition: rational.h:58