Hello, Have you tried running the video_loopback_resize example from the app directory in DMAI? The example shows how to use resizer module to resize the image. Please note that DM6467 resizer support only down scaling..
In your case, u need to perform something like this.. - Allocate CIF graphics buffer (make sure you have set the color space to ColorSpace_420SEMI) - Allocate QCIF graphics buffer (make sure you have set the color space to ColorSpace_420SEMI) - create resizer module - configure resizer with the above buffers - call resizer_execute . Thanks -Brijesh Singh ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of peng zhu Sent: Wednesday, November 26, 2008 1:54 AM To: [email protected]; Jadav, Brijesh R Subject: RE: About resize module in DMAI Hi, Brijesh, Thank you very much for your feedback. Could you tell me how to set the buffer size for my case? Thanks a lot. Best regards, Peng --- 08年11月26日,周三, Jadav, Brijesh R <[EMAIL PROTECTED]> 写道: 发件人: Jadav, Brijesh R <[EMAIL PROTECTED]> 主题: RE: About resize module in DMAI 收件人: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "[email protected]" <[email protected]> 日期: 2008,1126,周三,3:37下午 Hi, This error comes when input or output buffer size provided for the user pointer is less than the required buffer size. Thanks, Brijesh Jadav ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of peng zhu Sent: Wednesday, November 26, 2008 10:03 AM To: [email protected] Subject: About resize module in DMAI Hi, I am a user of DM6467 EVM. When I do some programming using resize module in DMAI, I met some problem. Could you help me solve this problem? Thank you very much. I want to realize the function like this: H.264 video (in CIF format) ---- h.264 decoder --- YUV420 (in CIF format) ---- resize module ---- YUV420 (QCIF) ---- h.264 encoder ----- H.264 video (QCIF). The input of resize module is the output buffer got from h.264 decoder. The dim of the output buffer is (x=24,y=0,width=352,height=288,linelength=400), and the buffer size is 172800. I set the output of resize module is the buffer with dim of (x=0,y=0,width=176,height=144,linelength=176), and the buffer size is 176*144*3/2=38016. However, when resize_execute failed with the error info of “DavinciHD_vdce DavinciHD_vdce.2: invalid size”. Could you tell where is the error? What’s the meaning of “invalid size”? Thank you very much for your help again. Peng ________________________________ 好玩贺卡等你发,邮箱贺卡全新上线!<http://cn.rd.yahoo.com/mail_cn/tagline/card/*http:/card.mail.cn.yahoo.com/> ________________________________ 好玩贺卡等你发,邮箱贺卡全新上线!<http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/>
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
