Skip to content

G-API: oneVPL (simplification) oneVPL source finalization#5

Open
sivanov-work wants to merge 5 commits into
vpl_add_proc_enginefrom
vpl_source_final
Open

G-API: oneVPL (simplification) oneVPL source finalization#5
sivanov-work wants to merge 5 commits into
vpl_add_proc_enginefrom
vpl_source_final

Conversation

@sivanov-work
Copy link
Copy Markdown
Owner

this PR is the single one in series of opencv#20469

Aggregate all modules in oneVPLSource

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Build configuration

force_builders=Custom,Custom Win,Custom Mac
build_gapi_standalone:Linux x64=ade-0.1.1f
build_gapi_standalone:Win64=ade-0.1.1f
build_gapi_standalone:Mac=ade-0.1.1f
build_gapi_standalone:Linux x64 Debug=ade-0.1.1f

Xbuild_image:Custom=centos:7
Xbuildworker:Custom=linux-1
build_gapi_standalone:Custom=ade-0.1.1f

build_image:Custom=ubuntu-openvino-2021.3.0:20.04
build_image:Custom Win=openvino-2021.2.0
build_image:Custom Mac=openvino-2021.2.0

test_modules:Custom=gapi,python2,python3,java
test_modules:Custom Win=gapi,python2,python3,java
test_modules:Custom Mac=gapi,python2,python3,java

buildworker:Custom=linux-1
test_opencl:Custom=OFF
test_bigdata:Custom=1
test_filter:Custom=*

ss << ex.what() << ". Unload VPL session: " << mfx_session;
const std::string str = ss.str();
GAPI_LOG_WARNING(nullptr, str);
MFXClose(mfx_session);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the only MFXClose call. Are you sure there shouldn't been more of them?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, sure. It throws exception sequentially, that it reach dtor (because ctor delegation to OneVPLSource::Priv() was used before) where calls MFXUnload(mfx_handle);

As far I remember decoder deinit would be required - but it is impletented in DX11 PR.

case MFX_ACCEL_MODE_VIA_VAAPI_GLX: return "MFX_ACCEL_MODE_VIA_VAAPI_GLX";
case MFX_ACCEL_MODE_VIA_VAAPI_X11: return "MFX_ACCEL_MODE_VIA_VAAPI_X11";
case MFX_ACCEL_MODE_VIA_VAAPI_WAYLAND: return "MFX_ACCEL_MODE_VIA_VAAPI_WAYLAND";
case MFX_ACCEL_MODE_VIA_HDDLUNITE: return "MFX_ACCEL_MODE_VIA_HDDLUNITE";
Copy link
Copy Markdown
Collaborator

@smirnov-alexey smirnov-alexey Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, align the returns here and below where applicable

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be fixed on master PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants