|
static bool | GetThumbnailFromSurface (const unsigned char *buffer, int width, int height, int stride, const std::string &thumbFile, uint8_t *&result, size_t &result_size) |
|
static bool | CreateThumbnailFromSurface (const unsigned char *buffer, int width, int height, int stride, const std::string &thumbFile) |
|
static std::unique_ptr< CTexture > | CreateTiledThumb (const std::vector< std::string > &files) |
|
static bool | ResizeTexture (const std::string &image, CTexture *texture, uint32_t &dest_width, uint32_t &dest_height, uint8_t *&result, size_t &result_size, CPictureScalingAlgorithm::Algorithm scalingAlgorithm=CPictureScalingAlgorithm::NoAlgorithm) |
|
static bool | ResizeTexture (const std::string &image, uint8_t *pixels, uint32_t width, uint32_t height, uint32_t pitch, uint32_t &dest_width, uint32_t &dest_height, uint8_t *&result, size_t &result_size, CPictureScalingAlgorithm::Algorithm scalingAlgorithm=CPictureScalingAlgorithm::NoAlgorithm) |
|
static bool | CacheTexture (CTexture *texture, uint32_t &dest_width, uint32_t &dest_height, const std::string &dest, CPictureScalingAlgorithm::Algorithm scalingAlgorithm=CPictureScalingAlgorithm::NoAlgorithm) |
| Cache a texture, resizing, rotating and flipping as needed, and saving as a JPG or PNG.
|
|
static bool | CacheTexture (uint8_t *pixels, uint32_t width, uint32_t height, uint32_t pitch, int orientation, uint32_t &dest_width, uint32_t &dest_height, const std::string &dest, CPictureScalingAlgorithm::Algorithm scalingAlgorithm=CPictureScalingAlgorithm::NoAlgorithm) |
|
static void | GetScale (unsigned int width, unsigned int height, unsigned int &out_width, unsigned int &out_height) |
|
static bool | ScaleImage (uint8_t *in_pixels, unsigned int in_width, unsigned int in_height, unsigned int in_pitch, AVPixelFormat in_format, uint8_t *out_pixels, unsigned int out_width, unsigned int out_height, unsigned int out_pitch, AVPixelFormat out_format, CPictureScalingAlgorithm::Algorithm scalingAlgorithm=CPictureScalingAlgorithm::NoAlgorithm) |
|