Skip to content

Commit

Permalink
api: Update for experimental features (#5844)
Browse files Browse the repository at this point in the history
Co-authored-by: varistar <vasily.aristarkhov@intel.com>
  • Loading branch information
mgonchar and varistar authored Oct 10, 2023
1 parent 8b1131f commit 8dd1360
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
2 changes: 0 additions & 2 deletions api/vpl/mfxcamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "mfxcommon.h"

#ifdef ONEVPL_EXPERIMENTAL

#if !defined(__GNUC__)
#pragma warning(disable : 4201)
Expand Down Expand Up @@ -402,5 +401,4 @@ MFX_PACK_END()
} // extern "C"
#endif

#endif // ONEVPL_EXPERIMENTAL
#endif // __MFXCAMERA_H__
4 changes: 0 additions & 4 deletions api/vpl/mfxdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ typedef void* mfxHDL; /*!< Handle type. */
typedef mfxHDL mfxMemId; /*!< Memory ID type. */
typedef void* mfxThreadTask; /*!< Thread task type. */
typedef char mfxChar; /*!< UTF-8 byte. */
#ifdef ONEVPL_EXPERIMENTAL
typedef unsigned short mfxFP16; /*!< Half precision floating point, 16 bit type. */
#endif

/* MFX structures version info */
MFX_PACK_BEGIN_USUAL_STRUCT()
Expand Down Expand Up @@ -237,9 +235,7 @@ typedef struct {
mfxI64 I64; /*!< mfxI64 data. */
mfxF32 F32; /*!< mfxF32 data. */
mfxF64 F64; /*!< mfxF64 data. */
#ifdef ONEVPL_EXPERIMENTAL
mfxFP16 FP16; /*!< mfxFP16 data. */
#endif
mfxHDL Ptr; /*!< Pointer. When this points to a string the string must be null terminated. */
} Data; /*!< Value data member. */
} mfxVariant;
Expand Down
16 changes: 2 additions & 14 deletions api/vpl/mfxstructures.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,9 @@ enum {
MFX_FOURCC_BGRA = MFX_FOURCC_RGB4, /*!< Alias for the RGB4 color format. */
/*! BGR 24 bit planar layout (3 separate channels, 8-bits per sample each). This format should be mapped to VA_FOURCC_BGRP. */
MFX_FOURCC_BGRP = MFX_MAKEFOURCC('B','G','R','P'),
#ifdef ONEVPL_EXPERIMENTAL
/*! 8bit per sample 4:4:4 format packed in 32 bits, X=unused/undefined, 'X' channel is 8 MSBs, then 'Y', then 'U', and then 'V' channels. This format should be mapped to VA_FOURCC_XYUV. */
MFX_FOURCC_XYUV = MFX_MAKEFOURCC('X','Y','U','V'),
#endif
#ifdef ONEVPL_EXPERIMENTAL
MFX_FOURCC_ABGR16F = MFX_MAKEFOURCC('B', 'G', 'R', 'F'), /*!< 16 bits float point ABGR color format packed in 64 bits. 'A' channel is 16 MSBs, then 'B', then 'G' and then 'R' channels. This format should be mapped to DXGI_FORMAT_R16G16B16A16_FLOAT or D3DFMT_A16B16G16R16F formats.. */
#endif
};

/* PicStruct */
Expand Down Expand Up @@ -286,7 +282,6 @@ typedef struct
} mfxA2RGB10;
MFX_PACK_END()

#ifdef ONEVPL_EXPERIMENTAL
MFX_PACK_BEGIN_USUAL_STRUCT()
/*! Specifies "pixel" in ABGR 16 bit half float point color format */
typedef struct
Expand All @@ -297,7 +292,6 @@ typedef struct
mfxFP16 A; /*!< A component. */
} mfxABGR16FP;
MFX_PACK_END()
#endif

/*! Describes frame buffer pointers. */
MFX_PACK_BEGIN_STRUCT_W_L_TYPE()
Expand Down Expand Up @@ -361,9 +355,7 @@ typedef struct {
mfxU16 *V16; /*!< V16 channel. */
mfxU8 *B; /*!< B channel. */
mfxA2RGB10 *A2RGB10; /*!< A2RGB10 channel for A2RGB10 format (merged ARGB). */
#ifdef ONEVPL_EXPERIMENTAL
mfxABGR16FP* ABGRFP16; /*!< ABGRFP16 channel for half float ARGB format (use this merged one due to no separate FP16 Alpha Channel). */
#endif
};
mfxU8 *A; /*!< A channel. */
mfxMemId MemId; /*!< Memory ID of the data buffers. Ignored if any of the preceding data pointers is non-zero. */
Expand Down Expand Up @@ -1689,9 +1681,7 @@ enum {
MFX_CONTENT_UNKNOWN = 0,
MFX_CONTENT_FULL_SCREEN_VIDEO = 1,
MFX_CONTENT_NON_VIDEO_SCREEN = 2,
#ifdef ONEVPL_EXPERIMENTAL
MFX_CONTENT_NOISY_VIDEO = 3
#endif
};

/*! The PRefType enumerator itemizes models of reference list construction and DPB management when GopRefDist=1. */
Expand Down Expand Up @@ -3730,12 +3720,8 @@ MFX_PACK_BEGIN_STRUCT_W_L_TYPE()
typedef struct {
mfxExtBuffer Header; /*!< Extension buffer header. Header.BufferId must be equal to MFX_EXTBUFF_MBQP. */

#ifdef ONEVPL_EXPERIMENTAL
mfxU32 reserved[9];
mfxU32 Pitch; /*!< Distance in bytes between the start of two consecutive rows in the QP array. */
#else
mfxU32 reserved[10];
#endif
mfxU16 Mode; /*!< Defines QP update mode. See MBQPMode enumerator for more details. */
mfxU16 BlockSize; /*!< QP block size, valid for HEVC only during Init and Runtime. */
mfxU32 NumQPAlloc; /*!< Size of allocated by application QP or DeltaQP array. */
Expand Down Expand Up @@ -5080,6 +5066,8 @@ MFX_PACK_END()

#ifdef __cplusplus
} // extern "C"

#endif


#endif

0 comments on commit 8dd1360

Please sign in to comment.