VirtualBox

Changeset 74996 in vbox


Ignore:
Timestamp:
Oct 23, 2018 12:44:34 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126022
Message:

VideoRec/Main: Added a video recording video codec type for VP8/VP9.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VideoRecInternals.h

    r74992 r74996  
    4040
    4141/**
     42 * Enumeration for the video recording video codec type.
     43 */
     44typedef enum VIDEORECVIDEOCODECTYPE
     45{
     46    /** Unknown codec type, do not use. */
     47    VIDEORECVIDEOCODECTYPE_UNKNOWN,
     48    /** Codec is VP8. */
     49    VIDEORECVIDEOCODECTYPE_VP8,
     50# ifdef VBOX_WITH_LIBVPX_VP9
     51    /** Codec is VP9. */
     52    VIDEORECVIDEOCODECTYPE_VP9
     53#endif
     54} VIDEORECVIDEOCODECTYPE;
     55
     56/**
    4257 * Structure for keeping specific video recording codec data.
    4358 */
    4459typedef struct VIDEORECVIDEOCODEC
    4560{
     61    /** Used codec type. */
     62    VIDEORECVIDEOCODECTYPE enmType;
     63#ifdef VBOX_WITH_LIBVPX
    4664    union
    4765    {
    48 #ifdef VBOX_WITH_LIBVPX
    4966        struct
    5067        {
     
    5875            uint8_t            *pu8YuvBuf;
    5976        } VPX;
     77    };
    6078#endif /* VBOX_WITH_LIBVPX */
    61     };
    6279} VIDEORECVIDEOCODEC, *PVIDEORECVIDEOCODEC;
    6380
  • trunk/src/VBox/Main/src-client/VideoRecStream.cpp

    r74995 r74996  
    495495
    496496    pStream->Video.uDelayMs = RT_MS_1SEC / pCfg->Video.uFPS;
     497
     498    pVC->enmType = VIDEORECVIDEOCODECTYPE_VP8; /** @todo Make this configurable. */
    497499
    498500# ifdef VBOX_WITH_LIBVPX_VP9
Note: See TracChangeset for help on using the changeset viewer.

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