1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add const version of PackFrameImage().

Temporary buffer needs to be handled outside of the function.
This commit is contained in:
Bartosz Taudul
2019-09-20 22:55:55 +02:00
parent b362baed5f
commit e1e5d6bd47
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -393,6 +393,7 @@ public:
const FailureData& GetFailureData() const { return m_failureData; }
static const char* GetFailureString( Failure failure );
void PackFrameImage( char*& buf, size_t& bufsz, const char* image, uint16_t w, uint16_t h, uint32_t& csz ) const;
const char* PackFrameImage( const char* image, uint16_t w, uint16_t h, uint32_t& csz );
const char* UnpackFrameImage( const FrameImage& image );