Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
548 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: png functions
  4. //
  5. //=============================================================================
  6. #include "tier0/platform.h"
  7. #include "tier1/utlbuffer.h"
  8. // Get dimensions out of PNG header
  9. bool GetPNGDimensions( const byte *pubPNGData, int cubPNGData, uint32 &width, uint32 &height );
  10. // parses out a png file into an RGBA memory buffer
  11. bool ConvertPNGToRGBA( const byte *pubPNGData, int cubPNGData, CUtlBuffer &bufOutput, int &width, int &height );