Lines Matching full:the
39 /** Allocate a slightly larger buffer, so we can adjust the start address to meet alignment */
45 * Define a static draw buffer with the given width, height, and color format.
101 * Initialize the draw buffer with the default handlers.
103 * @param handlers the draw buffer handlers to set
108 * Initialize the draw buffer with given handlers.
110 * @param handlers the draw buffer handlers to set
111 * @param buf_malloc_cb the callback to allocate memory for the buffer
112 * @param buf_free_cb the callback to free memory of the buffer
113 * @param align_pointer_cb the callback to align the buffer
114 * @param invalidate_cache_cb the callback to invalidate the cache of the buffer
115 * @param flush_cache_cb the callback to flush buffer
116 …* @param width_to_stride_cb the callback to calculate the stride based on the width and color fo…
127 * Get the struct which holds the callbacks for draw buf management.
128 * Custom callback can be set on the returned value
129 * @return pointer to the struct of handlers
137 …* Align the address of a buffer. The buffer needs to be large enough for the real data after align…
138 * @param buf the data to align
139 * @param color_format the color format of the buffer
140 * @return the aligned buffer
145 * Align the address of a buffer with custom draw buffer handlers.
146 * The buffer needs to be large enough for the real data after alignment
147 * @param handlers the draw buffer handlers
148 * @param buf the data to align
149 * @param color_format the color format of the buffer
150 * @return the aligned buffer
155 * Invalidate the cache of the buffer
156 * @param draw_buf the draw buffer needs to be invalidated
157 * @param area the area to invalidate in the buffer,
158 * use NULL to invalidate the whole draw buffer address range
163 * Flush the cache of the buffer
164 * @param draw_buf the draw buffer needs to be flushed
165 * @param area the area to flush in the buffer,
166 * use NULL to flush the whole draw buffer address range
171 * Calculate the stride in bytes based on a width and color format
172 * @param w the width in pixels
173 * @param color_format the color format
174 * @return the stride in bytes
179 * Calculate the stride in bytes based on a width and color format
180 * @param handlers the draw buffer handlers
181 * @param w the width in pixels
182 * @param color_format the color format
183 * @return the stride in bytes
189 * Clear an area on the buffer
191 * @param a the area to clear, or NULL to clear the whole buffer
197 * @param dest pointer to the destination draw buffer
198 * @param dest_area the area to copy from the destination buffer, if NULL, use the whole buffer
199 * @param src pointer to the source draw buffer
200 * @param src_area the area to copy from the destination buffer, if NULL, use the whole buffer
201 * @note `dest_area` and `src_area` should have the same width and height
214 * @param w the buffer width in pixels
215 * @param h the buffer height in pixels
216 * @param cf the color format for image
217 * @param stride the stride in bytes for image. Use 0 for automatic calculation based on
229 * @param handlers the draw buffer handlers
230 * @param w the buffer width in pixels
231 * @param h the buffer height in pixels
232 * @param cf the color format for image
233 * @param stride the stride in bytes for image. Use 0 for automatic calculation based on
240 * Duplicate a draw buf with same image size, stride and color format. Copy the image data too.
241 * @param draw_buf the draw buf to duplicate
242 * @return the duplicated draw buf on success, NULL if failed
247 * Duplicate a draw buf with same image size, stride and color format. Copy the image data too.
248 * @param handlers the draw buffer handlers
249 * @param draw_buf the draw buf to duplicate
250 * @return the duplicated draw buf on success, NULL if failed
255 * Initialize a draw buf with the given buffer and parameters. Clear draw buffer flag to zero.
256 * @param draw_buf the draw buf to initialize
257 * @param w the buffer width in pixels
258 * @param h the buffer height in pixels
259 * @param cf the color format
260 * @param stride the stride in bytes. Use 0 for automatic calculation
261 * @param data the buffer used for drawing. Unaligned `data` will be aligned internally
262 * @param data_size the size of the buffer in bytes
269 * Keep using the existing memory, reshape the draw buffer to the given width and height.
270 * Return NULL if data_size is smaller than the required size.
272 …* @param cf the new color format, use 0 or LV_COLOR_FORMAT_UNKNOWN to keep using the origin…
273 * @param w the new width in pixels
274 * @param h the new height in pixels
275 * @param stride the stride in bytes for image. Use 0 for automatic calculation.
281 …* Destroy a draw buf by freeing the actual buffer if it's marked as LV_IMAGE_FLAGS_ALLOCATED in he…
282 * Then free the lv_draw_buf_t struct.
284 * @param draw_buf the draw buffer to destroy
289 * Return pointer to the buffer at the given coordinates
294 * Adjust the stride of a draw buf in place.
296 * @param stride the new stride in bytes for image. Use LV_STRIDE_AUTO for automatic calculation.
326 * Set the palette color of an indexed image. Valid only for `LV_COLOR_FORMAT_I1/2/4/8`
328 * @param index the palette color to set:
333 * @param color the color to set in lv_color32_t format
344 * Free the data pointer and dsc struct of an image.