Intel-Media-SDK / MediaSDK

The Intel® Media SDK
MIT License
934 stars 459 forks source link

MFX_ERR_INVALID_VIDEO_PARAM handling #14

Open maximd33 opened 6 years ago

maximd33 commented 6 years ago

it actually would be good to have an implementation sample for handling of MFX_ERR_INVALID_VIDEO_PARAM via compare options been marked off and report this out.

dmitryermilov commented 5 years ago

Hi @maximd33 , You may re-use the following code https://github.com/Intel-Media-SDK/MediaSDK/blob/b3c34423842fcac5cb6bae587e409cf60bc0bcd2/_studio/shared/mfx_trace/src/mfx_reflect.cpp

Please see example of usage here: https://github.com/Intel-Media-SDK/MediaSDK/blob/e51cd4243862e112c62d4ebc3bdba3974becab80/_studio/mfx_lib/shared/src/libmfxsw_encode.cpp#L612

It compares two mfxVideoParam's and returns std::string with description of found differences.

maximd33 commented 5 years ago

@dmitryermilov it is C++ implementation, pure C one is required.

dmitryermilov commented 5 years ago

Would you like to propose a patch? :)