G-API: oneVPL (simplification) Add simple decode pipeline#20739
G-API: oneVPL (simplification) Add simple decode pipeline#20739alalek merged 3 commits intoopencv:masterfrom
Conversation
| break; | ||
| case MFX_FOURCC_I010: | ||
| case MFX_FOURCC_P010: | ||
| nbytes = width * height + 2 * half_width * half_height; |
There was a problem hiding this comment.
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.
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.
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.
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.
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
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