SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
ImageFormats.h File Reference
#include <sourcepp/Math.h>
Include dependency graph for ImageFormats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  vtfpp
 
namespace  vtfpp::ImageFormatDetails
 
namespace  vtfpp::ImageDimensions
 

Enumerations

enum class  vtfpp::ImageFormat : int32_t {
  vtfpp::RGBA8888 = 0 , vtfpp::ABGR8888 , vtfpp::RGB888 , vtfpp::BGR888 ,
  vtfpp::RGB565 , vtfpp::I8 , vtfpp::IA88 , vtfpp::P8 ,
  vtfpp::A8 , vtfpp::RGB888_BLUESCREEN , vtfpp::BGR888_BLUESCREEN , vtfpp::ARGB8888 ,
  vtfpp::BGRA8888 , vtfpp::DXT1 , vtfpp::DXT3 , vtfpp::DXT5 ,
  vtfpp::BGRX8888 , vtfpp::BGR565 , vtfpp::BGRX5551 , vtfpp::BGRA4444 ,
  vtfpp::DXT1_ONE_BIT_ALPHA , vtfpp::BGRA5551 , vtfpp::UV88 , vtfpp::UVWQ8888 ,
  vtfpp::RGBA16161616F , vtfpp::RGBA16161616 , vtfpp::UVLX8888 , vtfpp::R32F ,
  vtfpp::RGB323232F , vtfpp::RGBA32323232F , vtfpp::RG1616F , vtfpp::RG3232F ,
  vtfpp::RGBX8888 , vtfpp::EMPTY , vtfpp::ATI2N , vtfpp::ATI1N ,
  vtfpp::RGBA1010102 , vtfpp::BGRA1010102 , vtfpp::R16F , vtfpp::CONSOLE_BGRX8888_LINEAR = 42 ,
  vtfpp::CONSOLE_RGBA8888_LINEAR , vtfpp::CONSOLE_ABGR8888_LINEAR , vtfpp::CONSOLE_ARGB8888_LINEAR , vtfpp::CONSOLE_BGRA8888_LINEAR ,
  vtfpp::CONSOLE_RGB888_LINEAR , vtfpp::CONSOLE_BGR888_LINEAR , vtfpp::CONSOLE_BGRX5551_LINEAR , vtfpp::CONSOLE_I8_LINEAR ,
  vtfpp::CONSOLE_RGBA16161616_LINEAR , vtfpp::CONSOLE_BGRX8888_LE , vtfpp::CONSOLE_BGRA8888_LE , vtfpp::R8 = 69 ,
  vtfpp::BC7 , vtfpp::BC6H
}
 

Functions

constexpr int8_t vtfpp::ImageFormatDetails::red (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::decompressedRed (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::green (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::decompressedGreen (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::blue (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::decompressedBlue (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::alpha (ImageFormat format)
 
constexpr int8_t vtfpp::ImageFormatDetails::decompressedAlpha (ImageFormat format)
 
constexpr uint8_t vtfpp::ImageFormatDetails::bpp (ImageFormat format)
 
constexpr ImageFormat vtfpp::ImageFormatDetails::containerFormat (ImageFormat format)
 
constexpr bool vtfpp::ImageFormatDetails::large (ImageFormat format)
 
constexpr bool vtfpp::ImageFormatDetails::decimal (ImageFormat format)
 
constexpr bool vtfpp::ImageFormatDetails::compressed (ImageFormat format)
 
constexpr bool vtfpp::ImageFormatDetails::transparent (ImageFormat format)
 
constexpr bool vtfpp::ImageFormatDetails::opaque (ImageFormat format)
 
constexpr uint32_t vtfpp::ImageDimensions::getMipDim (uint8_t mip, uint16_t dim)
 
constexpr uint8_t vtfpp::ImageDimensions::getRecommendedMipCountForDims (ImageFormat format, uint16_t width, uint16_t height)
 
constexpr uint8_t vtfpp::ImageDimensions::getActualMipCountForDimsOnConsole (uint16_t width, uint16_t height)
 
constexpr uint32_t vtfpp::ImageFormatDetails::getDataLength (ImageFormat format, uint16_t width, uint16_t height, uint16_t sliceCount=1)
 
constexpr uint32_t vtfpp::ImageFormatDetails::getDataLength (ImageFormat format, uint8_t mipCount, uint16_t frameCount, uint8_t faceCount, uint16_t width, uint16_t height, uint16_t sliceCount=1)
 
constexpr bool vtfpp::ImageFormatDetails::getDataPosition (uint32_t &offset, uint32_t &length, ImageFormat format, uint8_t mip, uint8_t mipCount, uint16_t frame, uint16_t frameCount, uint8_t face, uint8_t faceCount, uint16_t width, uint16_t height, uint16_t slice=0, uint16_t sliceCount=1)