Changeset 55854 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- May 13, 2015 2:40:26 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100308
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r55835 r55854 6370 6370 } 6371 6371 6372 HRESULT Machine::querySavedThumbnailSize(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight)6373 {6374 if (aScreenId != 0)6375 return E_NOTIMPL;6376 6377 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);6378 6379 uint8_t *pu8Data = NULL;6380 uint32_t cbData = 0;6381 uint32_t u32Width = 0;6382 uint32_t u32Height = 0;6383 6384 int vrc = readSavedDisplayScreenshot(mSSData->strStateFilePath, 0 /* u32Type */, &pu8Data, &cbData, &u32Width, &u32Height);6385 6386 if (RT_FAILURE(vrc))6387 return setError(VBOX_E_IPRT_ERROR,6388 tr("Saved screenshot data is not available (%Rrc)"),6389 vrc);6390 6391 *aSize = cbData;6392 *aWidth = u32Width;6393 *aHeight = u32Height;6394 6395 freeSavedDisplayScreenshot(pu8Data);6396 6397 return S_OK;6398 }6399 6400 6372 HRESULT Machine::readSavedThumbnailToArray(ULONG aScreenId, BitmapFormat_T aBitmapFormat, 6401 6373 ULONG *aWidth, ULONG *aHeight, std::vector<BYTE> &aData) … … 6492 6464 } 6493 6465 6494 HRESULT Machine::querySavedScreenshotPNGSize(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight) 6466 HRESULT Machine::querySavedScreenshotInfo(ULONG aScreenId, 6467 ULONG *aWidth, 6468 ULONG *aHeight, 6469 std::vector<BitmapFormat_T> &aBitmapFormats) 6495 6470 { 6496 6471 if (aScreenId != 0) … … 6511 6486 vrc); 6512 6487 6513 *aSize = cbData;6514 6488 *aWidth = u32Width; 6515 6489 *aHeight = u32Height; 6490 aBitmapFormats.resize(1); 6491 aBitmapFormats[0] = BitmapFormat_PNG; 6516 6492 6517 6493 freeSavedDisplayScreenshot(pu8Data); … … 6520 6496 } 6521 6497 6522 HRESULT Machine::readSavedScreenshotPNGToArray(ULONG aScreenId, ULONG *aWidth, ULONG *aHeight, std::vector<BYTE> &aData) 6498 HRESULT Machine::readSavedScreenshotToArray(ULONG aScreenId, 6499 BitmapFormat_T aBitmapFormat, 6500 ULONG *aWidth, 6501 ULONG *aHeight, 6502 std::vector<BYTE> &aData) 6523 6503 { 6524 6504 if (aScreenId != 0) 6505 return E_NOTIMPL; 6506 6507 if (aBitmapFormat != BitmapFormat_PNG) 6525 6508 return E_NOTIMPL; 6526 6509
Note:
See TracChangeset
for help on using the changeset viewer.