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>
5 * This file is part of FFmpeg.
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.
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.
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
24 * Timecode helpers header
27 #ifndef AVUTIL_TIMECODE_INTERNAL_H
28 #define AVUTIL_TIMECODE_INTERNAL_H
34 * Convert SMPTE 12M binary representation to sei info.
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
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)
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
);
51 #endif /* AVUTIL_TIMECODE_INTERNAL_H */