VirtualBox

Changeset 42838 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Aug 16, 2012 9:21:09 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80095
Message:

Main/EncodeAndVideoRecording Module and API implementation: Integrating an independent encoding and video recording module that will serve all the frontends.
Introducing settings settings and API implementation for accessing and modifying video recording parameters:
->target video capture file
->video capture width
->video capture height
->enable video capturing

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r42551 r42838  
    15891589#endif
    15901590
    1591 /**
    1592  * Hardware struct constructor.
    1593  */
    15941591Hardware::Hardware()
    15951592        : strVersion("1"),
     
    16101607          fAccelerate3D(false),
    16111608          fAccelerate2DVideo(false),
     1609          ulVideoCaptureHorzRes(640),
     1610          ulVideoCaptureVertRes(480),
     1611          fVideoCaptureEnabled(false),
     1612          strVideoCaptureFile("Test.webm"),
    16121613          firmwareType(FirmwareType_BIOS),
    16131614          pointingHIDType(PointingHIDType_PS2Mouse),
     
    16741675                  && (fAccelerate3D             == h.fAccelerate3D)
    16751676                  && (fAccelerate2DVideo        == h.fAccelerate2DVideo)
     1677                  && (fVideoCaptureEnabled      == h.fVideoCaptureEnabled)
     1678                  && (strVideoCaptureFile       == h.strVideoCaptureFile)
     1679                  && (ulVideoCaptureHorzRes     == h.ulVideoCaptureHorzRes)
     1680                  && (ulVideoCaptureVertRes     == h.ulVideoCaptureVertRes)
    16761681                  && (firmwareType              == h.firmwareType)
    16771682                  && (pointingHIDType           == h.pointingHIDType)
     
    25562561            pelmHwChild->getAttributeValue("accelerate2DVideo", hw.fAccelerate2DVideo);
    25572562        }
     2563        else if (pelmHwChild->nameEquals("VideoRecording"))
     2564        {
     2565            pelmHwChild->getAttributeValue("enabled", hw.fVideoCaptureEnabled);
     2566            pelmHwChild->getAttributeValue("file",    hw.strVideoCaptureFile);
     2567            pelmHwChild->getAttributeValue("horzRes", hw.ulVideoCaptureHorzRes);
     2568            pelmHwChild->getAttributeValue("vertRes", hw.ulVideoCaptureVertRes);
     2569        }
     2570
    25582571        else if (pelmHwChild->nameEquals("RemoteDisplay"))
    25592572        {
     
    37023715    if (m->sv >= SettingsVersion_v1_8)
    37033716        pelmDisplay->setAttribute("accelerate2DVideo", hw.fAccelerate2DVideo);
     3717    xml::ElementNode *pelmVideoCapture = pelmHardware->createChild("VideoRecording");
     3718
     3719    if (m->sv >= SettingsVersion_v1_12)
     3720    {
     3721        pelmVideoCapture->setAttribute("enabled", hw.fVideoCaptureEnabled);
     3722        pelmVideoCapture->setAttribute("file",    hw.strVideoCaptureFile);
     3723        pelmVideoCapture->setAttribute("horzRes", hw.ulVideoCaptureHorzRes);
     3724        pelmVideoCapture->setAttribute("vertRes", hw.ulVideoCaptureVertRes);
     3725    }
    37043726
    37053727    xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay");
  • trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd

    r42261 r42838  
    460460
    461461<xsd:complexType name="TDisplay">
     462  <xsd:element name="VideoRecording">
     463    <xsd:complexType>
     464      <xsd:attribute name="enabled" type="xsd:boolean"/>
     465      <xsd:attribute name="file" type="xsd:string"/>
     466      <xsd:attribute name="horzRes" use="required">
     467        <xsd:simpleType>
     468          <xsd:restriction base="xsd:unsignedInt">
     469            <xsd:minInclusive value="4"/>
     470            <xsd:maxInclusive value="2097152"/>
     471           </xsd:restriction>
     472         </xsd:simpleType>
     473      </xsd:attribute>
     474      <xsd:attribute name="vertRes" type="xsd:unsignedInt"/>
     475    </xsd:complexType>
     476  </xsd:element>
    462477  <xsd:attribute name="VRAMSize" use="required">
    463478    <xsd:simpleType>
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