IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    【无标题】

    mao0514发表于 2024-01-08 08:43:28
    love 0
    使用ffmpeg的swscale_scale函数可以实现像素格式转换,具体代码如下: #include <libavcodec/avcodec.h> #include <libswscale/swscale.h> int main() { // 初始化转换器 struct SwsContext *sws_ctx = sws_getContext(width, height, AV_PIX_FMT_YUYV422, width, height, AV_PIX


沪ICP备19023445号-2号
友情链接