1 /*
2 * This file is part of Libav.
3 *
4 * Libav is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * Libav is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with Libav; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #ifndef AVCODEC_DV_PROFILE_H
20 #define AVCODEC_DV_PROFILE_H
21
22 #include <stdint.h>
23
27
28 /* minimum number of bytes to read from a DV stream in order to
29 determine the profile */
30 #define DV_PROFILE_BYTES (6*80) /* 6 DIF blocks */
31
36
37 /*
38 * DVprofile is used to express the differences between various
39 * DV flavors. For now it's primarily used for differentiating
40 * 525/60 and 625/50, but the plans are to use it for various
41 * DV specs as well (e.g. SMPTE314M vs. IEC 61834).
42 */
44 int dsf;
/* value of the dsf in the DV header */
48 int n_difchan;
/* number of DIF channels per frame */
51 int height;
/* picture height in pixels */
52 int width;
/* picture width in pixels */
57 int bpm;
/* blocks per macroblock */
61 /* for 48kHz, 44.1kHz and 32kHz */
63 /* in each frame in a 5 frames window */
66
72
73 /**
74 * Print all allowed DV profiles into logctx at specified logging level.
75 */
77
78 #endif /* AVCODEC_DV_PROFILE_H */