Support queue capacity as graph compilation argument#20119
Support queue capacity as graph compilation argument#20119alalek merged 4 commits intoopencv:masterfrom
Conversation
|
@dmatveev Have a look, please |
| * fetch next frame while current is being processed. This compilation argument | ||
| * specifies the capacity of this queue. | ||
| */ | ||
| struct queue_capacity |
There was a problem hiding this comment.
OpenCV uses CamelCase for structures/classes/enum types.
There was a problem hiding this comment.
yes and so we do, but for some reason the graph compile arguments were started as snake_case (probably, unintentionally) so we follow it there now.
It is worth aligning in scope of 5.0 I believe.
| * fetch next frame while current is being processed. This compilation argument | ||
| * specifies the capacity of this queue. | ||
| */ | ||
| struct queue_capacity |
There was a problem hiding this comment.
yes and so we do, but for some reason the graph compile arguments were started as snake_case (probably, unintentionally) so we follow it there now.
It is worth aligning in scope of 5.0 I believe.
| struct GAPI_Streaming: public ::testing::TestWithParam<KernelPackage> { | ||
| GAPI_Streaming() { initTestDataPath(); } | ||
| struct GAPI_Streaming: public ::testing::TestWithParam<std::tuple<KernelPackage, | ||
| cv::optional<size_t>>> { |
There was a problem hiding this comment.
BTW optional doesn't print properly, It prints 0 if doesn't contain value.
I've tried to implement operator<< as for KernelPackage but it doesn't work :(
There was a problem hiding this comment.
Can you just use compile_args? += should work for those.
There was a problem hiding this comment.
What this compile_args should contain ? I guess queue_capacity and GKernelPackage.
But for SmokeTest_AutoMeta_VideoArray need to exclude GKernelPackage and use cv::gapi::kernels<TypesTest::OCVAddV>() instead
ca4d109 to
4c65c27
Compare
dmatveev
left a comment
There was a problem hiding this comment.
Go ahead with merge. Thanks.
…r-queue-capacity * Support queue capacity as graph compilation argument * Fix comments to review * Fix comments to review * Fix comments to review
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.