Fix avi dump via render buffer instead,

with an option to use output buffer since recording with
post process effects will often be desirable.
This commit is contained in:
LunaMoo committed 2019-06-04 07:54:17 +02:00
1 parent 57bd3c63f4
commit da031ebbdb
10 files changed
+26 -7

No files matched your search

+11 -3
View File
@@ -169,9 +169,17 @@ static void PreparePacket(AVPacket* pkt) {
void AVIDump::AddFrame()
{
gpuDebug->GetOutputFramebuffer(buf);
u32 w = buf.GetStride();
u32 h = buf.GetHeight();
u32 w = 0;
u32 h = 0;
if (g_Config.bDumpVideoOutput) {
gpuDebug->GetOutputFramebuffer(buf);
w = buf.GetStride();
h = buf.GetHeight();
} else {
gpuDebug->GetCurrentFramebuffer(buf, GPU_DBG_FRAMEBUF_RENDER);
w = PSP_CoreParameter().renderWidth;
h = PSP_CoreParameter().renderHeight;
}
CheckResolution(w, h);
u8 *flipbuffer = nullptr;
const u8 *buffer = ConvertBufferToScreenshot(buf, false, flipbuffer, w, h);