YSTest: Video.cpp 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

Video.cpp
浏览该文件的文档.
1 /*
2 © 2011-2016, 2018 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #include "YCLib/YModules.h"
29 #include YFM_YCLib_Video
30 #if YCL_DS
31 # include YFM_DS_YCLib_DSVideo // for platform::ResetVideo;
32 # include YFM_YCLib_NativeAPI // for ::lcdMainOnTop;
33 #endif
34
35 namespace platform
36 {
37
39 static_assert(sizeof(Pixel) == sizeof(Pixel::traits_type::integer),
40 "Wrong size of pixel type found.");
41 static_assert(yalignof(Pixel) == yalignof(Pixel::traits_type::integer),
42 "Wrong alignment of pixel type found.");
43
44 void
45 InitVideo() yimpl(ynothrow)
46 {
47 #if YCL_DS
48 platform_ex::ResetVideo();
49 ::lcdMainOnTop();
50 #endif
51 }
52
53 } // namespace platform;
54
platform::InitVideo
YF_API void InitVideo() yimpl(ynothrow)
初始化视频输出。
Definition: Video.cpp:45
yalignof
#define yalignof(_type)
指定特定类型的对齐。
Definition: ydef.h:1053
platform::ynothrow
const _tString &path ynothrow
Definition: YCLib/FileSystem.h:453
platform
默认平台命名空间。
Definition: Container.h:56
YModules.h
YCLib 库模块配置文件。
yimpl
#define yimpl(...)
实现标签。
Definition: ydef.h:413