shensunbo Blog

「离开世界之前 一切都是过程」

日志方法收集

vidc 日志记录方法 1 2 3 4 5 6 #define RETURN_BOOL_ON_ERROR(rc, msg, ...) \ if (true != (rc) ) \ { \ MM_ERROR_MSG(msg, ## __VA_AR...

before main

不要使用std::cout, 在main函数开始之前cout可能未初始化完成,导致段错误 __attribute__((constructor)) 可以存在多个,同一文件中,按声明顺序, 函数执行顺序为:从上到下。在不同文件中,执行顺序不确定 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include...

ffmpeg windows库

可以从 >https://www.gyan.dev/ffmpeg/builds/ 网站获取到最新的ffmpeg编译版本,其中ffmpeg-6.0-full_build-shared.7z 这种版本是带有头文件和库文件的,可以在visual studio中直接使用 其他版本的库文件可以在gyan的github记录中找到, 地址>https://github.com/GyanD/c...

glsl获取纹理大小

获取纹素大小的glsl代码vec2 tex_offset = 1.0 / textureSize(image, 0); 在 #version 330 core 中编译正常,但是在 #version 300 es 中无法通过编译 报错信息 1 2 3 4 5 6 7 ``` err: 0:15(20): error: could not implicitly convert operan...

day0

create a blog today.

todo about this blog

⚪ 待办 ✅ 已完成 — ⚪ entry 类 ??? ✅ disqus 评论区 won’t do, use cusdis ✅ cusdis 评论区 ⚪ 动态页面效果 ⚪ 按时间筛选博客 ✅ 博客联系方式 ✅ 浏览量统计 ✅ Google Search Console 认证 ✅ 让谷歌收录自己的博客 ⚪ 新评论触发邮件提醒 ⚪ 广告 ⚪ RSS 订阅 ⚪ 热门文章 ⚪ 该博客关联的博客