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
+7
View File
@@ -174,4 +174,11 @@ TEST(MediaFrame, Callback) {
EXPECT_EQ(3, counter);
}
TEST(MediaFrame, blobParams) {
cv::Mat bgr = cv::Mat::eye(240, 320, CV_8UC3);
cv::MediaFrame frame = cv::MediaFrame::Create<TestMediaBGR>(bgr);
EXPECT_NO_THROW(frame.blobParams());
}
} // namespace opencv_test