2020-12-11 16:41:37 +01:00
|
|
|
#pragma once
|
2018-07-01 19:12:35 +02:00
|
|
|
|
2020-12-11 16:41:37 +01:00
|
|
|
#include "common.h"
|
|
|
|
#include "utils/logger.h"
|
2018-07-01 19:12:35 +02:00
|
|
|
#include <gx2/surface.h>
|
2020-12-11 16:41:37 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <optional>
|
|
|
|
#include <string>
|
2018-07-01 19:12:35 +02:00
|
|
|
|
2020-12-11 16:41:37 +01:00
|
|
|
bool saveTextureAsPicture(const std::string &path, uint8_t *sourceBuffer, uint32_t width, uint32_t height, uint32_t pitch, GX2SurfaceFormat format, ImageOutputFormatEnum outputFormat, bool convertRGBtoSRGB, int quality);
|
2018-07-01 19:12:35 +02:00
|
|
|
|
|
|
|
|
2022-09-24 21:32:49 +02:00
|
|
|
bool takeScreenshot(GX2ColorBuffer *srcBuffer, GX2ScanTarget scanTarget, GX2SurfaceFormat outputBufferSurfaceFormat, ImageOutputFormatEnum outputFormat, int quality);
|