mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Video: remove enforced resolution least common multiple of 4 when dumping screenshots and not videos (only videos encoders have this limit).
NOTE: this will likely trigger FIFOCI differences.
This commit is contained in:
@ -18,6 +18,9 @@
|
||||
#include "VideoCommon/Present.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
// The video encoder needs the image to be a multiple of x samples.
|
||||
static constexpr int VIDEO_ENCODER_LCM = 4;
|
||||
|
||||
static bool DumpFrameToPNG(const FrameData& frame, const std::string& file_name)
|
||||
{
|
||||
return Common::ConvertRGBAToRGBAndSavePNG(file_name, frame.data, frame.width, frame.height,
|
||||
@ -354,6 +357,13 @@ bool FrameDumper::IsFrameDumping() const
|
||||
return false;
|
||||
}
|
||||
|
||||
int FrameDumper::GetRequiredResolutionLeastCommonMultiple() const
|
||||
{
|
||||
if (Config::Get(Config::MAIN_MOVIE_DUMP_FRAMES))
|
||||
return VIDEO_ENCODER_LCM;
|
||||
return 1;
|
||||
}
|
||||
|
||||
void FrameDumper::DoState(PointerWrap& p)
|
||||
{
|
||||
#ifdef HAVE_FFMPEG
|
||||
|
Reference in New Issue
Block a user