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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user