General Category > Discussion - MCU

FT90x Camera Overwrite read data test pattern

(1/2) > >>

twittich:
Hello
i'm using the ft90x, the bridgetek example "usbd example uvc webcam" and a camera modul. The camera works nearly fine, just sometimes some fragments in our setup, so i want to inject softwareside data. The idea is where the data is received from the camera i want to fill the bytes manually to make a test picture like colored lines for example.
I don't know where the data is received to overwrite it.
Any one any idea.
Thanks in advance.
twittich

BRT Community:
Hello,

The complete source code is provided allowing you to customise however you require. It can be found at the following location after installing the FT9xx Toolchain:

C:\Users\Username\Documents\Bridgetek\FT9xx\2.5.0\Examples\USBD Example UVC Webcam

Best Regards,
BRT Community

twittich:
Hello
Thank you for the response.
I know this example and this is running and i'm testing with this. I want to try to inject test data between the input from the camera to the ft90x and the output to usb so that it looks like a testpattern from the camera.
I think i have to make the change in the function "  void cam_ISR(void) "  at  " :"r"(urb->ptr), "r"(&(CAM->CAM_REG3)), "r"(to_read)); "
How can i make red, blue, yellow, green etc bars? Are the values somewhere explained and how the lines are stored so that i can change it, the used format from the camera side is ycbcr422 / yuy2?


Thanks in advance.
Regards twittich

BRT Community:
Hello,

If it is an MJPEG compressed output from the camera then you would need to form a JPEG image.
You could make a JPEG test card image, store it in Flash or RAM, and send that into the stream.

If it is uncompressed output from the camera, then the format is a variant of uncompressed data stream called YUY2.
You just need to calculate the chrominance of each colour required at points on the display and send them as required.

Best Regards,
BRT Community

twittich:
Hello
yes the method for the uncompressed output i want to use but i dont know where to do that. I don't know how to calculate that and where to insert it... I think i was wrong to make changes in the cam_isr function but i don't know.
Thanks in advance for any hint.
Regards twittich

Navigation

[0] Message Index

[#] Next page

Go to full version