diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-11 19:24:48 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-11 19:24:48 (GMT) |
| commit | 08b4e5553aa10df74c4fdb0ba519fb700fa8100b (patch) | |
| tree | 68cda233dcd82978c377978bb19b1fd61bbe0c70 /src/Format.h | |
| parent | ecbb1e910352aec1cda4e2d4c36cf3599bc43963 (diff) | |
| download | powder-08b4e5553aa10df74c4fdb0ba519fb700fa8100b.zip powder-08b4e5553aa10df74c4fdb0ba519fb700fa8100b.tar.gz | |
Implement some missing lua functions, PNG format creation (requires zlib)
Diffstat (limited to 'src/Format.h')
| -rw-r--r-- | src/Format.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Format.h b/src/Format.h index 1df883f..fc55f8f 100644 --- a/src/Format.h +++ b/src/Format.h @@ -1,7 +1,9 @@ #pragma once #include <sstream> +#include <vector> +class VideoBuffer; namespace format { template <typename T> std::string NumberToString(T number) @@ -20,4 +22,6 @@ namespace format std::string UnixtimeToDate(time_t unixtime, std::string dateFomat = "%d %b %Y"); std::string UnixtimeToDateMini(time_t unixtime); + std::vector<char> VideoBufferToPNG(const VideoBuffer & vidBuf); + unsigned long CalculateCRC(unsigned char * data, int length); }
\ No newline at end of file |
