| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Mike,
OpenGL can help here, as it includes the ability to convert pixel formats, and can even deal with hardware-specific pixel reading problems such as microtiling, or getting the correct framebuffer when full screen buffer swapping (the GL version of page flipping) is in effect. OpenGL will also use a DMA transfer for reading the framebuffer content, where available.
OpenGL provides both a synchronous read path suitable for simple screen captures using glReadPixels, and a fast asynchronous path using the texture read mechanism, which is a bit more complex, but works well for repeated capture operations, such as screencasting or recording a movie from the screen.
Here's a simple mechanism that can be used to read a rectangle from a display to a CGImageRef, as an example to help you get started. It's more comment than code:
Thanks,
david. _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.