Changeset 19817 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- May 19, 2009 12:16:28 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 47467
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r19239 r19817 46 46 #include <iprt/env.h> 47 47 #include <VBox/err.h> 48 #include <VBox/VBoxVideo.h> 48 49 49 50 #ifdef VBOX_FFMPEG … … 744 745 Log2(("VBoxHeadless: Registering framebuffer\n")); 745 746 pFramebuffer->AddRef(); 746 display-> RegisterExternalFramebuffer(pFramebuffer);747 display->SetFramebuffer(VBOX_VIDEO_PRIMARY_SCREEN, pFramebuffer); 747 748 } 748 749 if (!RT_SUCCESS(rrc) || (rcc != S_OK)) -
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp
r19798 r19817 142 142 { 143 143 /* Dummy update to make sure we get all the frame (timing). */ 144 BOOL dummy; 145 NotifyUpdate(0, 0, 0, 0, &dummy); 144 NotifyUpdate(0, 0, 0, 0); 146 145 /* Write the last pending frame before exiting */ 147 146 int rc = do_rgb_to_yuv_conversion(); … … 431 430 * @param w width of the area which has been updated 432 431 * @param h height of the area which has been updated 433 * @param finished 434 */ 435 STDMETHODIMP FFmpegFB::NotifyUpdate(ULONG x, ULONG y, ULONG w, ULONG h, 436 BOOL *finished) 432 */ 433 STDMETHODIMP FFmpegFB::NotifyUpdate(ULONG x, ULONG y, ULONG w, ULONG h) 437 434 { 438 435 int rc; … … 442 439 (unsigned long) x, (unsigned long) y, (unsigned long) w, 443 440 (unsigned long) h)); 444 if (!finished) 445 return E_POINTER; 446 /* For now we will do things synchronously */ 447 *finished = true; 441 448 442 /* We always leave at least one frame update pending, which we 449 443 process when the time until the next frame has elapsed. */ -
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.h
r19798 r19817 100 100 STDMETHOD(COMGETTER(WinId)) (ULONG64 *winId); 101 101 102 STDMETHOD(NotifyUpdate)(ULONG x, ULONG y, 103 ULONG w, ULONG h, BOOL *finished); 102 STDMETHOD(NotifyUpdate)(ULONG x, ULONG y, ULONG w, ULONG h); 104 103 STDMETHOD(RequestResize)(ULONG aScreenId, ULONG pixelFormat, BYTE *vram, 105 104 ULONG bitsPerPixel, ULONG bytesPerLine,
Note:
See TracChangeset
for help on using the changeset viewer.