obs_reset_video功能模块图
2024-10-16
21
0
OBS应用调用libobs中的obs_reset_video函数来初始化图形渲染。
- main-QT入口函数
- int run_program(fstream &logFile, int argc, char *argv[])
- OBSBasic::OBSInit()
- int OBSBasic::ResetVideo()
- int AttemptToResetVideo(struct obs_video_info *ovi)
- ———libobs———-
- int obs_reset_video(struct obs_video_info *ovi)
- int obs_init_graphics(ovi);
- gs_create //加载d3d11dll,获取导出函数,创建d3d11设备对象等
- os_dlopen
- load_graphics_imports
- device_create
- graphics_init
- graphics_init_immediate_vb
- graphics_init_sprite_vb
- cur_blend_state
- gs_effect_create_from_file //解析编译HLSL文件等
- 创建transparent_texture
- gs_create //加载d3d11dll,获取导出函数,创建d3d11设备对象等
- int obs_init_video(struct obs_video_info *ovi)
- set_video_matrix
- video_output_open
- obs_init_gpu_conversion
- obs_init_textures
- pthread_create(obs_graphics_thread)
- int obs_init_graphics(ovi);
- int obs_reset_video(struct obs_video_info *ovi)
- int OBSBasic::ResetVideo()
- OBSBasic::OBSInit()
- int run_program(fstream &logFile, int argc, char *argv[])