MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _detect

Method _detect

Engine/source/core/ogg/oggTheoraDecoder.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134//-----------------------------------------------------------------------------
135
136bool OggTheoraDecoder::_detect( ogg_page* startPage )
137{
138 _setStartPage( startPage );
139
140 // Read first header packet.
141
142 ogg_packet nextPacket;
143 if( !_readNextPacket( &nextPacket )
144 || th_decode_headerin( &mTheoraInfo, &mTheoraComment, &mTheoraSetup, &nextPacket ) < 0 )
145 {
146 th_comment_clear( &mTheoraComment );
147 th_info_clear( &mTheoraInfo );
148
149 return false;
150 }
151
152 return true;
153}
154
155//-----------------------------------------------------------------------------
156

Callers 1

initMethod · 0.45

Calls 3

th_decode_headerinFunction · 0.85
th_comment_clearFunction · 0.85
th_info_clearFunction · 0.85

Tested by

no test coverage detected