openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Openexr-devel] Re: New framesPerSecond Attribute?


From: Luc-Eric Rousseau
Subject: RE: [Openexr-devel] Re: New framesPerSecond Attribute?
Date: Wed, 18 Oct 2006 17:42:16 -0400

> From: Florian Kainz [mailto:address@hidden
> Luc-Eric Rousseau wrote:
> > It's normal imho to store the frame rate as a rational. 
> It's that way in AAF and OMF.  struct aafRational_t {   
> aafInt32 numerator;   aafInt32 denominator;  };
> To: Luc-Eric Rousseau
> Are you arguing for a Rational class that does not
> support automatic conversion from double?
> 

My apologies, I was basically just arguing to not have a class that facilitates 
dealing with rational as doubles at all.  That's just me being the minimalist.

You could have a class (or operator) that converts the two integers to double 
only  (is this common & error-prone?), but someone will probably ask the 
reverse, and perhaps more.  You could also go the way of defining a class that 
is specifically for frame rates or time (instead of generic rationals) and have 
enums for common frame rates; although those things can be a little tedious to 
design and keep up-to-date.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]