Changeset 7238 in vbox
- Timestamp:
- Mar 3, 2008 1:18:35 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxIChatTheaterWrapper.m
r7177 r7238 1 1 /* $Id$ */ 2 2 /** @file 3 * Qt GUI - iChat Theater cocoa wrapper 3 * Qt GUI - iChat Theater cocoa wrapper. 4 4 */ 5 5 … … 24 24 #import <InstantMessage/IMAVManager.h> 25 25 26 @interface AVHandler: NSObject 26 @interface AVHandler: NSObject 27 27 { 28 28 CGImageRef mImage; … … 67 67 } 68 68 69 - (void) getPixelBufferPixelFormat: (OSType *)pixelFormatOut 69 - (void) getPixelBufferPixelFormat: (OSType *)pixelFormatOut 70 70 { 71 71 /* Return 32 bit pixel format */ … … 73 73 } 74 74 75 - (bool) renderIntoPixelBuffer: (CVPixelBufferRef)buffer forTime: (CVTimeStamp *)timeStamp 75 - (bool) renderIntoPixelBuffer: (CVPixelBufferRef)buffer forTime: (CVTimeStamp *)timeStamp 76 76 { 77 77 if (mImage == nil) … … 80 80 // Lock the pixel buffer's base address so that we can draw into it. 81 81 CVReturn err; 82 if ((err = CVPixelBufferLockBaseAddress (buffer, 0)) != kCVReturnSuccess) 82 if ((err = CVPixelBufferLockBaseAddress (buffer, 0)) != kCVReturnSuccess) 83 83 { 84 84 // Rarely is a lock refused. Return NO if this happens. … … 112 112 scaledHeight = height; 113 113 } 114 CGRect iconRect = CGRectMake ((width - scaledWidth) / 2.0, 114 CGRect iconRect = CGRectMake ((width - scaledWidth) / 2.0, 115 115 (height - scaledHeight) / 2.0, 116 116 scaledWidth, scaledHeight); … … 130 130 IMAVManager *avManager = [IMAVManager sharedAVManager]; 131 131 printf ("state changed to: %d\n", [avManager state]); 132 132 133 133 /* Get the new state */ 134 134 IMAVManagerState state = [avManager state]; … … 189 189 } 190 190 191 #endif 191 #endif /* VBOX_WITH_ICHAT_THEATER */ 192 192 -
trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxIChatTheaterWrapper.m
r7177 r7238 1 1 /* $Id$ */ 2 2 /** @file 3 * Qt GUI - iChat Theater cocoa wrapper 3 * Qt GUI - iChat Theater cocoa wrapper. 4 4 */ 5 5 … … 24 24 #import <InstantMessage/IMAVManager.h> 25 25 26 @interface AVHandler: NSObject 26 @interface AVHandler: NSObject 27 27 { 28 28 CGImageRef mImage; … … 67 67 } 68 68 69 - (void) getPixelBufferPixelFormat: (OSType *)pixelFormatOut 69 - (void) getPixelBufferPixelFormat: (OSType *)pixelFormatOut 70 70 { 71 71 /* Return 32 bit pixel format */ … … 73 73 } 74 74 75 - (bool) renderIntoPixelBuffer: (CVPixelBufferRef)buffer forTime: (CVTimeStamp *)timeStamp 75 - (bool) renderIntoPixelBuffer: (CVPixelBufferRef)buffer forTime: (CVTimeStamp *)timeStamp 76 76 { 77 77 if (mImage == nil) … … 80 80 // Lock the pixel buffer's base address so that we can draw into it. 81 81 CVReturn err; 82 if ((err = CVPixelBufferLockBaseAddress (buffer, 0)) != kCVReturnSuccess) 82 if ((err = CVPixelBufferLockBaseAddress (buffer, 0)) != kCVReturnSuccess) 83 83 { 84 84 // Rarely is a lock refused. Return NO if this happens. … … 112 112 scaledHeight = height; 113 113 } 114 CGRect iconRect = CGRectMake ((width - scaledWidth) / 2.0, 114 CGRect iconRect = CGRectMake ((width - scaledWidth) / 2.0, 115 115 (height - scaledHeight) / 2.0, 116 116 scaledWidth, scaledHeight); … … 130 130 IMAVManager *avManager = [IMAVManager sharedAVManager]; 131 131 printf ("state changed to: %d\n", [avManager state]); 132 132 133 133 /* Get the new state */ 134 134 IMAVManagerState state = [avManager state]; … … 189 189 } 190 190 191 #endif 191 #endif /* VBOX_WITH_ICHAT_THEATER */ 192 192
Note:
See TracChangeset
for help on using the changeset viewer.