mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #18292 from smirnov-alexey:as/osd_serialization
[G-API]: Support render primitives serialization * Add GOpaque and GArray serialization support * Address review comments * Remove holds() method * Add serialization mechanism for render primitives * Fix standalone mode * Fix wchar_t error on win64 * Fix assert on windows * Address review comments * Fix GArray and GOpaque reset() method to store proper kind * Reset wchar before deserializing it * Fix wchar_t cross-platform issue * Address review comments * Fix wchar_t serialization and tests * Remove FText serialization
This commit is contained in:
@@ -235,4 +235,13 @@ TEST(GOpaque_OpaqueRef, Kind)
|
||||
cv::detail::OpaqueRef v8(std::string{});
|
||||
EXPECT_EQ(cv::detail::OpaqueKind::CV_UNKNOWN, v8.getKind());
|
||||
}
|
||||
|
||||
TEST(GOpaque_OpaqueRef, TestReset)
|
||||
{
|
||||
// Warning: this test is testing some not-very-public APIs
|
||||
cv::detail::OpaqueRef opref(int{42});
|
||||
EXPECT_EQ(cv::detail::OpaqueKind::CV_INT, opref.getKind());
|
||||
opref.reset<int>();
|
||||
EXPECT_EQ(cv::detail::OpaqueKind::CV_INT, opref.getKind());
|
||||
}
|
||||
} // namespace opencv_test
|
||||
|
||||
Reference in New Issue
Block a user