Hi, there!
I am writing a program that running H.264 and JPEG encode at the same time, image is input from ISIF by a camera, and then convert to YUV420SP format using previewer and resizer module, what I need is send a frame after convert to JPEG or H.264 encoder, but the same frame will not both do JPEG encode and H.264, the result returns by codec is ok, but the JPEG image seems not normal, as following:
If I reset system, and run my program again, the image returns normal, if I shutdown my program by Ctrl-C and restart it, hte image becomes error again. My question is it a bug of codec or my program? how can I avoid this problem. Plus, I add a mutex for JPEG thread and H.264 thread so the codec will not run at the same time. and the buffer for input and output is non-catched and allocated by CMEM, image resolution is 1600 X 1200. Also, the codec is called using IMGENC1_fxns of CE in DVSDK4.02. If I only encode in JPEG format, the out image seems all ok.
Thanks for your attention!