/[cvs]/api/include/dv.h
ViewVC logotype

Annotation of /api/include/dv.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Sun Jul 1 20:47:59 2001 UTC (23 years, 4 months ago) by bearsoft
Branch: lazy, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 bearsoft 1.1 //------------------------------------------------------------------------------
2     // File: DV.h
3     //
4     // Desc: DV typedefs and defines.
5     //
6     // Copyright (c) 1997 - 2000, Microsoft Corporation. All rights reserved.
7     //------------------------------------------------------------------------------
8    
9    
10     #ifndef _DV_H_
11     #define _DV_H_
12    
13     #define DV_DVSD_NTSC_FRAMESIZE 120000L
14     #define DV_DVSD_PAL_FRAMESIZE 144000L
15    
16     #define DV_SMCHN 0x0000e000
17     #define DV_AUDIOMODE 0x00000f00
18     #define DV_AUDIOSMP 0x38000000
19    
20     #define DV_AUDIOQU 0x07000000
21     #define DV_NTSCPAL 0x00200000
22     #define DV_STYPE 0x001f0000
23    
24    
25     //There are NTSC or PAL DV camcorders
26     #define DV_NTSC 0
27     #define DV_PAL 1
28     //DV camcorder can output sd/hd/sl
29     #define DV_SD 0x00
30     #define DV_HD 0x01
31     #define DV_SL 0x02
32     //user can choice 12 bits or 16 bits audio from DV camcorder
33     #define DV_CAP_AUD16Bits 0x00
34     #define DV_CAP_AUD12Bits 0x01
35    
36     #define SIZE_DVINFO 0x20
37    
38     typedef struct Tag_DVAudInfo
39     {
40     BYTE bAudStyle[2];
41     //LSB 6 bits for starting DIF sequence number
42     //MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences
43     //example: 0x00: mon, audio in first 5/6 DIF sequence
44     // 0x05: mon, audio in 2nd 5 DIF sequence
45     // 0x15: stereo, audio only in 2nd 5 DIF sequence
46     // 0x10: stereo, audio only in 1st 5/6 DIF sequence
47     // 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence
48     // 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence
49     BYTE bAudQu[2]; //qbits, only support 12, 16,
50    
51     BYTE bNumAudPin; //how many pin(language)
52     WORD wAvgSamplesPerPinPerFrm[2]; //samples size for one audio pin in one frame(which has 10 or 12 DIF sequence)
53     WORD wBlkMode; //45 for NTSC, 54 for PAL
54     WORD wDIFMode; //5 for NTSC, 6 for PAL
55     WORD wBlkDiv; //15 for NTSC, 18 for PAL
56     } DVAudInfo;
57    
58     #endif // _DV_H_

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26