mirror of
https://github.com/wiiu-env/ScreenshotWUPS.git
synced 2024-06-03 01:48:45 +02:00
15 lines
480 B
C
15 lines
480 B
C
#ifndef _SCREENSHOT_UTILS_H_
|
|
#define _SCREENSHOT_UTILS_H_
|
|
|
|
#include <gx2/surface.h>
|
|
#include <utils/logger.h>
|
|
#include "JpegInformation.h"
|
|
|
|
JpegInformation * convertToJpeg(uint8_t * sourceBuffer, uint32_t width, uint32_t height, uint32_t pitch, uint32_t format, int32_t quality);
|
|
|
|
bool copyBuffer(GX2ColorBuffer * sourceBuffer, GX2ColorBuffer * targetBuffer, uint32_t targetWidth, uint32_t targetHeight);
|
|
|
|
bool takeScreenshot(GX2ColorBuffer *srcBuffer,const char * path);
|
|
|
|
#endif
|