- We are planning on using a YUV sensor with our TDA4 board and want to encode its input using the TI MM H.264 Video Encoder. In order to test the encoding functionality, I tried to use the YUV422 UB9xx Test Pattern provided in the Single Camera demo application. To test this, the Single Camera demo application was used with the Display node replaced with an Encode node (copied from the Encoder+VPAC application). The Capture node is connected directly to the Encode node. Other nodes were disabled since a YUV image is used. The encoding module is set up for the VX_DF_IMAGE_NV12 format, and I've tried to alter the code to accept the YUV422 test pattern (VX_DF_IMAGE_UYVY). What things must we change/add in order to support a YUV sensor in the H.264 Encoder? Some things that I have already changed include hard-coding venc_params.in_pixelformat to MM_PIX_FMT_YUV422P in vx_video_encoder_target.c and replacing checks for NV12 format.
- Furthermore, there is one thing that I found but do not know how to edit properly. I wanted to expand the vxe_enc_formats structure in mm_enc_priv.c to include our YUV format, but I am unsure what to set the vxe_enc_fmt parameters to.