1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
/*############################################################################
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#endif
#include <stddef.h>
#include "./removed_api.h"
#include "sdk_headers.inc"
/* Stubs */
#define UNUSED_PARAM(x) (void)(x)
mfxLoader MFX_CDECL MFXLoad()
{
return (mfxLoader)1;
}
mfxConfig MFX_CDECL MFXCreateConfig(mfxLoader loader)
{
UNUSED_PARAM(loader);
return (mfxConfig)2;
}
mfxStatus MFX_CDECL MFXSetConfigFilterProperty(mfxConfig config, const mfxU8* name, mfxVariant value)
{
UNUSED_PARAM(config);
UNUSED_PARAM(name);
UNUSED_PARAM(value);
return MFX_ERR_NONE;
}
int main()
{
/* Checkout dispatcher's macroses*/
mfxLoader loader = NULL;
MFX_ADD_PROPERTY_U32(loader, "mfxImplDescription.mfxVPPDescription.filter.FilterFourCC", (mfxU32)MFX_EXTBUFF_VPP_SCALING)
MFX_ADD_PROPERTY_PTR(loader, "mfxImplDescription.mfxVPPDescription.filter.FilterFourCC", "something_amazing")
MFX_ADD_PROPERTY_U16(loader, "mfxImplDescription.Impl", MFX_IMPL_TYPE_SOFTWARE)
{
mfxConfig cfg = NULL;
MFX_UPDATE_PROPERTY_U16(loader, cfg, "mfxImplDescription.Impl", MFX_IMPL_TYPE_SOFTWARE)
MFX_UPDATE_PROPERTY_U32(loader, cfg, "mfxImplDescription.Impl", MFX_IMPL_TYPE_SOFTWARE)
MFX_UPDATE_PROPERTY_PTR(loader, cfg, "mfxImplDescription.Impl", "just a string")
}
#ifdef ONEVPL_EXPERIMENTAL
{
mfxExtendedDeviceId *devinfo = NULL;
mfxU8* uuid = NULL;
mfxU8 sub_device_id = 0;
MFX_UUID_COMPUTE_DEVICE_ID(devinfo, sub_device_id, uuid)
}
#endif
return 0;
}
#pragma message ("end of C test")
|