Skip to content

Latest commit

 

History

History
85 lines (66 loc) · 3 KB

ns-strmif-allocator_properties.md

File metadata and controls

85 lines (66 loc) · 3 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:strmif._AllocatorProperties
ALLOCATOR_PROPERTIES (strmif.h)
The ALLOCATOR_PROPERTIES structure describes an allocator's count, size, alignment, and prefix properties.
ALLOCATOR_PROPERTIES
ALLOCATOR_PROPERTIES structure [DirectShow]
ALLOCATOR_PROPERTIESStructure
dshow.allocator_properties
strmif/ALLOCATOR_PROPERTIES
dshow\allocator_properties.htm
dshow
813e4693-b549-4045-aff5-08f2dd754b6e
4/26/2023
ALLOCATOR_PROPERTIES, ALLOCATOR_PROPERTIES structure [DirectShow], ALLOCATOR_PROPERTIESStructure, dshow.allocator_properties, strmif/ALLOCATOR_PROPERTIES
strmif.h
Dshow.h
Windows
Windows
ALLOCATOR_PROPERTIES
19H1
_AllocatorProperties
strmif/_AllocatorProperties
ALLOCATOR_PROPERTIES
strmif/ALLOCATOR_PROPERTIES
c++
APIRef
kbSyntax
HeaderDef
strmif.h
ALLOCATOR_PROPERTIES

ALLOCATOR_PROPERTIES structure

-description

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The ALLOCATOR_PROPERTIES structure describes an allocator's count, size, alignment, and prefix properties.

-struct-fields

-field cBuffers

Number of buffers created by the allocator.

-field cbBuffer

Size of each buffer in bytes, excluding any prefix.

-field cbAlign

Alignment of the buffer; buffer start will be aligned on a multiple of this value.

-field cbPrefix

Each buffer is preceded by a prefix of this many bytes.

-remarks

The IMediaSample::GetPointer method returns a pointer to the beginning of the buffer, not including the prefix bytes designated by cbPrefix.

The alignment is applied to the prefix data, if any. If a nonzero prefix is used, the beginning of the prefix is aligned according to cbAlign.

-see-also

DirectShow Structures