Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos
Fork of DMSupport by
Diff: Display/Display.h
- Revision:
- 31:d47cffcb0a3e
- Parent:
- 22:1a58a518435c
- Child:
- 39:e1cb4dd9bfeb
--- a/Display/Display.h Mon Jan 26 15:24:15 2015 +0100
+++ b/Display/Display.h Tue Feb 17 10:41:48 2015 +0100
@@ -133,9 +133,26 @@
*
* Free the allocated memory when done using the free() function.
*
+ * @param res the resolution (default is the one that the display is using)
* @returns a new framebuffer or NULL if out of memory
*/
virtual void* allocateFramebuffer(Resolution res=Resolution_16bit_rgb565) = 0;
+
+ /** Allocate enough memory for one or more consequtive framebuffers
+ *
+ * This function is a to make it easier to allocate memory for framebuffers
+ * as the number of bytes needed depends on width, height and bytes per pixel.
+ *
+ * Free the allocated memory when done using the free() function.
+ *
+ * Use the default parameters to get one framebuffer for the display's current
+ * resolution.
+ *
+ * @param num the number of framebuffers, should be >= 1
+ * @param res the resolution (default is the one that the display is using)
+ * @returns new framebuffers or NULL if out of memory
+ */
+ virtual void* allocateFramebuffers(uint32_t num=1, Resolution res=Resolution_16bit_rgb565) = 0;
};
#endif
