diff --git a/src/beauty/beauty-demo.cpp b/src/beauty/beauty-demo.cpp index a86bf2f02..57c942e3c 100644 --- a/src/beauty/beauty-demo.cpp +++ b/src/beauty/beauty-demo.cpp @@ -188,7 +188,7 @@ int main(int argc, char **argv) { facemark->loadModel("assets/lbfmodel.yaml"); cv::VideoCapture capture(argv[1], cv::CAP_FFMPEG, { cv::CAP_PROP_HW_DEVICE, VA_HW_DEVICE_INDEX, cv::CAP_PROP_HW_ACCELERATION, cv::VIDEO_ACCELERATION_VAAPI, cv::CAP_PROP_HW_ACCELERATION_USE_OPENCL, 1 }); - //Copy OpenCL Context for VAAPI. Must be called right after VideoWriter/VideoCapture initialization. + //Copy OpenCL Context for VAAPI. Must be called right after first VideoWriter/VideoCapture initialization. va::copy(); if (!capture.isOpened()) { diff --git a/src/font/font-demo.cpp b/src/font/font-demo.cpp index 2ccbc9bcd..1a7e8d842 100644 --- a/src/font/font-demo.cpp +++ b/src/font/font-demo.cpp @@ -34,7 +34,7 @@ int main(int argc, char **argv) { cv::VIDEOWRITER_PROP_HW_ACCELERATION_USE_OPENCL, 1 }); - //Copy OpenCL Context for VAAPI. Must be called right after VideoWriter/VideoCapture initialization. + //Copy OpenCL Context for VAAPI. Must be called right after first VideoWriter/VideoCapture initialization. va::copy(); //If we render offscreen we don't need x11. @@ -139,7 +139,7 @@ int main(int argc, char **argv) { //Transfer buffer ownership back to OpenGL. gl::release_to_gl(frameBuffer); - //If x11 is enabled it displays the framebuffer in the native window. returns false if the window was closed. + //If x11 is enabled it displays the framebuffer in the native window. Returns false if the window was closed. if(!gl::display()) break; diff --git a/src/nanovg/nanovg-demo.cpp b/src/nanovg/nanovg-demo.cpp index 6bc0e0a24..880ff4626 100644 --- a/src/nanovg/nanovg-demo.cpp +++ b/src/nanovg/nanovg-demo.cpp @@ -131,7 +131,7 @@ int main(int argc, char **argv) { cv::CAP_PROP_HW_ACCELERATION_USE_OPENCL, 1 }); - //Copy OpenCL Context for VAAPI. Must be called right after VideoWriter/VideoCapture initialization. + //Copy OpenCL Context for VAAPI. Must be called right after first VideoWriter/VideoCapture initialization. va::copy(); // Check if we succeeded @@ -216,7 +216,7 @@ int main(int argc, char **argv) { //Transfer buffer ownership back to OpenGL gl::release_to_gl(frameBuffer); - //if x11 is enabled it displays the framebuffer in the native window. returns false if the window was closed. + //if x11 is enabled it displays the framebuffer in the native window. Returns false if the window was closed. if(!gl::display()) break; diff --git a/src/optflow/optflow-demo.cpp b/src/optflow/optflow-demo.cpp index 2ab467f65..6c9ddf86b 100644 --- a/src/optflow/optflow-demo.cpp +++ b/src/optflow/optflow-demo.cpp @@ -189,7 +189,7 @@ int main(int argc, char **argv) { cv::CAP_PROP_HW_ACCELERATION_USE_OPENCL, 1 }); - //Copy OpenCL Context for VAAPI. Must be called right after VideoWriter/VideoCapture initialization. + //Copy OpenCL Context for VAAPI. Must be called right after first VideoWriter/VideoCapture initialization. va::copy(); if (!capture.isOpened()) { @@ -250,7 +250,7 @@ int main(int argc, char **argv) { cv::cvtColor(frameBuffer, videoFrame, cv::COLOR_BGRA2RGB); gl::release_to_gl(frameBuffer); - //if x11 is enabled it displays the framebuffer in the native window. returns false if the window was closed. + //if x11 is enabled it displays the framebuffer in the native window. Returns false if the window was closed. if(!gl::display()) break; diff --git a/src/tetra/tetra-demo.cpp b/src/tetra/tetra-demo.cpp index 812a7f76f..b7711362b 100644 --- a/src/tetra/tetra-demo.cpp +++ b/src/tetra/tetra-demo.cpp @@ -90,7 +90,7 @@ int main(int argc, char **argv) { cv::VIDEOWRITER_PROP_HW_ACCELERATION_USE_OPENCL, 1 }); - //Copy OpenCL Context for VAAPI. Must be called right after VideoWriter/VideoCapture initialization. + //Copy OpenCL Context for VAAPI. Must be called right after first VideoWriter/VideoCapture initialization. va::copy(); //If we are rendering offscreen we don't need x11 @@ -128,7 +128,7 @@ int main(int argc, char **argv) { //Release the frame buffer for use by OpenGL gl::release_to_gl(frameBuffer); - //if x11 is enabled it displays the framebuffer in the native window. returns false if the window was closed. + //if x11 is enabled it displays the framebuffer in the native window. Returns false if the window was closed. if(!gl::display()) break; diff --git a/src/video/video-demo.cpp b/src/video/video-demo.cpp index b7e64de4f..6c1c1ab5e 100644 --- a/src/video/video-demo.cpp +++ b/src/video/video-demo.cpp @@ -95,7 +95,7 @@ int main(int argc, char **argv) { cv::CAP_PROP_HW_ACCELERATION_USE_OPENCL, 1 }); - //Copy OpenCL Context for VAAPI. Must be called right after VideoWriter/VideoCapture initialization. + //Copy OpenCL Context for VAAPI. Must be called right after first VideoWriter/VideoCapture initialization. va::copy(); if (!capture.isOpened()) { @@ -167,7 +167,7 @@ int main(int argc, char **argv) { //Release the frame buffer for use by OpenGL gl::release_to_gl(frameBuffer); - //if x11 is enabled it displays the framebuffer in the native window. returns false if the window was closed. + //if x11 is enabled it displays the framebuffer in the native window. Returns false if the window was closed. if(!gl::display()) break;