Searched refs:buf_ht (Results 1 – 2 of 2) sorted by relevance
/dports/graphics/darktable38/darktable-3.8.0/src/views/ |
H A D | view.c | 1015 const int buf_ht = buf.height; in dt_view_image_get_surface() local 1025 float scale = fminf(width / (float)buf_wd, height / (float)buf_ht) * darktable.gui->ppd_thb; in dt_view_image_get_surface() 1027 const int img_height = roundf(buf_ht * scale); in dt_view_image_get_surface() 1029 scale = fmaxf(img_width / (float)buf_wd, img_height / (float)buf_ht); in dt_view_image_get_surface() 1034 uint8_t *rgbbuf = (uint8_t *)calloc((size_t)buf_wd * buf_ht * 4, sizeof(uint8_t)); in dt_view_image_get_surface() 1099 …tmp_surface = cairo_image_surface_create_for_data(rgbbuf, CAIRO_FORMAT_RGB24, buf_wd, buf_ht, stri… in dt_view_image_get_surface() 1113 if((buf_wd <= 8 && buf_ht <= 8) in dt_view_image_get_surface() 1133 dt_focuspeaking(cr, img_width, img_height, rgbbuf, buf_wd, buf_ht); in dt_view_image_get_surface() 1140 if(buf_wd <= 8 && buf_ht <= 8) in dt_view_image_get_surface() 1155 imgid, width, height, buf_wd, buf_ht, img_width, img_height, dt_get_wtime() - tt); in dt_view_image_get_surface() [all …]
|
/dports/graphics/darktable/darktable-3.6.1/src/views/ |
H A D | view.c | 1012 const int buf_ht = buf.height; in dt_view_image_get_surface() local 1022 float scale = fminf(width / (float)buf_wd, height / (float)buf_ht) * darktable.gui->ppd_thb; in dt_view_image_get_surface() 1024 const int img_height = roundf(buf_ht * scale); in dt_view_image_get_surface() 1026 scale = fmaxf(img_width / (float)buf_wd, img_height / (float)buf_ht); in dt_view_image_get_surface() 1031 uint8_t *rgbbuf = (uint8_t *)calloc((size_t)buf_wd * buf_ht * 4, sizeof(uint8_t)); in dt_view_image_get_surface() 1096 …tmp_surface = cairo_image_surface_create_for_data(rgbbuf, CAIRO_FORMAT_RGB24, buf_wd, buf_ht, stri… in dt_view_image_get_surface() 1110 if((buf_wd <= 8 && buf_ht <= 8) in dt_view_image_get_surface() 1130 dt_focuspeaking(cr, img_width, img_height, rgbbuf, buf_wd, buf_ht); in dt_view_image_get_surface() 1137 if(buf_wd <= 8 && buf_ht <= 8) in dt_view_image_get_surface() 1152 imgid, width, height, buf_wd, buf_ht, img_width, img_height, dt_get_wtime() - tt); in dt_view_image_get_surface() [all …]
|