VirtualBox

Changeset 24490 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Nov 9, 2009 11:23:35 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54575
Message:

Saved state screenshot API stubs (xTracker 4364).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r24464 r24490  
    40974097  <interface
    40984098     name="IMachine" extends="$unknown"
    4099      uuid="e2e5bab4-16ff-4ef4-b9df-f0b4433c1d1b"
     4099     uuid="25472915-3da2-42f6-82f2-70a3bc74d73c"
    41004100     wsmap="managed"
    41014101     >
     
    57625762      </param>
    57635763    </method>
     5764
     5765    <method name="querySavedThumbnailSize">
     5766      <desc>
     5767        Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
     5768      </desc>
     5769      <param name="size" type="unsigned long" dir="out">
     5770        <desc>
     5771          Size of buffer required to store the bitmap.
     5772        </desc>
     5773      </param>
     5774      <param name="width" type="unsigned long" dir="out">
     5775        <desc>
     5776          Bitmap width.
     5777        </desc>
     5778      </param>
     5779      <param name="height" type="unsigned long" dir="out">
     5780        <desc>
     5781          Bitmap height.
     5782        </desc>
     5783      </param>
     5784    </method>
     5785
     5786    <method name="readSavedThumbnail">
     5787      <desc>
     5788        Reads a saved thumbnail bitmap from saved state.
     5789        A pixel consists of 4 bytes in order: B, G, R, 0.
     5790
     5791        <note>This API can be used only by the COM/XPCOM C++ API as it
     5792            requires pointer support. Use <link to="#readSavedThumbnailToArray" />
     5793            with other language bindings.
     5794        </note>
     5795      </desc>
     5796      <param name="address" type="octet" mod="ptr" dir="in">
     5797        <desc>
     5798          Buffer allocated by caller. Size must be at least equal
     5799          to value returned by querySavedThumbnailSize.
     5800        </desc>
     5801      </param>
     5802      <param name="size" type="unsigned long" dir="in">
     5803        <desc>
     5804          Size of buffer allocated by caller. If the buffer is too small,
     5805          the method fails.
     5806        </desc>
     5807      </param>
     5808    </method>
     5809
     5810    <method name="readSavedThumbnailToArray">
     5811      <desc>
     5812        Thumbnail is retrieved to an array of bytes in uncompressed 32-bit RGBA format.
     5813        A pixel consists of 4 bytes in order: R, G, B, 0xFF.
     5814
     5815        This API is slow, but could be the only option to get image
     5816        for scriptable languages not allowed to manipulate with addresses
     5817        directly.
     5818      </desc>
     5819      <param name="width" type="unsigned long" dir="out">
     5820        <desc>
     5821          Bitmap width.
     5822        </desc>
     5823      </param>
     5824      <param name="height" type="unsigned long" dir="out">
     5825        <desc>
     5826          Bitmap height.
     5827        </desc>
     5828      </param>
     5829      <param name="data" type="octet" dir="return" safearray="yes">
     5830        <desc>
     5831          Array with resulting bitmap data.
     5832        </desc>
     5833      </param>
     5834    </method>
     5835
     5836    <method name="querySavedScreenshotPNGSize">
     5837      <desc>
     5838        Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
     5839      </desc>
     5840      <param name="size" type="unsigned long" dir="out">
     5841        <desc>
     5842          Size of buffer required to store the PNG binary data.
     5843        </desc>
     5844      </param>
     5845      <param name="width" type="unsigned long" dir="out">
     5846        <desc>
     5847          Image width.
     5848        </desc>
     5849      </param>
     5850      <param name="height" type="unsigned long" dir="out">
     5851        <desc>
     5852          Image height.
     5853        </desc>
     5854      </param>
     5855    </method>
     5856
     5857    <method name="readSavedScreenshotPNG">
     5858      <desc>
     5859        Reads a saved screenshot in PNG format from saved state.
     5860
     5861        <note>This API can be used only by the COM/XPCOM C++ API as it
     5862            requires pointer support. Use <link to="#readSavedScreenshotPNGToArray" />
     5863            with other language bindings.
     5864        </note>
     5865      </desc>
     5866      <param name="address" type="octet" mod="ptr" dir="in">
     5867        <desc>
     5868          Buffer allocated by caller. Size must be at least equal
     5869          to value returned by querySavedScreenshotPNGSize.
     5870        </desc>
     5871      </param>
     5872      <param name="size" type="unsigned long" dir="in">
     5873        <desc>
     5874          Size of buffer allocated by caller. If the buffer is too small,
     5875          the method fails.
     5876        </desc>
     5877      </param>
     5878    </method>
     5879
     5880    <method name="readSavedScreenshotPNGToArray">
     5881      <desc>
     5882        Screenshot in PNG format is retrieved to an array of bytes.
     5883
     5884        This API is slow, but could be the only option to get image
     5885        for scriptable languages not allowed to manipulate with addresses
     5886        directly.
     5887      </desc>
     5888      <param name="width" type="unsigned long" dir="out">
     5889        <desc>
     5890          Image width.
     5891        </desc>
     5892      </param>
     5893      <param name="height" type="unsigned long" dir="out">
     5894        <desc>
     5895          Image height.
     5896        </desc>
     5897      </param>
     5898      <param name="data" type="octet" dir="return" safearray="yes">
     5899        <desc>
     5900          Array with resulting PNG data.
     5901        </desc>
     5902      </param>
     5903    </method>
    57645904</interface>
    57655905
Note: See TracChangeset for help on using the changeset viewer.

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