[theora] [PATCH] splayer aspect ratio + zoom

Ralph Giles giles at xiph.org
Wed Jul 23 17:41:50 PDT 2003



On Thursday, July 24, 2003, at 12:15 AM, Markus Meyer wrote:

> The patch implements it so that when either numerator or denominator is
> zero, the given aspect ratio is ignored, thus preserving the aspect
> ratio of the given pixels (f.e. 2:1 for 640x320 video). This could be a
> viable interpretation for 0:0, but I still think that the situation
> where only one number is zero should be illegal.

A ratio of 0:0 actually means 'unknown'. That's just borrowed from the 
YUV4MPEG2 file format the example encoder uses. In practice players 
should either treat this as the same at 1:1 or try to guess (or let the 
user select) based on the frame aspect ratio.

I'm inclined to keep the distinction. You have to check for 0 and 0:0 
anyway if they're illegal values, and it lets apps be a little more 
sophisticated if they want.

  -r

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'theora-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Theora mailing list