summaryrefslogtreecommitdiffstats
path: root/sdk/dx8sdk/Include/dv.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-02 18:36:50 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-02 18:36:50 +0200
commita786dd45a4ebc6b91936b5e46d0ef0a9befc05af (patch)
treeced50966eaaf373f8733547046baf2bdc558662d /sdk/dx8sdk/Include/dv.h
parentMerge branch 'master' of https://github.com/GTAmodding/re3 into erorcun (diff)
downloadre3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.gz
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.bz2
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.lz
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.xz
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.zst
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.zip
Diffstat (limited to 'sdk/dx8sdk/Include/dv.h')
-rw-r--r--sdk/dx8sdk/Include/dv.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/sdk/dx8sdk/Include/dv.h b/sdk/dx8sdk/Include/dv.h
new file mode 100644
index 00000000..d0fe0485
--- /dev/null
+++ b/sdk/dx8sdk/Include/dv.h
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+// File: DV.h
+//
+// Desc: DV typedefs and defines
+//
+// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved.
+//------------------------------------------------------------------------------
+
+
+#ifndef _DV_H_
+#define _DV_H_
+
+#define DV_DVSD_NTSC_FRAMESIZE 120000L
+#define DV_DVSD_PAL_FRAMESIZE 144000L
+
+#define DV_SMCHN 0x0000e000
+#define DV_AUDIOMODE 0x00000f00
+#define DV_AUDIOSMP 0x38000000
+
+#define DV_AUDIOQU 0x07000000
+#define DV_NTSCPAL 0x00200000
+#define DV_STYPE 0x001f0000
+
+
+//There are NTSC or PAL DV camcorders
+#define DV_NTSC 0
+#define DV_PAL 1
+
+//DV camcorder can output sd/hd/sl
+#define DV_SD 0x00
+#define DV_HD 0x01
+#define DV_SL 0x02
+
+//user can choice 12 bits or 16 bits audio from DV camcorder
+#define DV_CAP_AUD16Bits 0x00
+#define DV_CAP_AUD12Bits 0x01
+
+#define SIZE_DVINFO 0x20
+
+typedef struct Tag_DVAudInfo
+{
+ BYTE bAudStyle[2];
+
+ //LSB 6 bits for starting DIF sequence number
+ //MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences
+ //example: 0x00: mon, audio in first 5/6 DIF sequence
+ // 0x05: mon, audio in 2nd 5 DIF sequence
+ // 0x15: stereo, audio only in 2nd 5 DIF sequence
+ // 0x10: stereo, audio only in 1st 5/6 DIF sequence
+ // 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence
+ // 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence
+ BYTE bAudQu[2]; //qbits, only support 12, 16,
+
+ BYTE bNumAudPin; //how many pins
+ WORD wAvgSamplesPerPinPerFrm[2]; //sample size for one audio pin in one frame(which has 10 or 12 DIF sequence)
+ WORD wBlkMode; //45 for NTSC, 54 for PAL
+ WORD wDIFMode; //5 for NTSC, 6 for PAL
+ WORD wBlkDiv; //15 for NTSC, 18 for PAL
+
+} DVAudInfo;
+
+#endif // _DV_H_