------------------------------------------------------------------------------ | OMX_StaticConf::getTextureCount +-----------------------------------------------------------------------------*/
| 63 | | OMX_StaticConf::getTextureCount |
| 64 | +-----------------------------------------------------------------------------*/ |
| 65 | int 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 |
nothing calls this directly
no outgoing calls
no test coverage detected