mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
style(ui): update stride data array declaration in CSimpleMovieFrame.cpp
This commit is contained in:
parent
2a526e6196
commit
6ec90df663
1 changed files with 43 additions and 1 deletions
|
|
@ -408,7 +408,49 @@ int32_t CSimpleMovieFrame::OpenVideo() {
|
||||||
|
|
||||||
const uint32_t widthByFormat[6] = { 800, 1024, 800, 1024, 800, 1024 };
|
const uint32_t widthByFormat[6] = { 800, 1024, 800, 1024, 800, 1024 };
|
||||||
const uint32_t heightByFormat[6] = { 384, 512, 512, 576, 384, 512 };
|
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;
|
const uint32_t imageSize = widthByFormat[this->m_textureFormat] * heightByFormat[this->m_textureFormat] * 4;
|
||||||
this->m_imageData = reinterpret_cast<char*>(ALLOC_ZERO(imageSize));
|
this->m_imageData = reinterpret_cast<char*>(ALLOC_ZERO(imageSize));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue