mfxExtOpaqueSurfaceAlloc

Definition

 

 

typedef struct {

      mfxExtBuffer      Header;

      mfxU32            reserved1[2];

      struct {

            mfxFrameSurface1 **Surfaces;

            mfxU32      reserved2[4];

            mfxU16      Type;

            mfxU16      NumSurface;

      } In, Out; 

} mfxExtOpaqueSurfaceAlloc;

 

Description

 

 

The mfxExtOpaqueSurfaceAlloc structure defines the opaque surface allocation information.

 

Members

 

 

Header.BufferId

Must be MFX_EXTBUFF_OPAQUE_SURFACE_ALLOCATION

 

 

Type

Surface type chosen by the application. Any valid combination of flags may be used, for example:
MFX_MEMTYPE_SYSTEM_MEMORY |
MFX_MEMTYPE_FROM_DECODE   |
MFX_MEMTYPE_EXTERNAL_FRAME
.

The SDK ignores any irrelevant flags. See the ExtMemFrameType enumerator for details.

 

 

NumSurface

The number of allocated frame surfaces.

 

 

Surfaces

The array pointers of allocated frame surfaces.

 

 

In, Out

In refers to surface allocation for input and out refers to surface allocation for output. For decoding, In is ignored. For encoding, Out is ignored.

 

Change History

 

This structure is available since SDK API 1.3.

 

 

 

 

 

For more complete information about compiler optimizations, see our Optimization Notice.