1 | /*
|
---|
2 | * Copyright (C) 2004 Robert Reif
|
---|
3 | *
|
---|
4 | * This library 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 | * This library 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 this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef _KS_
|
---|
29 | #error must include ks.h before ksmedia.h
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | #ifndef _KSMEDIA_
|
---|
33 | #define _KSMEDIA_
|
---|
34 |
|
---|
35 | DEFINE_GUID(KSDATAFORMAT_SUBTYPE_PCM, 0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
|
---|
36 | DEFINE_GUID(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, 0x00000003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
|
---|
37 | DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MULAW, 0x00000007, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
|
---|
38 | DEFINE_GUID(KSDATAFORMAT_SUBTYPE_ALAW, 0x00000006, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
|
---|
39 |
|
---|
40 | #define KSAUDIO_SPEAKER_DIRECTOUT 0
|
---|
41 | #define KSAUDIO_SPEAKER_MONO SPEAKER_FRONT_CENTER
|
---|
42 | #define KSAUDIO_SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT)
|
---|
43 | #define KSAUDIO_SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
|
---|
44 | #define KSAUDIO_SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)
|
---|
45 | #define KSAUDIO_SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
|
---|
46 | /* 5:1 SIDE or BACK is not distinguished, only 0x3F shall be used (BACK) */
|
---|
47 | #define KSAUDIO_SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
|
---|
48 | #define KSAUDIO_SPEAKER_7POINT1 (KSAUDIO_SPEAKER_5POINT1 | SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)
|
---|
49 | /* 7:1 home theater 0x63F */
|
---|
50 | #define KSAUDIO_SPEAKER_7POINT1_SURROUND (KSAUDIO_SPEAKER_5POINT1 | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
|
---|
51 |
|
---|
52 | #ifndef REFERENCE_TIME_DEFINED
|
---|
53 | #define REFERENCE_TIME_DEFINED
|
---|
54 | typedef LONGLONG REFERENCE_TIME;
|
---|
55 | #endif
|
---|
56 |
|
---|
57 | typedef enum
|
---|
58 | {
|
---|
59 | eConnTypeUnknown = 0,
|
---|
60 | eConnType3Point5mm,
|
---|
61 | eConnTypeQuarter,
|
---|
62 | eConnTypeAtapiInternal,
|
---|
63 | eConnTypeRCA,
|
---|
64 | eConnTypeOptical,
|
---|
65 | eConnTypeOtherDigital,
|
---|
66 | eConnTypeOtherAnalog,
|
---|
67 | eConnTypeMultichannelAnalogDIN,
|
---|
68 | eConnTypeXlrProfessional,
|
---|
69 | eConnTypeRj11Modem,
|
---|
70 | eConnTypeCombination
|
---|
71 | } EPcxConnectionType;
|
---|
72 |
|
---|
73 | typedef enum
|
---|
74 | {
|
---|
75 | eGeoLocRear = 1,
|
---|
76 | eGeoLocFront,
|
---|
77 | eGeoLocLeft,
|
---|
78 | eGeoLocRight,
|
---|
79 | eGeoLocTop,
|
---|
80 | eGeoLocBottom,
|
---|
81 | eGeoLocRearPanel,
|
---|
82 | eGeoLocRiser,
|
---|
83 | eGeoLocInsideMobileLid,
|
---|
84 | eGeoLocDrivebay,
|
---|
85 | eGeoLocHDMI,
|
---|
86 | eGeoLocOutsideMobileLid,
|
---|
87 | eGeoLocATAPI,
|
---|
88 | eGeoLocReserved5,
|
---|
89 | eGeoLocReserved6
|
---|
90 | } EPcxGeoLocation;
|
---|
91 |
|
---|
92 | typedef enum
|
---|
93 | {
|
---|
94 | eGenLocPrimaryBox = 0,
|
---|
95 | eGenLocInternal,
|
---|
96 | eGenLocSeparate,
|
---|
97 | eGenLocOther
|
---|
98 | } EPcxGenLocation;
|
---|
99 |
|
---|
100 | typedef enum
|
---|
101 | {
|
---|
102 | ePortConnJack = 0,
|
---|
103 | ePortConnIntegratedDevice,
|
---|
104 | ePortConnBothIntegratedAndJack,
|
---|
105 | ePortConnUnknown
|
---|
106 | } EPxcPortConnection;
|
---|
107 |
|
---|
108 | typedef struct
|
---|
109 | {
|
---|
110 | DWORD ChannelMapping;
|
---|
111 | COLORREF Color;
|
---|
112 | EPcxConnectionType ConnectionType;
|
---|
113 | EPcxGeoLocation GeoLocation;
|
---|
114 | EPcxGenLocation GenLocation;
|
---|
115 | EPxcPortConnection PortConnection;
|
---|
116 | BOOL IsConnected;
|
---|
117 | } KSJACK_DESCRIPTION;
|
---|
118 |
|
---|
119 | typedef KSJACK_DESCRIPTION *PKSJACK_DESCRIPTION;
|
---|
120 |
|
---|
121 | typedef enum
|
---|
122 | {
|
---|
123 | KSJACK_SINK_CONNECTIONTYPE_HDMI = 0,
|
---|
124 | KSJACK_SINK_CONNECTIONTYPE_DISPLAYPORT
|
---|
125 | } KSJACK_SINK_CONNECTIONTYPE;
|
---|
126 |
|
---|
127 | #define MAX_SINK_DESCRIPTION_NAME_LENGTH 32
|
---|
128 |
|
---|
129 | typedef struct _tagKSJACK_SINK_INFORMATION
|
---|
130 | {
|
---|
131 | KSJACK_SINK_CONNECTIONTYPE ConnType;
|
---|
132 | WORD ManufacturerId;
|
---|
133 | WORD ProductId;
|
---|
134 | WORD AudioLatency;
|
---|
135 | BOOL HDCPCapable;
|
---|
136 | BOOL AICapable;
|
---|
137 | UCHAR SinkDescriptionLength;
|
---|
138 | WCHAR SinkDescription[MAX_SINK_DESCRIPTION_NAME_LENGTH];
|
---|
139 | LUID PortId;
|
---|
140 | } KSJACK_SINK_INFORMATION;
|
---|
141 |
|
---|
142 | #define JACKDESC2_PRESENCE_DETECT_CAPABILITY 0x1
|
---|
143 | #define JACKDESC2_DYNAMIC_FORMAT_CHANGE_CAPABILITY 0x2
|
---|
144 |
|
---|
145 | typedef struct _tagKSJACK_DESCRIPTION2
|
---|
146 | {
|
---|
147 | DWORD DeviceStateInfo;
|
---|
148 | DWORD JackCapabilities;
|
---|
149 | } KSJACK_DESCRIPTION2;
|
---|
150 |
|
---|
151 | typedef struct _tagKSJACK_DESCRIPTION2 *PKSJACK_DESCRIPTION2;
|
---|
152 |
|
---|
153 | #endif /* _KSMEDIA_ */
|
---|