Lines Matching refs:scaled_image
80 CvMat * scaled_image; member
131 if(widget->scaled_image){ in cvImageWidgetSetImage()
132 cvResize( widget->original_image, widget->scaled_image, CV_INTER_AREA ); in cvImageWidgetSetImage()
146 image_widget->scaled_image = 0; in cvImageWidgetNew()
256 if(image_widget->scaled_image != NULL) { in cvImageWidget_get_preferred_width()
257 *natural_width = *minimal_width < image_widget->scaled_image->cols ? in cvImageWidget_get_preferred_width()
258 image_widget->scaled_image->cols : *minimal_width; in cvImageWidget_get_preferred_width()
280 if(image_widget->scaled_image != NULL) { in cvImageWidget_get_preferred_height()
281 *natural_height = *minimal_height < image_widget->scaled_image->rows ? in cvImageWidget_get_preferred_height()
282 image_widget->scaled_image->cols : *minimal_height; in cvImageWidget_get_preferred_height()
307 else if(image_widget->scaled_image){ in cvImageWidget_size_request()
309 requisition->width = image_widget->scaled_image->cols; in cvImageWidget_size_request()
310 requisition->height = image_widget->scaled_image->rows; in cvImageWidget_size_request()
334 if( image_widget->scaled_image && in cvImageWidget_set_size()
335 ( image_widget->scaled_image->cols != scaled_image_size.width || in cvImageWidget_set_size()
336 image_widget->scaled_image->rows != scaled_image_size.height )) in cvImageWidget_set_size()
338 cvReleaseMat( &image_widget->scaled_image ); in cvImageWidget_set_size()
340 if( !image_widget->scaled_image ){ in cvImageWidget_set_size()
341 …image_widget->scaled_image = cvCreateMat( scaled_image_size.height, scaled_image_size.width, CV_8U… in cvImageWidget_set_size()
345 assert( image_widget->scaled_image ); in cvImageWidget_set_size()
376 cvResize( image_widget->original_image, image_widget->scaled_image, CV_INTER_AREA ); in cvImageWidget_size_allocate()
426 cvReleaseMat( &image_widget->scaled_image ); in cvImageWidget_destroy()
472 image_widget->scaled_image=0; in cvImageWidget_init()
918 if( image_widget->scaled_image ){ in cvImageWidget_draw()
920 int x0 = (gtk_widget_get_allocated_width(widget) - image_widget->scaled_image->cols)/2; in cvImageWidget_draw()
921 int y0 = (gtk_widget_get_allocated_height(widget) - image_widget->scaled_image->rows)/2; in cvImageWidget_draw()
923 … pixbuf = gdk_pixbuf_new_from_data(image_widget->scaled_image->data.ptr, GDK_COLORSPACE_RGB, false, in cvImageWidget_draw()
924 8, MIN(image_widget->scaled_image->cols, gtk_widget_get_allocated_width(widget)), in cvImageWidget_draw()
925 MIN(image_widget->scaled_image->rows, gtk_widget_get_allocated_height(widget)), in cvImageWidget_draw()
926 image_widget->scaled_image->step, NULL, NULL); in cvImageWidget_draw()
972 if( image_widget->scaled_image ){ in cvImageWidget_expose()
974 int x0 = (widget->allocation.width - image_widget->scaled_image->cols)/2; in cvImageWidget_expose()
975 int y0 = (widget->allocation.height - image_widget->scaled_image->rows)/2; in cvImageWidget_expose()
977 … pixbuf = gdk_pixbuf_new_from_data(image_widget->scaled_image->data.ptr, GDK_COLORSPACE_RGB, false, in cvImageWidget_expose()
978 8, MIN(image_widget->scaled_image->cols, widget->allocation.width), in cvImageWidget_expose()
979 MIN(image_widget->scaled_image->rows, widget->allocation.height), in cvImageWidget_expose()
980 image_widget->scaled_image->step, NULL, NULL); in cvImageWidget_expose()
1897 image_widget->scaled_image ){ in icvOnMouse()
1900 int x0 = (gtk_widget_get_allocated_width(widget) - image_widget->scaled_image->cols)/2; in icvOnMouse()
1901 int y0 = (gtk_widget_get_allocated_height(widget) - image_widget->scaled_image->rows)/2; in icvOnMouse()
1903 int x0 = (widget->allocation.width - image_widget->scaled_image->cols)/2; in icvOnMouse()
1904 int y0 = (widget->allocation.height - image_widget->scaled_image->rows)/2; in icvOnMouse()
1907 image_widget->scaled_image->cols ); in icvOnMouse()
1909 image_widget->scaled_image->rows ); in icvOnMouse()