MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / GetFormat

Function GetFormat

applications/_plugins/common/atiformats.cpp:720–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720static CMP_FORMAT GetFormat(CMP_DWORD dwFourCC)
721{
722 switch (dwFourCC)
723 {
724 case CMP_FOURCC_ATI1N:
725 return CMP_FORMAT_ATI1N;
726 case CMP_FOURCC_ATI2N:
727 return CMP_FORMAT_ATI2N;
728 case CMP_FOURCC_ATI2N_XY:
729 return CMP_FORMAT_ATI2N_XY;
730 case CMP_FOURCC_ATI2N_DXT5:
731 return CMP_FORMAT_ATI2N_DXT5;
732 case CMP_FOURCC_DXT1:
733 return CMP_FORMAT_DXT1;
734 case CMP_FOURCC_DXT3:
735 return CMP_FORMAT_DXT3;
736 case CMP_FOURCC_DXT5:
737 return CMP_FORMAT_DXT5;
738 case CMP_FOURCC_DXT5_xGBR:
739 return CMP_FORMAT_DXT5_xGBR;
740 case CMP_FOURCC_DXT5_RxBG:
741 return CMP_FORMAT_DXT5_RxBG;
742 case CMP_FOURCC_DXT5_RBxG:
743 return CMP_FORMAT_DXT5_RBxG;
744 case CMP_FOURCC_DXT5_xRBG:
745 return CMP_FORMAT_DXT5_xRBG;
746 case CMP_FOURCC_DXT5_RGxB:
747 return CMP_FORMAT_DXT5_RGxB;
748 case CMP_FOURCC_DXT5_xGxR:
749 return CMP_FORMAT_DXT5_xGxR;
750
751 // Deprecated but still supported for decompression
752 // Some definition are not valid FOURCC values nut are used as Custom formats
753 // so that DDS files can be used for storage
754 case CMP_FOURCC_DXT5_GXRB:
755 return CMP_FORMAT_DXT5_xRBG;
756 case CMP_FOURCC_DXT5_GRXB:
757 return CMP_FORMAT_DXT5_RxBG;
758 case CMP_FOURCC_DXT5_RXGB:
759 return CMP_FORMAT_DXT5_xGBR;
760 case CMP_FOURCC_DXT5_BRGX:
761 return CMP_FORMAT_DXT5_RGxB;
762
763 case CMP_FOURCC_ATC_RGB:
764 return CMP_FORMAT_ATC_RGB;
765 case CMP_FOURCC_ATC_RGBA_EXPLICIT:
766 return CMP_FORMAT_ATC_RGBA_Explicit;
767 case CMP_FOURCC_ATC_RGBA_INTERP:
768 return CMP_FORMAT_ATC_RGBA_Interpolated;
769 case CMP_FOURCC_ETC_RGB:
770 return CMP_FORMAT_ETC_RGB;
771 case CMP_FOURCC_ETC2_RGB:
772 return CMP_FORMAT_ETC2_RGB;
773 case CMP_FOURCC_ETC2_SRGB:
774 return CMP_FORMAT_ETC2_SRGB;
775 case CMP_FOURCC_ETC2_RGBA:
776 return CMP_FORMAT_ETC2_RGBA;
777 case CMP_FOURCC_ETC2_RGBA1:

Callers 3

ProcessCMDLineFunction · 0.70
LoadPluginImageMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected