-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse JPegCompress plugin #782
base: master
Are you sure you want to change the base?
Conversation
IWICBitmapFrameEncode* frame{}; | ||
GUID format{ GUID_WICPixelFormat24bppBGR }; | ||
|
||
#define HRCHK(hr) if (FAILED((hr))) { NOTSA_LOG_ERR("Couldn't encode screenshot. Your capture is not saved."); return; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Couldn't encode screenshot." might be misleading. I'd also include the status in the message.
Or perhaps just use VERIFY
(or WIN_VERIFY? not sure)
|
||
// 0x5D07A0 - unused | ||
bool JPegDecompressToVramFromBuffer(RwRaster* raster, uint8** unk) { | ||
static auto s_ScreenshotFileBuf = StaticRef<std::array<uint8, 204'800>>(0xBD0B78); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to use GTA's buffer here?
Or we can use our own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can but why
void JPegDecompressToRaster(RwRaster* raster, struct jpeg_source_mgr& src); | ||
void JPegDecompressToVramFromBuffer(RwRaster* raster, RwInt8** unk); | ||
// 0x5D07A0 | ||
bool JPegDecompressToVramFromBuffer(RwRaster* raster, uint8** unk); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well just use byte
instead
I just noticed that the sole reason of you adding |
reimplemented d3dx/libjpeg shit with wic