dm8148 JPEG compositing problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.