mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
style(ui): update code style in CSimpleMovieFrame.cpp
This commit is contained in:
parent
c721538698
commit
2a526e6196
@ -554,21 +554,55 @@ int32_t CSimpleMovieFrame::DecodeFrame(bool update) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t s_movieTextureUpdate[144] = {
|
||||
0, 6, 512, 256, 0, 6, 256, 256, 0, 6, 32, 256, 0, 0, 512, 122,
|
||||
0, 0, 256, 122, 0, 0, 32, 122, 0, 24, 512, 512, 0, 0, 512, 488,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 512, 480, 0,
|
||||
32, 256, 480, 0, 32, 32, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 512, 512, 0, 0, 512, 512, 0, 0, 512, 64, 0, 0, 512, 64, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 21, 512, 256, 0, 21, 256, 256, 0, 21, 32, 256, 0, 0, 512,
|
||||
107, 0, 0, 256, 107, 0, 0, 32, 107, 0, 38, 512, 512, 0, 0, 512, 474, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
static int32_t s_movieTextureUpdate[] = {
|
||||
0, 6, 512, 256, // Format: 0, Texture: 0
|
||||
0, 6, 256, 256, // Format: 0, Texture: 1
|
||||
0, 6, 32, 256, // Format: 0, Texture: 2
|
||||
0, 0, 512, 122, // Format: 0, Texture: 3
|
||||
0, 0, 256, 122, // Format: 0, Texture: 4
|
||||
0, 0, 32, 122, // Format: 0, Texture: 5
|
||||
|
||||
0, 24, 512, 512, // Format: 1, Texture: 0
|
||||
0, 0, 512, 488, // Format: 1, Texture: 1
|
||||
0, 0, 0, 0, // Format: 1, Texture: 2
|
||||
0, 0, 0, 0, // Format: 1, Texture: 3
|
||||
0, 0, 0, 0, // Format: 1, Texture: 4
|
||||
0, 0, 0, 0, // Format: 1, Texture: 5
|
||||
|
||||
0, 32, 512, 480, // Format: 2, Texture: 0
|
||||
0, 32, 256, 480, // Format: 2, Texture: 1
|
||||
0, 32, 32, 480, // Format: 2, Texture: 2
|
||||
0, 0, 0, 0, // Format: 2, Texture: 3
|
||||
0, 0, 0, 0, // Format: 2, Texture: 4
|
||||
0, 0, 0, 0, // Format: 2, Texture: 5
|
||||
|
||||
0, 0, 512, 512, // Format: 3, Texture: 0
|
||||
0, 0, 512, 512, // Format: 3, Texture: 1
|
||||
0, 0, 512, 64, // Format: 3, Texture: 2
|
||||
0, 0, 512, 64, // Format: 3, Texture: 3
|
||||
0, 0, 0, 0, // Format: 3, Texture: 4
|
||||
0, 0, 0, 0, // Format: 3, Texture: 5
|
||||
|
||||
0, 21, 512, 256, // Format: 4, Texture: 0
|
||||
0, 21, 256, 256, // Format: 4, Texture: 1
|
||||
0, 21, 32, 256, // Format: 4, Texture: 2
|
||||
0, 0, 512, 107, // Format: 4, Texture: 3
|
||||
0, 0, 256, 107, // Format: 4, Texture: 4
|
||||
0, 0, 32, 107, // Format: 4, Texture: 5
|
||||
|
||||
0, 38, 512, 512, // Format: 5, Texture: 0
|
||||
0, 0, 512, 474, // Format: 5, Texture: 1
|
||||
0, 0, 0, 0, // Format: 5, Texture: 2
|
||||
0, 0, 0, 0, // Format: 5, Texture: 3
|
||||
0, 0, 0, 0, // Format: 5, Texture: 4
|
||||
0, 0, 0, 0 // Format: 5, Texture: 5
|
||||
};
|
||||
|
||||
for (uint32_t i = 0; i < textureCountByFormat[this->m_textureFormat]; ++i) {
|
||||
uint32_t v9 = 4 * (i + 6 * this->m_textureFormat);
|
||||
GxTexUpdate(
|
||||
this->m_textures[i],
|
||||
s_movieTextureUpdate[v9],
|
||||
s_movieTextureUpdate[v9 + 0],
|
||||
s_movieTextureUpdate[v9 + 1],
|
||||
s_movieTextureUpdate[v9 + 2],
|
||||
s_movieTextureUpdate[v9 + 3],
|
||||
@ -629,7 +663,49 @@ void CSimpleMovieFrame::Render() {
|
||||
GxRsSet(GxRs_BlendingMode, 0);
|
||||
GxRsSetAlphaRef();
|
||||
|
||||
static float s_layout[] = {0.0, 0.63999999, 0.11, -0.33000001, 0.63999999, 0.95999998, 0.11, -0.33000001, 0.95999998, 1.0, 0.11, -0.33000001, 0.0, 0.63999999, 0.33000001, 0.11, 0.63999999, 0.95999998, 0.33000001, 0.11, 0.95999998, 1.0, 0.33000001, 0.11, 0.0, 0.5, 0.333, -0.333, 0.5, 1.0, 0.333, -0.333, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.63999999, 0.41999999, -0.41999999, 0.63999999, 0.95999998, 0.41999999, -0.41999999, 0.95999998, 1.0, 0.41999999, -0.41999999, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.32659999, -0.41999999, 0.5, 1.0, 0.32659999, -0.41999999, 0.0, 0.5, 0.41999999, 0.32659999, 0.5, 1.0, 0.41999999, 0.32659999, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.63999999, 0.11, -0.33000001, 0.63999999, 0.95999998, 0.11, -0.33000001, 0.95999998, 1.0, 0.11, -0.33000001, 0.0, 0.63999999, 0.33000001, 0.11, 0.63999999, 0.95999998, 0.33000001, 0.11, 0.95999998, 1.0, 0.33000001, 0.11, 0.0, 0.5, 0.333, -0.333, 0.5, 1.0, 0.333, -0.333, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
static float s_layout[] = {
|
||||
0.0, 0.63999999, 0.11, -0.33000001,
|
||||
0.63999999, 0.95999998, 0.11, -0.33000001,
|
||||
0.95999998, 1.0, 0.11, -0.33000001,
|
||||
0.0, 0.63999999, 0.33000001, 0.11,
|
||||
0.63999999, 0.95999998, 0.33000001, 0.11,
|
||||
0.95999998, 1.0, 0.33000001, 0.11,
|
||||
|
||||
0.0, 0.5, 0.333, -0.333,
|
||||
0.5, 1.0, 0.333, -0.333,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
|
||||
0.0, 0.63999999, 0.41999999, -0.41999999,
|
||||
0.63999999, 0.95999998, 0.41999999, -0.41999999,
|
||||
0.95999998, 1.0, 0.41999999, -0.41999999,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
|
||||
0.0, 0.5, 0.32659999, -0.41999999,
|
||||
0.5, 1.0, 0.32659999, -0.41999999,
|
||||
0.0, 0.5, 0.41999999, 0.32659999,
|
||||
0.5, 1.0, 0.41999999, 0.32659999,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
|
||||
0.0, 0.63999999, 0.11, -0.33000001,
|
||||
0.63999999, 0.95999998, 0.11, -0.33000001,
|
||||
0.95999998, 1.0, 0.11, -0.33000001,
|
||||
0.0, 0.63999999, 0.33000001, 0.11,
|
||||
0.63999999, 0.95999998, 0.33000001, 0.11,
|
||||
0.95999998, 1.0, 0.33000001, 0.11,
|
||||
|
||||
0.0, 0.5, 0.333, -0.333,
|
||||
0.5, 1.0, 0.333, -0.333,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0
|
||||
};
|
||||
|
||||
float aspectCompensation = CoordinateGetAspectCompensation();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user