mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #20151 from smirnov-alexey:as/extend_media_frame
G-API: Extend MediaFrame to be able to extract additional info besides access * Extend MediaFrame to be able to extract additional info besides access * Add default implementation for blobParams() * Add comment on the default blobParams()
This commit is contained in:
@@ -26,6 +26,11 @@ cv::MediaFrame::View cv::MediaFrame::access(Access code) const {
|
||||
return m->adapter->access(code);
|
||||
}
|
||||
|
||||
cv::util::any cv::MediaFrame::blobParams() const
|
||||
{
|
||||
return m->adapter->blobParams();
|
||||
}
|
||||
|
||||
cv::MediaFrame::IAdapter* cv::MediaFrame::getAdapter() const {
|
||||
return m->adapter.get();
|
||||
}
|
||||
@@ -42,5 +47,11 @@ cv::MediaFrame::View::~View() {
|
||||
}
|
||||
}
|
||||
|
||||
cv::util::any cv::MediaFrame::IAdapter::blobParams() const
|
||||
{
|
||||
// Does nothing by default
|
||||
return {};
|
||||
}
|
||||
|
||||
cv::MediaFrame::IAdapter::~IAdapter() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user