Files
UnleashedRecomp/UnleashedRecomp/api/SWA/Sequence/Utility/SequencePlayMovieWrapper.h
T
Hyper 9a29b187cd Implemented support for maintaining aspect ratio for movies (#73)
* video_patches: aspect ratio support for CPlayMovieWrapper

* config: remove movie scale mode option

* video_patches: improve movie aspect ratio correction, support intro logos

Co-Authored-By: Darío <538504+DarioSamo@users.noreply.github.com>
Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>

* api: upload Inspire research

* api: move Vertex struct

---------

Co-authored-by: Darío <538504+DarioSamo@users.noreply.github.com>
Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
2025-01-12 18:53:31 +03:00

41 lines
1012 B
C++

#pragma once
#include "SWA.inl"
#include "Hedgehog/MirageCore/Renderable/hhRenderable.h"
namespace SWA::Sequence::Utility
{
class CPlayMovieWrapper
{
public:
class CRender : public Hedgehog::Mirage::CRenderable
{
public:
struct SVertexData
{
be<float> X;
be<float> Y;
be<float> Z;
be<float> U;
be<float> V;
};
be<uint32_t> m_ScreenWidth;
be<uint32_t> m_ScreenHeight;
be<float> m_MovieWidth;
be<float> m_MovieHeight;
SWA_INSERT_PADDING(0x74);
SVertexData m_TopLeft;
SVertexData m_TopRight;
SVertexData m_BottomRight;
SVertexData m_BottomLeft;
bool m_MaintainAspectRatio;
SWA_INSERT_PADDING(0x18);
be<float> m_TimeElapsed;
};
SWA_INSERT_PADDING(0x18);
xpointer<CRender> m_pRender;
};
}