W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2014

Re: [Bug 26526] Fix aspect ratio constraint

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Wed, 06 Aug 2014 22:29:44 -0400
Message-ID: <53E2E498.8090701@mozilla.com>
To: bugzilla@jessica.w3.org, public-media-capture@w3.org
On 8/6/14 9:09 PM, bugzilla@jessica.w3.org wrote:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=26526
>
> Silvia Pfeiffer <silviapfeiffer1@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |silviapfeiffer1@gmail.com
>
> --- Comment #1 from Silvia Pfeiffer <silviapfeiffer1@gmail.com> ---
> We handle width and height separately, why not { aspect: {x : 16, y : 9} }.
> Doesn't seem that complicated.

But unnecessary. Width and height are separate constraints, not a 
multi-property constraint. I.e. not { video: { exact: size: { w: 640, h: 
480 } } };

I think there's a better case size to be our first multi-property 
constraint than aspect, as the former is a two-dimensional space and the 
latter just a ratio.

AspectRatio, frameRate and volume all use double, and we need to compare 
them. There may be future double constraints as well, so I think an 
epsilon value is smart.

.: Jan-Ivar :.
Received on Thursday, 7 August 2014 02:30:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:29 UTC