FFmpeg
Loading...
Searching...
No Matches
dv.h
Go to the documentation of this file.
1/*
2 * Constants for DV codec
3 * Copyright (c) 2002 Fabrice Bellard
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 * Constants for DV codec.
25 */
26
27#ifndef AVCODEC_DV_H
28#define AVCODEC_DV_H
29
37
39 DV_HEADER525 = 0x3f, /* see dv_write_pack for important details on */
40 DV_HEADER625 = 0xbf, /* these two packs */
51};
52
53#define DV_PROFILE_IS_HD(p) ((p)->video_stype & 0x10)
54#define DV_PROFILE_IS_1080i50(p) (((p)->video_stype == 0x14) && ((p)->dsf == 1))
55#define DV_PROFILE_IS_1080i60(p) (((p)->video_stype == 0x14) && ((p)->dsf == 0))
56#define DV_PROFILE_IS_720p50(p) (((p)->video_stype == 0x18) && ((p)->dsf == 1))
57
58/**
59 * largest possible DV frame, in bytes (1080i50)
60 */
61#define DV_MAX_FRAME_SIZE 576000
62
63// LCM of video framerate numerators
64#define DV_TIMESCALE_VIDEO 60000
65
66// LCM of audio sample rates
67#define DV_TIMESCALE_AUDIO 14112000
68
69/**
70 * maximum number of blocks per macroblock in any DV format
71 */
72#define DV_MAX_BPM 8
73
74#endif /* AVCODEC_DV_H */
DVPackType
Definition dv.h:38
@ DV_AUDIO_RECTIME
Definition dv.h:45
@ DV_VIDEO_RECDATE
Definition dv.h:48
@ DV_AUDIO_RECDATE
Definition dv.h:44
@ DV_VIDEO_CONTROL
Definition dv.h:47
@ DV_UNKNOWN_PACK
Definition dv.h:50
@ DV_HEADER625
Definition dv.h:40
@ DV_AUDIO_CONTROL
Definition dv.h:43
@ DV_VIDEO_SOURCE
Definition dv.h:46
@ DV_HEADER525
Definition dv.h:39
@ DV_TIMECODE
Definition dv.h:41
@ DV_VIDEO_RECTIME
Definition dv.h:49
@ DV_AUDIO_SOURCE
Definition dv.h:42
DVSectionType
Definition dv.h:30
@ DV_SECT_SUBCODE
Definition dv.h:32
@ DV_SECT_VIDEO
Definition dv.h:35
@ DV_SECT_AUDIO
Definition dv.h:34
@ DV_SECT_HEADER
Definition dv.h:31
@ DV_SECT_VAUX
Definition dv.h:33