Lines Matching refs:stride

37 …c uint32_t _calculate_draw_buf_size(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t stride);
169 uint32_t stride = header->stride; in lv_draw_buf_clear() local
173 lv_memzero(buf, header->h * stride); in lv_draw_buf_clear()
207 buf += stride; in lv_draw_buf_clear()
259 uint32_t dest_stride = dest->header.stride; in lv_draw_buf_copy()
260 uint32_t src_stride = src->header.stride; in lv_draw_buf_copy()
271 …w_buf_init(lv_draw_buf_t * draw_buf, uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t stride, in lv_draw_buf_init() argument
278 if(stride == 0) stride = lv_draw_buf_width_to_stride(w, cf); in lv_draw_buf_init()
279 if(stride * h > data_size) { in lv_draw_buf_init()
280 … LV_LOG_WARN("Data size too small, required: %" LV_PRId32 ", provided: %" LV_PRId32, stride * h, in lv_draw_buf_init()
289 header->stride = stride; in lv_draw_buf_init()
303 lv_draw_buf_t * lv_draw_buf_create(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t stride) in lv_draw_buf_create() argument
305 return lv_draw_buf_create_ex(&default_handlers, w, h, cf, stride); in lv_draw_buf_create()
309 lv_color_format_t cf, uint32_t stride) in lv_draw_buf_create_ex() argument
318 if(stride == 0) stride = lv_draw_buf_width_to_stride(w, cf); in lv_draw_buf_create_ex()
320 uint32_t size = _calculate_draw_buf_size(w, h, cf, stride); in lv_draw_buf_create_ex()
326 w, h, cf, stride, size); in lv_draw_buf_create_ex()
336 draw_buf->header.stride = stride; in lv_draw_buf_create_ex()
355 …uf_t * new_buf = lv_draw_buf_create_ex(handlers, header->w, header->h, header->cf, header->stride); in lv_draw_buf_dup_ex()
374 uint32_t stride) in lv_draw_buf_reshape() argument
381 if(stride == 0) stride = lv_draw_buf_width_to_stride(w, cf); in lv_draw_buf_reshape()
383 uint32_t size = _calculate_draw_buf_size(w, h, cf, stride); in lv_draw_buf_reshape()
394 draw_buf->header.stride = stride; in lv_draw_buf_reshape()
428 data += buf->header.stride * y; in lv_draw_buf_goto_xy()
435 lv_result_t lv_draw_buf_adjust_stride(lv_draw_buf_t * src, uint32_t stride) in lv_draw_buf_adjust_stride() argument
453 if(stride == 0) stride = lv_draw_buf_width_to_stride(w, header->cf); in lv_draw_buf_adjust_stride()
456 if(header->stride == stride) { in lv_draw_buf_adjust_stride()
464 if(stride < min_stride) { in lv_draw_buf_adjust_stride()
471 uint32_t new_size = _calculate_draw_buf_size(w, h, header->cf, stride); in lv_draw_buf_adjust_stride()
479 if(stride > header->stride) { in lv_draw_buf_adjust_stride()
481 uint8_t * src_data = src->data + offset + header->stride * (h - 1); in lv_draw_buf_adjust_stride()
482 uint8_t * dst_data = src->data + offset + stride * (h - 1); in lv_draw_buf_adjust_stride()
485 src_data -= header->stride; in lv_draw_buf_adjust_stride()
486 dst_data -= stride; in lv_draw_buf_adjust_stride()
495 src_data += header->stride; in lv_draw_buf_adjust_stride()
496 dst_data += stride; in lv_draw_buf_adjust_stride()
500 src->header.stride = stride; in lv_draw_buf_adjust_stride()
530 uint32_t stride = draw_buf->header.stride; in lv_draw_buf_premultiply() local
538 line += stride; in lv_draw_buf_premultiply()
544 uint32_t stride = draw_buf->header.stride; in lv_draw_buf_premultiply() local
545 uint32_t alpha_stride = stride / 2; in lv_draw_buf_premultiply()
547 lv_opa_t * alpha = (lv_opa_t *)(line + stride * h); in lv_draw_buf_premultiply()
554 line += stride; in lv_draw_buf_premultiply()
561 uint32_t stride = draw_buf->header.stride; in lv_draw_buf_premultiply() local
570 line += stride; in lv_draw_buf_premultiply()
617 lv_draw_buf_init(buf, img->header.w, img->header.h, img->header.cf, img->header.stride, in lv_draw_buf_from_image()
698 …ic uint32_t _calculate_draw_buf_size(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t stride) in _calculate_draw_buf_size() argument
702 if(stride == 0) stride = lv_draw_buf_width_to_stride(w, cf); in _calculate_draw_buf_size()
704 size = stride * h; in _calculate_draw_buf_size()
706 size += (stride / 2) * h; /*A8 mask*/ in _calculate_draw_buf_size()