Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

MFX_ERR_INVALID_VIDEO_PARAM handling #14

Open
maximd33 opened this issue Nov 8, 2017 · 3 comments
Open

MFX_ERR_INVALID_VIDEO_PARAM handling #14

maximd33 opened this issue Nov 8, 2017 · 3 comments

Comments

@maximd33
Copy link

maximd33 commented Nov 8, 2017

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
Copy link
Contributor

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:

std::string result = mfx_reflect::CompareStructsToString(reflection.Access(in), reflection.Access(out));

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

@maximd33
Copy link
Author

maximd33 commented Oct 2, 2019

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

@dmitryermilov
Copy link
Contributor

Would you like to propose a patch? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants