MxDisplaySurface::SetPalette() (#358)

* Start MxDisplaySurface::SetPalette()

* Add Counting functions, more on SetPalette

* Finish base implementation of SetPalette and begin cleanup

* clang-format

* Fixes/improvements

* Format

* Fix naming

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Joshua Peisach
2023-12-30 16:47:07 -05:00
committed by GitHub
parent bb22b21260
commit 5400d7476f
2 changed files with 74 additions and 1 deletions

View File

@@ -92,6 +92,9 @@ public:
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
private:
MxU8 CountTotalBitsSetTo1(MxU32 p_param);
MxU8 CountContiguousBitsSetTo1(MxU32 p_param);
void Init();
MxVideoParam m_videoParam; // 0x08