New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
G-API: oneVPL (simplification) Add simple decode pipeline #20739
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but..
break; | ||
case MFX_FOURCC_I010: | ||
case MFX_FOURCC_P010: | ||
nbytes = width * height + 2 * half_width * half_height; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this size in bytes include alignment?
In some platforms, image data (stride) is aligned to some multiplier and may exceed its logical size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, without alignment.
could you please share some resources or provide some info how to deal with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure, unfortunately. usually we learn about this limitations when enabling this or that particular platform. even more, on kmb one revision had one alignment and other revision has required the other.
At least I'd make it configurable somehow
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.hpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/processing_engine_base.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/processing_engine_base.cpp
Outdated
Show resolved
Hide resolved
break; | ||
case MFX_FOURCC_I010: | ||
case MFX_FOURCC_P010: | ||
nbytes = width * height + 2 * half_width * half_height; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, without alignment.
could you please share some resources or provide some info how to deal with it?
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Outdated
Show resolved
Hide resolved
", offset: " << out_buf_ptr_offset << | ||
", W: " << surfW << | ||
", H: " << surfH); | ||
GAPI_Assert(false && "Invalid offset"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will throw exception too
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/decode/decode_engine_legacy.hpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/processing_engine_base.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/processing_engine_base.cpp
Outdated
Show resolved
Hide resolved
modules/gapi/src/streaming/onevpl/engine/processing_engine_base.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok to merge
G-API: oneVPL (simplification) Add simple decode pipeline * Add simple decode pipeline & add onevpl namespace * Address some review comments * Add compilation guard
this PR is the single one in series of #20469
Introduces simple decoding pipeline & related data structures
P.S. This pipeline flow would be improved for fully async-decode flow in the next PRs
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
Build configuration