Changeset 7207 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Feb 28, 2008 6:43:08 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28520
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp
r6000 r7207 76 76 com::Bstr filename) : 77 77 mBitRate(bitrate), 78 mPixelFormat(FramebufferPixelFormat_ PixelFormatOpaque),78 mPixelFormat(FramebufferPixelFormat_Opaque), 79 79 mBitsPerPixel(0), 80 80 mFileName(filename), … … 142 142 for (int i = 10*25; i > 0; i--) 143 143 do_encoding_and_write(); 144 #endif 144 #endif 145 145 /* write a png file of the last frame */ 146 146 write_png(); … … 210 210 /* Set the initial framebuffer size to the mpeg frame dimensions */ 211 211 BOOL finished; 212 RequestResize(0, FramebufferPixelFormat_ PixelFormatOpaque, NULL, 0, 0,212 RequestResize(0, FramebufferPixelFormat_Opaque, NULL, 0, 0, 213 213 mFrameWidth, mFrameHeight, &finished); 214 214 /* Start counting time */ … … 272 272 * Return the colour depth of our frame buffer. Note that we actually 273 273 * store the pixel format, not the colour depth internally, since 274 * when display sets FramebufferPixelFormat_ PixelFormatOpaque, it275 * wants to retreive FramebufferPixelFormat_ PixelFormatOpaque and274 * when display sets FramebufferPixelFormat_Opaque, it 275 * wants to retreive FramebufferPixelFormat_Opaque and 276 276 * nothing else. 277 277 * … … 482 482 * we have chosen, and the other COMGETTER methods tell the device about 483 483 * the layout of our buffer. We currently handle all VRAM layouts except 484 * FramebufferPixelFormat_ PixelFormatOpaque (which cannot be handled by484 * FramebufferPixelFormat_Opaque (which cannot be handled by 485 485 * definition). 486 486 */ … … 644 644 } 645 645 646 /** Stubbed */ 646 /** Stubbed */ 647 647 STDMETHODIMP FFmpegFB::GetVisibleRegion(BYTE *rectangles, ULONG /* count */, ULONG * /* countCopied */) 648 648 { … … 653 653 } 654 654 655 /** Stubbed */ 655 /** Stubbed */ 656 656 STDMETHODIMP FFmpegFB::SetVisibleRegion(BYTE *rectangles, ULONG /* count */) 657 657 { … … 720 720 if (!mpFormatContext->max_delay) 721 721 mpFormatContext->max_delay = (int)(0.7 * AV_TIME_BASE); 722 #endif 722 #endif 723 723 return S_OK; 724 724 }
Note:
See TracChangeset
for help on using the changeset viewer.