6737 vss 尺寸设置

来源:互联网 发布:tekla软件下载 编辑:程序博客网 时间:2024/06/16 20:49


VideoSnapshotScenario.cpp


MBOOL
VideoSnapshotScenario::
setImage(ImageInfo &img)函数


JpgType_Main的尺寸通过picHeight 对其:

      mJpgInfo[JpgType_Main].width = ALIGN_SIZE(picHeight,JPG_IMG_ALIGN_SIZE);
      mJpgInfo[JpgType_Main].height = ALIGN_SIZE(picWidth,JPG_IMG_ALIGN_SIZE);

picHeight  值如下获得:

  if( rHWCrop.w < recWidth ||
        rHWCrop.h < recHeight)
    {
        MY_LOGW("Crop:W(%d)xH(%d) < Rec:W(%d)xH(%d)",
                rHWCrop.w,
                rHWCrop.h,
                recWidth,
                recHeight);
        picWidth = recWidth;
        picHeight = recHeight;
    }
    else
    {
        picWidth = rHWCrop.w;
        picHeight = rHWCrop.h;

 }

原创粉丝点击