Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    JPEG拍照设置旋转90、270度出图异常

    V Series
    2
    2
    839
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dort91011 LV 5 last edited by

      开启JPEG编码旋转功能十,将VENC_CHN_ATTR_S结构体中的VeAttr Rotate参数设置为90度或者270度。

      拍照生成的图片显示异常,图片未能正确旋转,异常图像如下:

      旋转90度:

      downloadFileByUrls.jpg

      旋转180度:

      downloadFileByUrl (1).jpg

      1 Reply Last reply Reply Quote Share 0
      • livpo
        livpo LV 6 last edited by

        JPEG拍照旋转需设置Exif info信息中的旋转参数,否则图片显示时会默认认为旋转角度为0。设置方法如下:

        VENC_EXIFINFO_S stExitfInfo;
        memset(&stExitfInfo, 0, sizeof(VENC_EXIFINFO_S));
        stExitfInfo.Orientation = rotate;
        AW_MPI_VENC_SetJpegExifInfo(venc_chn, &stExitfInfo);
        
        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策