[gst-devel] Regarding Resize operation

Edward Hervey bilboed at gmail.com
Thu Jan 7 13:04:39 CET 2010


On Thu, 2010-01-07 at 14:36 +0530, Sameer Naik wrote:
> Hello,
> I have been facing a few issues using the resizer (davinci_resizer).
> 
> I have a video that is decoded using the XDM VIDDEC 0.9 API calls and
> reports a resolution of 294x240 through the VIDDEC_Status output
> structure.
> I am using the dmai api to perform the resize operation. That is to
> say that, DMAI will dynamically calculate the resize coefficients for
> the resize operation.
> The Resized image size that i want is 1024x768. To do this i specify
> the following:
> 
> srcImage.x = 0;
> srcImage.y = 0;
> srcImage.width = 294;
> srcImage.height = 240;
> srcImage.lineLength = 294* 2;
> 
> dstImage.x = 0;
> dstImage.y = 0;
> dstImage.width = 1024;
> dstImage.height = 768;
> dstImage.lineLength = 1024 * 2;
> 
> When the resize operation is configured using Resize_config(). I get
> the following
> error: "Src (588) and dst (2048) must be aligned on 32 bytes"

  ... therefore you must make sure that the lineLength (also known as
the stride) is a multiple of 32bytes.
  .lineLength = ((space needed) + 31)&~31;

  Or more simply by using the GST_ROUND_UP_32 macro from gst/gstutils.h:
  .lineLength = GST_ROUND_UP_32 (294 * 2);

> 
> This clearly states that srcImage.lineLength = 588; is not aligned on 32 bytes.
> How can i handle this case? I dont think i can specify a
> srcImage.lineLength anything orther than 294* 2 right.
> This is is always present when the width and height of the decoded
> video are not a multiple of 16.
> 
> I am not aware of how i can handle this case. Please help
> 
> Regards
> ~Sameer
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel






More information about the gstreamer-devel mailing list