style(ui): update stride data array declaration in CSimpleMovieFrame.cpp

This commit is contained in:
VDm 2025-05-01 01:42:45 +04:00
parent 2a526e6196
commit 6ec90df663

View File

@ -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<char*>(ALLOC_ZERO(imageSize));