1
0
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:
Alexey Smirnov
2021-06-08 11:58:51 +03:00
committed by GitHub
parent 1b5fe91624
commit d9ed9a9a83
4 changed files with 50 additions and 0 deletions
+11
View File
@@ -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() {
}