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

Function GetPixelFormatName

Engine/source/gfx/video/theoraTexture.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66//-----------------------------------------------------------------------------
67
68static const char* GetPixelFormatName( OggTheoraDecoder::EPixelFormat format )
69{
70 switch( format )
71 {
72 case OggTheoraDecoder::PIXEL_FORMAT_420:
73 return "4:2:0";
74 case OggTheoraDecoder::PIXEL_FORMAT_422:
75 return "4:2:2";
76 case OggTheoraDecoder::PIXEL_FORMAT_444:
77 return "4:4:4";
78
79 case OggTheoraDecoder::PIXEL_FORMAT_Unknown: ;
80 }
81 return "Unknown";
82}
83
84//=============================================================================
85// TheoraTexture::FrameReadItem implementation.

Callers 1

setFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected