MCPcopy Create free account
hub / github.com/carlonluca/pot / getTextureCount

Method getTextureCount

piomxtextures_src/omx_staticconf.cpp:65–81  ·  view source on GitHub ↗

------------------------------------------------------------------------------ | OMX_StaticConf::getTextureCount +-----------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

63| OMX_StaticConf::getTextureCount
64+-----------------------------------------------------------------------------*/
65int OMX_StaticConf::getTextureCount()
66{
67 static int textureCount = 4;
68 std::call_once(flag3, []() {
69 QByteArray ba = qgetenv("POT_TEXTURE_COUNT");
70 if (ba.isEmpty() || ba.isNull())
71 return;
72 bool convOk;
73 int tc = ba.toInt(&convOk);
74 if (convOk && tc > 1)
75 textureCount = tc;
76
77 log_verbose("Setting texture count to %d.", textureCount);
78 });
79
80 return textureCount;
81}
82
83/*------------------------------------------------------------------------------
84| OMX_StaticConf::getInterlaceMode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected