mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-06 04:33:49 +01:00
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:
1 parent
57bd3c63f4
commit
da031ebbdb
10 files changed
+26
-7
No files matched your search
+11
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user