iliasam / STM32_HOST_UVC_Camera

Example of connecting USB Web camera to STM32F4 USB HOST
http://we.easyelectronics.ru/STM32/zahvat-izobrazheniya-s-usb-kamery-pri-pomoschi-stm32.html
GNU Lesser General Public License v3.0
145 stars 66 forks source link

1 #13

Closed Mrqinw closed 2 months ago

Mrqinw commented 1 year ago

please tell me what is your version of IAR?

iliasam commented 1 year ago

IAR 7.50

Mrqinw commented 1 year ago

thank you.Can the video of this project be displayed on rgb lcd directly if i dont't connnect the VGA screen? i have tried this idea,it don't work

Mrqinw commented 1 year ago

image

iliasam commented 1 year ago

Sorry, I don't understand your question. Note that "stm32F4_discovery_project" do not need any display, you cant try it first.

Mrqinw commented 1 year ago

If I want to display the picture on rgb lcd, what do I need to change?

iliasam commented 1 year ago

See https://github.com/iliasam/STM32_HOST_UVC_Camera/blob/master/HAL_source/stm32F429_project/Src/main.c

//Draw captured image if (USBH_VIDEO_Target_Format == USBH_VIDEO_YUY2) { lcd_draw_yuyv_picture((uint8_t)uvc_ready_framebuffer_ptr); } else { mjpeg_decompression_and_draw((uint8_t)uvc_ready_framebuffer_ptr, uvc_ready_frame_length); }

And also: https://github.com/iliasam/STM32_HOST_UVC_Camera/blob/master/HAL_source/stm32F429_project/Src/mjpeg_decoding.c#L49 UINT output_func(JDEC jd, void bitmap, JRECT* rect) {}