MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetSourceEncoding

Method GetSourceEncoding

samples/common/src/CVUtils/CvVideoFrameReader.cpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61std::string CvVideoFrameReader::GetSourceEncoding() const
62{
63 char fourccStr[5];
64 auto fourcc = (int)m_capture.get(cv::CAP_PROP_FOURCC);
65 sprintf(fourccStr,"%c%c%c%c",fourcc & 0xFF, (fourcc >> 8) & 0xFF, (fourcc >> 16) & 0xFF, (fourcc >> 24) & 0xFF);
66 return fourccStr;
67}
68
69int CvVideoFrameReader::GetSourceEncodingInt() const
70{

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected