void draw_img_from_buffer(U16* buf, int cdx, int cdy, int ctx, int cty, float zoom, int angle) { DrawRaw_value draw_value; draw_value.imgbuf = buf; draw_rotate_value(cdx, cdy, ctx, cty, zoom, angle, &draw_value); ioctl(graphic_handle, AMAZON2_IOCTL_DRAW_IMG_FROM_BUFFER, &draw_value); }
int ImgDisplayToLCD(void) { draw_rotate_value(160,240,90,60,2.5,90); // FPGA로부터 읽어 온 영상(180x120)의 중심점(90,60)을 기준으로하여 90도 회전하고, 2.5배 확대하여 LCD의 중심점(160,240)에 위치하도록 셋팅하는 함수 : comment by yyb[110909] if ( ioctl(devfb, DISPLAY_IMG_DATA, &draw_value) ) { printf("ioctl DISPLAY_IMG_DATA error\n"); return -1; } return 0; }
int draw_img_from_buffer(unsigned short *Buffer, int CenterX, int CenterY, float zoom, int rotate_angle) { draw_rotate_value(CenterX,CenterY,90,60,zoom,rotate_angle); draw_value.imgbuf = Buffer; if( ioctl(devfb, DISPLAY_IMG_DRAW, &draw_value) ) { printf("Draw Image to LCD -> fail!!!\n"); exit(1); } }