VirtualBox

儲存庫 vbox 的更動 68835


忽略:
時間撮記:
2017-9-22 下午03:42:52 (7 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
118089
訊息:

VideoRec: Set sensible defaults.

檔案:
修改 1 筆資料

圖例:

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

    r68809 r68835  
    24522452    size_t pos = 0;
    24532453
    2454     /* By default we only enable video recording for now.
    2455      * Audio support is considered as being experimental. There be dragons! */
     2454    /*
     2455     * Set sensible defaults.
     2456     */
    24562457    mVideoRecCfg.Video.fEnabled  = true;
     2458
     2459    if (!mVideoRecCfg.Video.uFPS) /* Prevent division by zero. */
     2460        mVideoRecCfg.Video.uFPS = 15;
     2461
     2462#ifdef VBOX_WITH_LIBVPX
     2463    mVideoRecCfg.Video.Codec.VPX.uEncoderDeadline = 1000000 / mVideoRecCfg.Video.uFPS;
     2464#endif
     2465
     2466    /* Note: Audio support is considered as being experimental.
     2467     * There be dragons! */
    24572468#ifdef VBOX_WITH_AUDIO_VIDEOREC
    24582469    mVideoRecCfg.Audio.fEnabled  = true;
     
    24622473    mVideoRecCfg.Audio.cChannels = 2;
    24632474#endif
    2464 
    2465     if (!mVideoRecCfg.Video.uFPS) /* Prevent division by zero. */
    2466         mVideoRecCfg.Video.uFPS = 30;
    24672475
    24682476    /*
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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