1) test 8148 platform JPEG synthesis problem, 4 1080p JPEG images are fed into videoM3, then JPEG decoding, decoding into YUV420SP data, yuv420sp in A8 to make a frame YUV420SP 4 frame image 2160-resolution YUV, then fed to videoM3 to encode, encode into JPEG, send back to A8; save JPEG; test result OK;
Problems that occur during the test;
1) The beginning of the composition of the JPEG image is problematic, the intermediate results of 1080p YUV420SP data saved, using the YUV viewing tool to play, found that the intermediate results are not a problem;
2) Then find the reason, found that the YUV data copy has a problem, should be copied to a buff;
3) After the modification, found that the saved JPEG data is still a problem, save the synthesized YUV data with the YUV tool to see no problem; the last location discovery is to copy YUV data to
VIDBUFLIST.FRAMES[0].ADDR[0][1] = bufs[0].vir_addr+iwidth*iheight; G_imagewidth*g_imageheight;
VIDBUFLIST.FRAMES[0].PHYADDR[0][1] =bufs[0].phys_addr+iwidth*iheight; G_imagewidth*g_imageheight;
The original is G_imagewidth (1920x1080) *g_imageheight (1080); (Iwidth (3840) *iheight (2160))
Problem solving;
4) The problem encountered when sending 2 frames 1080p images to videoM3 different channels for decoding;
2nd channel can not be sent to the image, the location found when the call Ipcbitsoutlink, the channel set error, the schematic code is as follows: Error, the 2nd buff, is also set to NO. 0 channel;
for (i = 0;i < emptybitsbuflist.numbufs;i++)
{
Emptybitsbuflist.bufs[i]->channelnum = i;//0
}
5) After the modification, the 2nd channel videoM3 decoding or there is a problem;
Error code: 200000 the 21st bit is 1 means: not supported output chroma format set by the application to the codec
Picture problem;
dm8148 JPEG compositing problem