Namespaces | |
namespace | detail |
namespace | nvg |
Classes | |
class | Plan |
class | Sink |
class | Source |
class | Transaction |
class | V4D |
Enumerations | |
enum | AllocateFlags { NONE = 0 , NANOVG = 1 , IMGUI = 2 , ALL = NANOVG | IMGUI } |
Functions | |
cv::Scalar | colorConvert (const cv::Scalar &src, cv::ColorConversionCodes code) |
std::string | getClInfo () |
std::string | getGlInfo () |
std::string | getGlVendor () |
void | gl_check_error (const std::filesystem::path &file, unsigned int line, const char *expression) |
unsigned int | initShader (const char *vShader, const char *fShader, const char *outputAttributeName) |
bool | isClGlSharingSupported () |
bool | isIntelVaSupported () |
bool | keepRunning () |
template<typename F , typename... Args> | |
cv::Ptr< Transaction > | make_transaction (F f, Args &&... args) |
template<typename F , typename Tfb , typename... Args> | |
cv::Ptr< Transaction > | make_transaction (F f, Tfb &&fb, Args &&... args) |
cv::Ptr< Source > | makeCaptureSource (cv::Ptr< V4D > window, const string &inputFilename) |
cv::Ptr< Sink > | makeVaSink (cv::Ptr< V4D > window, const string &outputFilename, const int fourcc, const float fps, const cv::Size &frameSize, const int vaDeviceIndex) |
cv::Ptr< Source > | makeVaSource (cv::Ptr< V4D > window, const string &inputFilename, const int vaDeviceIndex) |
cv::Ptr< Sink > | makeWriterSink (cv::Ptr< V4D > window, const string &outputFilename, const float fps, const cv::Size &frameSize) |
cv::Ptr< Sink > | makeWriterSink (cv::Ptr< V4D > window, const string &outputFilename, const float fps, const cv::Size &frameSize, const int fourcc) |
void | resizePreserveAspectRatio (const cv::UMat &src, cv::UMat &output, const cv::Size &dstSize, const cv::Scalar &bgcolor={0, 0, 0, 255}) |
Detailed Description
V4D namespace
Enumeration Type Documentation
◆ AllocateFlags
Function Documentation
◆ colorConvert()
cv::Scalar cv::v4d::colorConvert | ( | const cv::Scalar & | src, |
cv::ColorConversionCodes | code | ||
) |
Convenience function to color convert from Scalar to Scalar
- Parameters
-
src The scalar to color convert code The color converions code
- Returns
- The color converted scalar
◆ getClInfo()
std::string cv::v4d::getClInfo | ( | ) |
Returns the OpenCL Version information.
- Returns
- a string object with the OpenCL version information
◆ getGlInfo()
std::string cv::v4d::getGlInfo | ( | ) |
Returns the OpenGL Version information.
- Returns
- a string object with the OpenGL version information
◆ getGlVendor()
std::string cv::v4d::getGlVendor | ( | ) |
Returns the OpenGL vendor string
- Returns
- a string object with the OpenGL vendor information
◆ gl_check_error()
void cv::v4d::gl_check_error | ( | const std::filesystem::path & | file, |
unsigned int | line, | ||
const char * | expression | ||
) |
Convenience function to check for OpenGL errors. Should only be used via the macro GL_CHECK.
- Parameters
-
file The file path of the error. line The file line of the error. expression The expression that failed.
◆ initShader()
unsigned int cv::v4d::initShader | ( | const char * | vShader, |
const char * | fShader, | ||
const char * | outputAttributeName | ||
) |
◆ isClGlSharingSupported()
bool cv::v4d::isClGlSharingSupported | ( | ) |
Determines if cl_khr_gl_sharing is supported
- Returns
- true if it is supported
◆ isIntelVaSupported()
bool cv::v4d::isIntelVaSupported | ( | ) |
Determines if Intel VAAPI is supported
- Returns
- true if it is supported
◆ keepRunning()
bool cv::v4d::keepRunning | ( | ) |
Tells the application if it's alright to keep on running. Note: If you use this mechanism signal handlers are installed
- Returns
- true if the program should keep on running
◆ make_transaction() [1/2]
cv::Ptr< Transaction > cv::v4d::make_transaction | ( | F | f, |
Args &&... | args | ||
) |
◆ make_transaction() [2/2]
cv::Ptr< Transaction > cv::v4d::make_transaction | ( | F | f, |
Tfb && | fb, | ||
Args &&... | args | ||
) |
◆ makeCaptureSource()
cv::Ptr< Source > cv::v4d::makeCaptureSource | ( | cv::Ptr< V4D > | window, |
const string & | inputFilename | ||
) |
Creates a VideoCapture source object to use in conjunction with V4D::setSource(). This function automatically determines if Intel VAAPI is available and enables it if so.
- Parameters
-
inputFilename The file to read from.
- Returns
- A (optionally VAAPI enabled) VideoCapture enabled source object.
◆ makeVaSink()
cv::Ptr< Sink > cv::v4d::makeVaSink | ( | cv::Ptr< V4D > | window, |
const string & | outputFilename, | ||
const int | fourcc, | ||
const float | fps, | ||
const cv::Size & | frameSize, | ||
const int | vaDeviceIndex | ||
) |
Creates an Intel VAAPI enabled VideoWriter sink object to use in conjunction with V4D::setSink(). Usually you would call makeWriterSink() and let it automatically decide if VAAPI is available.
- Parameters
-
outputFilename The filename to write the video to. fourcc The fourcc code of the codec to use. fps The fps of the target video. frameSize The frame size of the target video. vaDeviceIndex The VAAPI device index to use.
- Returns
- A VAAPI enabled sink object.
◆ makeVaSource()
cv::Ptr< Source > cv::v4d::makeVaSource | ( | cv::Ptr< V4D > | window, |
const string & | inputFilename, | ||
const int | vaDeviceIndex | ||
) |
Creates an Intel VAAPI enabled VideoCapture source object to use in conjunction with V4D::setSource(). Usually you would call makeCaptureSource() and let it automatically decide if VAAPI is available.
- Parameters
-
inputFilename The file to read from. vaDeviceIndex The VAAPI device index to use.
- Returns
- A VAAPI enabled source object.
◆ makeWriterSink() [1/2]
cv::Ptr< Sink > cv::v4d::makeWriterSink | ( | cv::Ptr< V4D > | window, |
const string & | outputFilename, | ||
const float | fps, | ||
const cv::Size & | frameSize | ||
) |
Creates a VideoWriter sink object to use in conjunction with V4D::setSink(). This function automatically determines if Intel VAAPI is available and enables it if so.
- Parameters
-
outputFilename The filename to write the video to. fourcc The fourcc code of the codec to use. fps The fps of the target video. frameSize The frame size of the target video.
- Returns
- A (optionally VAAPI enabled) VideoWriter sink object.
◆ makeWriterSink() [2/2]
cv::Ptr< Sink > cv::v4d::makeWriterSink | ( | cv::Ptr< V4D > | window, |
const string & | outputFilename, | ||
const float | fps, | ||
const cv::Size & | frameSize, | ||
const int | fourcc | ||
) |
◆ resizePreserveAspectRatio()
void cv::v4d::resizePreserveAspectRatio | ( | const cv::UMat & | src, |
cv::UMat & | output, | ||
const cv::Size & | dstSize, | ||
const cv::Scalar & | bgcolor = {0, 0, 0, 255} |
||
) |