Home
last modified time | relevance | path

Searched refs:DataFormat (Results 1 – 25 of 36) sorted by relevance

12

/reactos/dll/directx/dsound_new/
H A Dmisc.c96 DataFormat.DataFormat.Flags = 0; in SetPinFormat()
97 DataFormat.DataFormat.Reserved = 0; in SetPinFormat()
98 DataFormat.DataFormat.MajorFormat = KSDATAFORMAT_TYPE_AUDIO; in SetPinFormat()
99 DataFormat.DataFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; in SetPinFormat()
101 DataFormat.DataFormat.SampleSize = 4; in SetPinFormat()
158 DataFormat->DataFormat.Flags = 0; in DoDataIntersection()
159 DataFormat->DataFormat.Reserved = 0; in DoDataIntersection()
163 DataFormat->DataFormat.SampleSize = 4; in DoDataIntersection()
260 DataFormat->DataFormat.Flags = 0; in OpenPin()
261 DataFormat->DataFormat.Reserved = 0; in OpenPin()
[all …]
/reactos/drivers/wdm/audio/backpln/audio_test/
H A Daudio_test.c36 PKSDATAFORMAT_WAVEFORMATEX DataFormat; in TestKs() local
135 DataFormat->WaveFormatEx.nChannels = 2; in TestKs()
137 DataFormat->WaveFormatEx.nBlockAlign = 4; in TestKs()
140 DataFormat->WaveFormatEx.cbSize = 0; in TestKs()
141 DataFormat->DataFormat.FormatSize = sizeof(KSDATAFORMAT) + in TestKs()
143 DataFormat->DataFormat.Flags = KSDATAFORMAT_ATTRIBUTES; in TestKs()
144 DataFormat->DataFormat.Reserved = 0; in TestKs()
145 DataFormat->DataFormat.MajorFormat = KSDATAFORMAT_TYPE_AUDIO; in TestKs()
146 DataFormat->DataFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; in TestKs()
147 DataFormat->DataFormat.Specifier = KSDATAFORMAT_SPECIFIER_WAVEFORMATEX; in TestKs()
[all …]
/reactos/sdk/lib/drivers/sound/mmixer/
H A Dwave.c116 _Inout_ PKSDATAFORMAT_WAVEFORMATEX DataFormat, in MMixerInitializeDataFormat() argument
121 DataFormat->WaveFormatEx.nChannels = WaveFormatEx->nChannels; in MMixerInitializeDataFormat()
126 DataFormat->WaveFormatEx.cbSize = cbSize; in MMixerInitializeDataFormat()
127 DataFormat->DataFormat.FormatSize = sizeof(KSDATAFORMAT) + sizeof(WAVEFORMATEX) + cbSize; in MMixerInitializeDataFormat()
128 DataFormat->DataFormat.Flags = 0; in MMixerInitializeDataFormat()
129 DataFormat->DataFormat.Reserved = 0; in MMixerInitializeDataFormat()
130 DataFormat->DataFormat.MajorFormat = KSDATAFORMAT_TYPE_AUDIO; in MMixerInitializeDataFormat()
131 DataFormat->DataFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; in MMixerInitializeDataFormat()
132 DataFormat->DataFormat.Specifier = KSDATAFORMAT_SPECIFIER_WAVEFORMATEX; in MMixerInitializeDataFormat()
133 DataFormat->DataFormat.SampleSize = 4; in MMixerInitializeDataFormat()
[all …]
H A Dmidi.c220 PKSDATAFORMAT DataFormat; in MMixerOpenMidiPin() local
241 DataFormat = (PKSDATAFORMAT) (PinConnect + 1); in MMixerOpenMidiPin()
244 RtlMoveMemory(&DataFormat->MajorFormat, &KSDATAFORMAT_TYPE_MUSIC, sizeof(GUID)); in MMixerOpenMidiPin()
245 RtlMoveMemory(&DataFormat->SubFormat, &KSDATAFORMAT_SUBTYPE_MIDI, sizeof(GUID)); in MMixerOpenMidiPin()
246 RtlMoveMemory(&DataFormat->Specifier, &KSDATAFORMAT_SPECIFIER_NONE, sizeof(GUID)); in MMixerOpenMidiPin()
/reactos/dll/directx/ksproxy/
H A Dksproxy.cpp259 PKSDATAFORMAT DataFormat; in KsGetMediaType() local
284 DataFormat = (PKSDATAFORMAT)(ItemList + 1); in KsGetMediaType()
289 DataFormat = (PKSDATAFORMAT)(ULONG_PTR)(DataFormat + DataFormat->FormatSize); in KsGetMediaType()
294 DataFormat->FormatSize -= sizeof(KSDATAFORMAT); in KsGetMediaType()
295 if (DataFormat->FormatSize) in KsGetMediaType()
298 AmMediaType->pbFormat = (BYTE*)CoTaskMemAlloc(DataFormat->FormatSize); in KsGetMediaType()
306 CopyMemory(AmMediaType->pbFormat, (DataFormat + 1), DataFormat->FormatSize); in KsGetMediaType()
307 AmMediaType->cbFormat = DataFormat->FormatSize; in KsGetMediaType()
318 CopyMemory(&AmMediaType->subtype, &DataFormat->SubFormat, sizeof(GUID)); in KsGetMediaType()
319 CopyMemory(&AmMediaType->formattype, &DataFormat->Specifier, sizeof(GUID)); in KsGetMediaType()
[all …]
H A Dinput_pin.cpp1327 PKSDATAFORMAT DataFormat; in CheckFormat() local
1351 DataFormat = (PKSDATAFORMAT)(MultipleItem + 1); in CheckFormat()
1355 IsEqualGUID(pmt->subtype, DataFormat->SubFormat) && in CheckFormat()
1356 IsEqualGUID(pmt->formattype, DataFormat->Specifier)) in CheckFormat()
1365 DataFormat = (PKSDATAFORMAT)((ULONG_PTR)DataFormat + DataFormat->FormatSize); in CheckFormat()
1489 PKSDATAFORMAT DataFormat; in CreatePinHandle() local
1539 DataFormat = (PKSDATAFORMAT)(PinConnect + 1); in CreatePinHandle()
1542 DataFormat->FormatSize = sizeof(KSDATAFORMAT) + pmt->cbFormat; in CreatePinHandle()
1543 DataFormat->Flags = 0; in CreatePinHandle()
1544 DataFormat->SampleSize = pmt->lSampleSize; in CreatePinHandle()
[all …]
H A Doutput_pin.cpp1926 PKSDATAFORMAT DataFormat; in CheckFormat() local
1953 DataFormat = (PKSDATAFORMAT)(MultipleItem + 1); in CheckFormat()
1957 IsEqualGUID(pmt->subtype, DataFormat->SubFormat) && in CheckFormat()
1958 IsEqualGUID(pmt->formattype, DataFormat->Specifier)) in CheckFormat()
1964 DataFormat = (PKSDATAFORMAT)((ULONG_PTR)DataFormat + DataFormat->FormatSize); in CheckFormat()
2117 PKSDATAFORMAT DataFormat; in CreatePinHandle() local
2160 DataFormat = (PKSDATAFORMAT)(PinConnect + 1); in CreatePinHandle()
2163 DataFormat->FormatSize = sizeof(KSDATAFORMAT) + pmt->cbFormat; in CreatePinHandle()
2164 DataFormat->Flags = 0; in CreatePinHandle()
2165 DataFormat->SampleSize = pmt->lSampleSize; in CreatePinHandle()
[all …]
/reactos/drivers/wdm/audio/backpln/portcls/
H A Dpin_wavert.cpp172 PKSDATAFORMAT DataFormat = (PKSDATAFORMAT)Irp->UserBuffer; in HandleKsProperty() local
176 if (!RtlCompareMemory(DataFormat, m_Format, DataFormat->FormatSize)) in HandleKsProperty()
178 Irp->IoStatus.Information = DataFormat->FormatSize; in HandleKsProperty()
192 RtlMoveMemory(NewDataFormat, DataFormat, DataFormat->FormatSize); in HandleKsProperty()
216 Irp->IoStatus.Information = DataFormat->FormatSize; in HandleKsProperty()
246 RtlMoveMemory(DataFormat, m_Format, m_Format->FormatSize); in HandleKsProperty()
247 Irp->IoStatus.Information = DataFormat->FormatSize; in HandleKsProperty()
552 PKSDATAFORMAT DataFormat; in Init() local
565 DataFormat = (PKSDATAFORMAT)(ConnectDetails + 1); in Init()
569 m_Format = (PKSDATAFORMAT)AllocateItem(NonPagedPool, DataFormat->FormatSize, TAG_PORTCLASS); in Init()
[all …]
H A Dpin_wavecyclic.cpp548 PKSDATAFORMAT NewDataFormat, DataFormat = (PKSDATAFORMAT)Irp->UserBuffer; in PinWaveCyclicDataFormat() local
549 ULONG Size = min(Pin->m_Format->FormatSize, DataFormat->FormatSize); in PinWaveCyclicDataFormat()
551 if (RtlCompareMemory(DataFormat, Pin->m_Format, Size) == Size) in PinWaveCyclicDataFormat()
554 Irp->IoStatus.Information = DataFormat->FormatSize; in PinWaveCyclicDataFormat()
572 RtlMoveMemory(NewDataFormat, DataFormat, DataFormat->FormatSize); in PinWaveCyclicDataFormat()
1167 PKSDATAFORMAT DataFormat; in Init() local
1179 DataFormat = (PKSDATAFORMAT)(ConnectDetails + 1); in Init()
1181 DPRINT("CPortPinWaveCyclic::Init entered Size %u\n", DataFormat->FormatSize); in Init()
1207 DataFormat, in Init()
1302DataFormat))->WaveFormatEx.wBitsPerSample, ((PKSDATAFORMAT_WAVEFORMATEX)(DataFormat))->WaveFormatE… in Init()
[all …]
H A Dpin_wavepci.cpp284 PKSDATAFORMAT NewDataFormat, DataFormat = (PKSDATAFORMAT)Irp->UserBuffer; in PinWavePciDataFormat() local
285 ULONG Size = min(Pin->m_Format->FormatSize, DataFormat->FormatSize); in PinWavePciDataFormat()
287 if (RtlCompareMemory(DataFormat, Pin->m_Format, Size) == Size) in PinWavePciDataFormat()
290 Irp->IoStatus.Information = DataFormat->FormatSize; in PinWavePciDataFormat()
300 … NewDataFormat = (PKSDATAFORMAT)AllocateItem(NonPagedPool, DataFormat->FormatSize, TAG_PORTCLASS); in PinWavePciDataFormat()
308 RtlMoveMemory(NewDataFormat, DataFormat, DataFormat->FormatSize); in PinWavePciDataFormat()
324 …PC_ASSERT(IsEqualGUIDAligned(((PKSDATAFORMAT_WAVEFORMATEX)NewDataFormat)->DataFormat.SubFormat, KS… in PinWavePciDataFormat()
767 PKSDATAFORMAT DataFormat; in Init() local
807 DataFormat = (PKSDATAFORMAT)(ConnectDetails + 1); in Init()
810 m_Format = (PKSDATAFORMAT)AllocateItem(NonPagedPool, DataFormat->FormatSize, TAG_PORTCLASS); in Init()
[all …]
H A Dpin_dmus.cpp497 PKSDATAFORMAT DataFormat; in Init() local
511 DataFormat = (PKSDATAFORMAT)(ConnectDetails + 1); in Init()
515 m_Format = (PKSDATAFORMAT)AllocateItem(NonPagedPool, DataFormat->FormatSize, TAG_PORTCLASS); in Init()
519 RtlMoveMemory(m_Format, DataFormat, DataFormat->FormatSize); in Init()
/reactos/drivers/wdm/audio/drivers/CMIDriver/
H A Dminwave.cpp537 resultantFormatWFX->DataFormat.Flags = 0; in DataRangeIntersection()
539 resultantFormatWFX->DataFormat.Reserved = 0; in DataRangeIntersection()
706 resultantFormatWFX->DataFormat.Flags = 0; in DataRangeIntersection()
707 resultantFormatWFX->DataFormat.SampleSize = 4; in DataRangeIntersection()
708 resultantFormatWFX->DataFormat.Reserved = 0; in DataRangeIntersection()
745 ASSERT(DataFormat); in NewStream()
755 PWAVEFORMATEX waveFormat = PWAVEFORMATEX(DataFormat + 1); in NewStream()
758 ntStatus = validateFormat(DataFormat, PinID, Capture); in NewStream()
792 …DIF == EXTRACT_WAVEFORMATEX_ID(&DataFormat->SubFormat)) || (WAVE_FORMAT_WMA_SPDIF == EXTRACT_WAVEF… in NewStream()
1281 ASSERT(DataFormat); in Init()
[all …]
H A Dminwave.hpp141 …* Miniport_, UInt32 streamIndex_, bool isCaptureStream_, PKSDATAFORMAT DataFormat, PPORTWAVERTSTRE…
143 …* Miniport_, UInt32 streamIndex_, bool isCaptureStream_, PKSDATAFORMAT DataFormat, PDMACHANNEL DMA…
/reactos/drivers/usb/usbaudio/
H A Dpin.c1428 PKSDATAFORMAT_WAVEFORMATEX DataFormat; in UsbAudioPinDataIntersect() local
1455 DataFormat = Data; in UsbAudioPinDataIntersect()
1456 DataFormat->WaveFormatEx.wFormatTag = WAVE_FORMAT_PCM; in UsbAudioPinDataIntersect()
1462 DataFormat->WaveFormatEx.cbSize = 0; in UsbAudioPinDataIntersect()
1464 DataFormat->DataFormat.FormatSize = sizeof(KSDATAFORMAT) + sizeof(WAVEFORMATEX); in UsbAudioPinDataIntersect()
1465 DataFormat->DataFormat.Flags = 0; in UsbAudioPinDataIntersect()
1466 DataFormat->DataFormat.Reserved = 0; in UsbAudioPinDataIntersect()
1467 DataFormat->DataFormat.MajorFormat = KSDATAFORMAT_TYPE_AUDIO; in UsbAudioPinDataIntersect()
1468 DataFormat->DataFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; in UsbAudioPinDataIntersect()
1469 DataFormat->DataFormat.Specifier = KSDATAFORMAT_SPECIFIER_WAVEFORMATEX; in UsbAudioPinDataIntersect()
[all …]
/reactos/drivers/wdm/audio/drivers/ac97/
H A Dwavecyclicminiport.cpp113 PKSDATAFORMAT DataFormat, in NewStream() argument
121 ASSERT (DataFormat); in NewStream()
133 ntStatus = ValidateFormat (DataFormat, (WavePins)Pin_); in NewStream()
162 DataFormat, in NewStream()
H A Dwavepciminiport.cpp126 PKSDATAFORMAT DataFormat, in NewStream() argument
135 ASSERT (DataFormat); in NewStream()
147 ntStatus = ValidateFormat (DataFormat, (WavePins)Pin_); in NewStream()
175 DataFormat, in NewStream()
H A Drtminiport.cpp159 _In_ PKSDATAFORMAT DataFormat in NewStream() argument
166 ASSERT (DataFormat); in NewStream()
176 ntStatus = ValidateFormat (DataFormat, (WavePins)Channel_); in NewStream()
203 DataFormat); in NewStream()
H A Dstream.cpp107 DataFormat = (PKSDATAFORMAT_WAVEFORMATEX)DataFormat_; in Init()
108 CurrentRate = DataFormat->WaveFormatEx.nSamplesPerSec; in Init()
109 NumberOfChannels = DataFormat->WaveFormatEx.nChannels; in Init()
476 DataFormat = (PKSDATAFORMAT_WAVEFORMATEX)Format; in STDMETHODIMP_()
H A Dwavepcistream.cpp135 PreFetchOffset->SetPreFetchOffset(32 * (DataFormat->WaveFormatEx.nChannels * 2)); in Init_()
163 SampleSize = DataFormat->WaveFormatEx.nChannels * 2; in STDMETHODIMP_()
179 AllocatorFraming->FrameSize = SampleSize * (DataFormat->WaveFormatEx.nSamplesPerSec / 100); in STDMETHODIMP_()
362 SampleSize = DataFormat->WaveFormatEx.nChannels * 2; in STDMETHODIMP_()
H A Dwavecyclicstream.cpp127 DWORD nSamples = DataFormat->WaveFormatEx.nSamplesPerSec * BUFFERTIME / 1000; in ResizeBuffer()
128 DWORD bufferSize = DataFormat->WaveFormatEx.nBlockAlign * nSamples; in ResizeBuffer()
/reactos/drivers/wdm/audio/sysaudio/
H A Dcontrol.c150 Length = sizeof(KSP_PIN) + sizeof(KSMULTIPLE_ITEM) + ClientFormat->DataFormat.FormatSize; in ComputeCompatibleFormat()
162 MultipleItem->Size = ClientFormat->DataFormat.FormatSize; in ComputeCompatibleFormat()
164 RtlMoveMemory(MultipleItem + 1, ClientFormat, ClientFormat->DataFormat.FormatSize); in ComputeCompatibleFormat()
215 MixerFormat->DataFormat.FormatSize = sizeof(KSDATAFORMAT) + sizeof(WAVEFORMATEX); in ComputeCompatibleFormat()
216 MixerFormat->DataFormat.Flags = 0; in ComputeCompatibleFormat()
217 MixerFormat->DataFormat.Reserved = 0; in ComputeCompatibleFormat()
218 MixerFormat->DataFormat.MajorFormat = KSDATAFORMAT_TYPE_AUDIO; in ComputeCompatibleFormat()
219 MixerFormat->DataFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; in ComputeCompatibleFormat()
220 MixerFormat->DataFormat.Specifier = KSDATAFORMAT_SPECIFIER_WAVEFORMATEX; in ComputeCompatibleFormat()
221 MixerFormat->DataFormat.SampleSize = 4; in ComputeCompatibleFormat()
/reactos/dll/directx/wine/dinput/
H A Ddevice_private.h48 } DataFormat; typedef
79DataFormat data_format; /* user data format and wine to user format converter */
90 extern void fill_DataFormat(void *out, DWORD size, const void *in, const DataFormat *df) DECLSPEC_…
91 extern void release_DataFormat(DataFormat *df) DECLSPEC_HIDDEN;
95 extern int find_property(const DataFormat *df, LPCDIPROPHEADER ph) DECLSPEC_HIDDEN;
/reactos/dll/directx/ksuser/
H A Dksuser.c198 PKSDATAFORMAT DataFormat = (PKSDATAFORMAT)(Connect + 1); in KsCreatePin() local
200 BufferSize += DataFormat->FormatSize; in KsCreatePin()
/reactos/drivers/wdm/audio/filters/kmixer/
H A Dpin.c704 PKSDATAFORMAT DataFormat; in CreatePin() local
708 DataFormat = ExAllocatePool(NonPagedPool, sizeof(KSDATAFORMAT_WAVEFORMATEX) * 2); in CreatePin()
709 if (!DataFormat) in CreatePin()
712 RtlZeroMemory(DataFormat, sizeof(KSDATAFORMAT_WAVEFORMATEX) * 2); in CreatePin()
715 IoStack->FileObject->FsContext2 = (PVOID)DataFormat; in CreatePin()
/reactos/sdk/include/ddk/
H A Dportcls.h1326 IN PKSDATAFORMAT DataFormat)PURE; in DECLARE_INTERFACE_()
1373 IN PKSDATAFORMAT DataFormat, in DECLARE_INTERFACE_()
1467 IN PKSDATAFORMAT DataFormat)PURE; in DECLARE_INTERFACE_()
1491 ( IN PKSDATAFORMAT DataFormat\
1538 IN PKSDATAFORMAT DataFormat, in DECLARE_INTERFACE_()
1619 IN PKSDATAFORMAT DataFormat)PURE; in DECLARE_INTERFACE_()
1647 IN PKSDATAFORMAT DataFormat);\
1690 IN PKSDATAFORMAT DataFormat, in DECLARE_INTERFACE_()
1713 IN PKSDATAFORMAT DataFormat,\
1869 ( IN PKSDATAFORMAT DataFormat\
[all …]

12