diff --git a/src/ui/CSimpleMovieFrame.cpp b/src/ui/CSimpleMovieFrame.cpp index c41cd1a..fc907d4 100644 --- a/src/ui/CSimpleMovieFrame.cpp +++ b/src/ui/CSimpleMovieFrame.cpp @@ -408,7 +408,49 @@ int32_t CSimpleMovieFrame::OpenVideo() { const uint32_t widthByFormat[6] = { 800, 1024, 800, 1024, 800, 1024 }; const uint32_t heightByFormat[6] = { 384, 512, 512, 576, 384, 512 }; - static uint32_t s_strideData[144] = { 512, 256, 0, 3200, 256, 256, 2048, 3200, 32, 256, 3072, 3200, 512, 128, 819200, 3200, 256, 128, 821248, 3200, 32, 128, 822272, 3200, 512, 512, 0, 4096, 512, 512, 2048, 4096, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 512, 512, 0, 3200, 256, 512, 2048, 3200, 32, 512, 3072, 3200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 512, 512, 0, 4096, 512, 512, 2048, 4096, 512, 64, 2097152, 4096, 512, 64, 2099200, 4096, 0, 0, 0, 0, 0, 0, 0, 0, 512, 256, 0, 3200, 256, 256, 2048, 3200, 32, 256, 3072, 3200, 512, 128, 819200, 3200, 256, 128, 821248, 3200, 32, 128, 822272, 3200, 512, 512, 0, 4096, 512, 512, 2048, 4096, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; + static uint32_t s_strideData[144] = { + 512, 256, 0, 3200, + 256, 256, 2048, 3200, + 32, 256, 3072, 3200, + 512, 128, 819200, 3200, + 256, 128, 821248, 3200, + 32, 128, 822272, 3200, + + 512, 512, 0, 4096, + 512, 512, 2048, 4096, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + + 512, 512, 0, 3200, + 256, 512, 2048, 3200, + 32, 512, 3072, 3200, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + + 512, 512, 0, 4096, + 512, 512, 2048, 4096, + 512, 64, 2097152, 4096, + 512, 64, 2099200, 4096, + 0, 0, 0, 0, + 0, 0, 0, 0, + + 512, 256, 0, 3200, + 256, 256, 2048, 3200, + 32, 256, 3072, 3200, + 512, 128, 819200, 3200, + 256, 128, 821248, 3200, + 32, 128, 822272, 3200, + + 512, 512, 0, 4096, + 512, 512, 2048, 4096, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0 + }; const uint32_t imageSize = widthByFormat[this->m_textureFormat] * heightByFormat[this->m_textureFormat] * 4; this->m_imageData = reinterpret_cast(ALLOC_ZERO(imageSize));