Changeset 42646 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Aug 7, 2012 7:12:56 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79843
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r42619 r42646 3256 3256 && pFBInfo->u32ResizeStatus==ResizeStatus_Void) 3257 3257 { 3258 HRESULT rc; 3258 3259 ULONG ulPixelFormat = 0; 3259 pFBInfo->pFramebuffer->COMGETTER(PixelFormat)(&ulPixelFormat); 3260 rc = pFBInfo->pFramebuffer->COMGETTER(PixelFormat)(&ulPixelFormat); 3261 AssertComRC (rc); 3260 3262 3261 3263 ULONG ulBitsPerPixel; 3262 pFBInfo->pFramebuffer->COMGETTER(BitsPerPixel)(&ulBitsPerPixel); 3263 3264 ULONG ulFrameHeight = 0; 3265 pFBInfo->pFramebuffer->COMGETTER(Height)(&ulFrameHeight); 3266 3267 ULONG ulFrameWidth = 0; 3268 pFBInfo->pFramebuffer->COMGETTER(Width)(&ulFrameWidth); 3264 rc = pFBInfo->pFramebuffer->COMGETTER(BitsPerPixel)(&ulBitsPerPixel); 3265 AssertComRC (rc); 3266 3267 ULONG ulGuestHeight = 0; 3268 rc = pFBInfo->pFramebuffer->COMGETTER(Height)(&ulGuestHeight); 3269 AssertComRC (rc); 3270 3271 ULONG ulGuestWidth = 0; 3272 rc = pFBInfo->pFramebuffer->COMGETTER(Width)(&ulGuestWidth); 3273 AssertComRC (rc); 3269 3274 3270 3275 BYTE *address = NULL; 3271 HRESULT hrc = pFBInfo->pFramebuffer->COMGETTER(Address) (&address); 3276 rc = pFBInfo->pFramebuffer->COMGETTER(Address) (&address); 3277 AssertComRC (rc); 3278 3279 ULONG ulBytesPerLine = 0; 3280 rc = pFBInfo->pFramebuffer->COMGETTER(BytesPerLine) (&ulBytesPerLine); 3281 AssertComRC (rc); 3272 3282 3273 3283 … … 3306 3316 } 3307 3317 3308 LogFlow(("cp to IntBuf orgx=%d orgy=%d cx=%d cy=%d bpp=%d\n",3309 pFBInfo->xOrigin, pFBInfo->yOrigin, pDrv->IConnector.cx, pDrv->IConnector.cy,3310 pDrv->IConnector.cBits));3311 3312 3313 3318 if (u32VideoRecImgFormat != VPX_IMG_FMT_NONE && address != NULL) 3314 3319 { 3315 3320 VideoRecCopyToIntBuffer(pVideoRecContext, pFBInfo->xOrigin, pFBInfo->yOrigin, 3316 u32PixelFormat, ulBitsPerPixel, pDrv->IConnector.cbScanline,3317 ul FrameWidth, ulFrameHeight,address);3321 u32PixelFormat, ulBitsPerPixel, ulBytesPerLine, 3322 ulGuestWidth, ulGuestHeight, address); 3318 3323 3319 3324 3320 3325 LogFlow(("RGB:YUV\n")); 3321 VideoRecDoRGBToYUV(ulFrameWidth, ulFrameHeight, u32VideoRecImgFormat, 3322 pVideoRecContext->pu8TempYUVBuffer, 3323 pVideoRecContext->pu8TempRGBBuffer); 3326 VideoRecDoRGBToYUV(pVideoRecContext, u32VideoRecImgFormat); 3324 3327 LogFlow(("Encode\n")); 3325 VideoRecEncodeAndWrite(pVideoRecContext, ulFrameWidth, 3326 ulFrameHeight, pVideoRecContext->pu8TempYUVBuffer); 3328 VideoRecEncodeAndWrite(pVideoRecContext, ulGuestWidth, ulGuestHeight); 3327 3329 } 3328 3330 } … … 4315 4317 4316 4318 if(res == VINF_SUCCESS) 4317 res = VideoRecContextInit(pVideoRecContext, "test.webm", 800, 720);4319 res = VideoRecContextInit(pVideoRecContext, "test.webm", 640, 480); 4318 4320 4319 4321 #endif
Note:
See TracChangeset
for help on using the changeset viewer.