VirtualBox

忽略:
時間撮記:
2014-8-14 下午02:58:52 (10 年 以前)
作者:
vboxsync
訊息:

6219: EbmlWriter code cleanup. Default video capture quality tuning.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/VideoRec.cpp

    r52342 r52383  
    488488    pStrm->pu8RgbBuf = (uint8_t *)RTMemAllocZ(uWidth * uHeight * 4);
    489489    AssertReturn(pStrm->pu8RgbBuf, VERR_NO_MEMORY);
    490 
    491     pStrm->uEncoderDeadline = 1000000 / uFps;
     490    pStrm->uEncoderDeadline = VPX_DL_REALTIME;
    492491
    493492    /* Play safe: the file must not exist, overwriting is potentially
     
    555554    pStrm->uDelay = 1000 / uFps;
    556555
    557     struct vpx_rational arg_framerate = { 30, 1 };
     556    struct vpx_rational arg_framerate = { uFps, 1 };
    558557    rc = pStrm->Ebml.writeHeader(&pStrm->VpxConfig, &arg_framerate);
    559558    AssertRCReturn(rc, rc);
     
    723722                                           &pStrm->VpxRawImage,
    724723                                           pts /* time stamp */,
    725                                            10  /* how long to show this frame */,
     724                                           pStrm->uDelay  /* how long to show this frame */,
    726725                                           0   /* flags */,
    727726                                           pStrm->uEncoderDeadline /* quality setting */);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette