From: "Xiang, Haihao" Subject: Re: Placement and cropping of video due to aspect ratio mismatch Date: Thu, 02 Jun 2011 10:16:23 +0800 Message-ID: <1306980983.15105.35.camel@xhh-ctg32> References: <4DE4A6CB.2090102@tataelxsi.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F9C29E782 for ; Wed, 1 Jun 2011 19:16:51 -0700 (PDT) In-Reply-To: <4DE4A6CB.2090102@tataelxsi.co.in> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jyotsana Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Tue, 2011-05-31 at 16:28 +0800, Jyotsana wrote: > Hi, > > I am playing video using "libva-1.0.7" and gstreamer-vaapi plugin. > A window is created and passed to the plugin so that video is rendered > on it. > There is an observation if the aspect ratio of the window is different > from the aspect ratio of the video, > then some videos are aligned with top edge of the window, some appear in > the middle and > some aligned with the bottom edge of the window. > A particular video always gets rendered at the same location. > In some cases, the video is getting cropped. > I am not sure whether this is handled by the plugin or the driver. > Is this behaviour known. This is the behavior of the plugin. The plugin always tries to use the aspect ratio of the video to display this video. .e.g a video is 1280x536 (1280.0/536=2.388), the window is 300x300. the rendered region calculated by this plugin is 300x125 (300.0/125=2.4), and it is aligned with the top edge of the window. Regards Haihao > Thanks and Regards, > Jyotsana. > > > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx