FFmpeg
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 
33  DV_SECT_VAUX = 0x56,
34  DV_SECT_AUDIO = 0x76,
35  DV_SECT_VIDEO = 0x96,
36 };
37 
38 enum DVPackType {
39  DV_HEADER525 = 0x3f, /* see dv_write_pack for important details on */
40  DV_HEADER625 = 0xbf, /* these two packs */
41  DV_TIMECODE = 0x13,
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 /**
64  * maximum number of blocks per macroblock in any DV format
65  */
66 #define DV_MAX_BPM 8
67 
68 #endif /* AVCODEC_DV_H */
DV_AUDIO_CONTROL
@ DV_AUDIO_CONTROL
Definition: dv.h:43
DV_VIDEO_SOURCE
@ DV_VIDEO_SOURCE
Definition: dv.h:46
DV_SECT_AUDIO
@ DV_SECT_AUDIO
Definition: dv.h:34
DV_HEADER525
@ DV_HEADER525
Definition: dv.h:39
DVPackType
DVPackType
Definition: dv.h:38
DVSectionType
DVSectionType
Definition: dv.h:30
DV_VIDEO_CONTROL
@ DV_VIDEO_CONTROL
Definition: dv.h:47
DV_AUDIO_RECDATE
@ DV_AUDIO_RECDATE
Definition: dv.h:44
DV_SECT_SUBCODE
@ DV_SECT_SUBCODE
Definition: dv.h:32
DV_TIMECODE
@ DV_TIMECODE
Definition: dv.h:41
DV_SECT_VIDEO
@ DV_SECT_VIDEO
Definition: dv.h:35
DV_HEADER625
@ DV_HEADER625
Definition: dv.h:40
DV_AUDIO_SOURCE
@ DV_AUDIO_SOURCE
Definition: dv.h:42
DV_VIDEO_RECTIME
@ DV_VIDEO_RECTIME
Definition: dv.h:49
DV_SECT_HEADER
@ DV_SECT_HEADER
Definition: dv.h:31
DV_SECT_VAUX
@ DV_SECT_VAUX
Definition: dv.h:33
DV_UNKNOWN_PACK
@ DV_UNKNOWN_PACK
Definition: dv.h:50
DV_VIDEO_RECDATE
@ DV_VIDEO_RECDATE
Definition: dv.h:48
DV_AUDIO_RECTIME
@ DV_AUDIO_RECTIME
Definition: dv.h:45