HomeSort by relevance Sort by last modified time
    Searched refs:Rational (Results 1 - 25 of 98) sorted by null

1 2 3 4

  /external/opencv3/3rdparty/openexr/IlmImf/
ImfFramesPerSecond.h 64 // then guessExactFps(fps) returns Rational(fps).
72 inline Rational fps_23_976 () {return Rational (24000, 1001);}
73 inline Rational fps_24 () {return Rational (24, 1);}
74 inline Rational fps_25 () {return Rational (25, 1);}
75 inline Rational fps_29_97 () {return Rational (30000, 1001);}
76 inline Rational fps_30 () {return Rational (30, 1);
    [all...]
ImfRational.h 41 // Rational numbers
43 // A rational number is represented as pair of integers, n and d.
44 // The value of of the rational number is
55 class Rational
67 Rational (): n (0), d (1) {}
74 Rational (int _n, int _d): n (_n), d (_d) {}
81 explicit Rational (double x);
ImfFramesPerSecond.cpp 48 Rational
51 return guessExactFps (Rational (fps));
55 Rational
56 guessExactFps (const Rational &fps)
ImfRationalAttribute.h 51 typedef TypedAttribute<Rational> RationalAttribute;
ImfRational.cpp 37 // Rational numbers
39 // The double-to-Rational conversion code below
92 Rational::Rational (double x)
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
Rational.java 20 * The rational data type of EXIF tag. Contains a pair of longs representing the
21 * numerator and denominator of a Rational number.
23 public class Rational {
29 * Create a Rational with a given numerator and denominator.
34 public Rational(long nominator, long denominator) {
40 * Create a copy of a Rational.
42 public Rational(Rational r) {
48 * Gets the numerator of the rational.
55 * Gets the denominator of the rational
    [all...]
ExifTag.java 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first
350 * Sets Rational values into this tag. This method should be used for tags
361 * @see Rational
363 public boolean setValue(Rational[] value) {
382 * Sets a Rational value into this tag. This method should be used for tags
392 * @see Rational
394 public boolean setValue(Rational value) {
395 return setValue(new Rational[] {
468 } else if (obj instanceof Rational) {
469 return setValue((Rational) obj)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/exif/
Rational.java 21 * The rational data type of EXIF tag. Contains a pair of longs representing the
22 * numerator and denominator of a Rational number.
24 public class Rational {
30 * Create a Rational with a given numerator and denominator.
35 public Rational(long numerator, long denominator) {
41 * Create a copy of a Rational.
43 public Rational(Rational r) {
49 * Gets the numerator of the rational.
56 * Gets the denominator of the rational
    [all...]
ExifTag.java 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first
350 * Sets Rational values into this tag. This method should be used for tags
361 * @see Rational
363 public boolean setValue(Rational[] value) {
382 * Sets a Rational value into this tag. This method should be used for tags
392 * @see Rational
394 public boolean setValue(Rational value) {
395 return setValue(new Rational[] {
468 } else if (obj instanceof Rational) {
469 return setValue((Rational) obj)
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
Rational.java 20 * The rational data type of EXIF tag. Contains a pair of longs representing the
21 * numerator and denominator of a Rational number.
23 public class Rational {
29 * Create a Rational with a given numerator and denominator.
34 public Rational(long nominator, long denominator) {
40 * Create a copy of a Rational.
42 public Rational(Rational r) {
48 * Gets the numerator of the rational.
55 * Gets the denominator of the rational
    [all...]
ExifTag.java 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first
350 * Sets Rational values into this tag. This method should be used for tags
361 * @see Rational
363 public boolean setValue(Rational[] value) {
382 * Sets a Rational value into this tag. This method should be used for tags
392 * @see Rational
394 public boolean setValue(Rational value) {
395 return setValue(new Rational[] {
468 } else if (obj instanceof Rational) {
469 return setValue((Rational) obj)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/exif/
Rational.java 20 * The rational data type of EXIF tag. Contains a pair of longs representing the
21 * numerator and denominator of a Rational number.
23 public class Rational {
29 * Create a Rational with a given numerator and denominator.
34 public Rational(long nominator, long denominator) {
40 * Create a copy of a Rational.
42 public Rational(Rational r) {
48 * Gets the numerator of the rational.
55 * Gets the denominator of the rational
    [all...]
ExifTag.java 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first
350 * Sets Rational values into this tag. This method should be used for tags
361 * @see Rational
363 public boolean setValue(Rational[] value) {
382 * Sets a Rational value into this tag. This method should be used for tags
392 * @see Rational
394 public boolean setValue(Rational value) {
395 return setValue(new Rational[] {
468 } else if (obj instanceof Rational) {
469 return setValue((Rational) obj)
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
RationalTest.java 20 import android.util.Rational;
31 import static android.util.Rational.*;
43 private static final Rational UNIT = new Rational(1, 1);
50 assertEquals(1, Rational.gcd(1, 2));
51 assertEquals(1, Rational.gcd(2, 3));
52 assertEquals(78, Rational.gcd(5*78, 7*78));
53 assertEquals(1, Rational.gcd(-1, 2));
54 assertEquals(1, Rational.gcd(-2, 3));
61 Rational r = new Rational(1, 2)
    [all...]
RangeTest.java 21 import android.util.Rational;
104 Range<Rational> negativeOneTenthPositiveOneTenth =
105 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10));
106 Range<Rational> negativeOneTenthPositiveOneTenth2 =
107 Range.create(new Rational(-1, 10), new Rational(1, 10));
130 Range<Rational> negativeOneTenthPositiveOneTenth =
131 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10))
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
RationalTest.java 20 import android.util.Rational;
31 import static android.util.Rational.*;
36 private static final Rational UNIT = new Rational(1, 1);
42 Rational r = new Rational(1, 2);
47 r = new Rational(-1, 2);
52 r = new Rational(1, -2);
57 r = new Rational(-1, -2);
62 r = new Rational(1, 0)
    [all...]
RangeTest.java 21 import android.util.Rational;
97 Range<Rational> negativeOneTenthPositiveOneTenth =
98 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10));
99 Range<Rational> negativeOneTenthPositiveOneTenth2 =
100 Range.create(new Rational(-1, 10), new Rational(1, 10));
123 Range<Rational> negativeOneTenthPositiveOneTenth =
124 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10))
    [all...]
  /external/piex/src/
piex_types.h 61 struct Rational {
70 Rational latitude[3];
72 Rational longitude[3];
74 Rational altitude;
76 Rational time_stamp[3]; // Giving hour, minute and second.
97 Rational exposure_time;
98 Rational fnumber;
99 Rational focal_length;
  /frameworks/base/core/java/android/util/
Rational.java 24 * <p>An immutable data type representation a rational number.</p>
27 * Rational number. </p>
29 public final class Rational extends Number implements Comparable<Rational> {
31 * Constant for the <em>Not-a-Number (NaN)</em> value of the {@code Rational} type.
37 * <p>Equivalent to constructing a new rational with both the numerator and denominator
40 public static final Rational NaN = new Rational(0, 0);
43 * Constant for the positive infinity value of the {@code Rational} type.
45 * <p>Equivalent to constructing a new rational with a positive numerator and a denominato
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/utils/
ParamsUtils.java 23 import android.util.Rational;
112 * Create a {@link Rational} value by approximating the float value as a rational.
119 * @return the rational representation of the float
121 public static Rational createRational(float value) {
123 return Rational.NaN;
125 return Rational.POSITIVE_INFINITY;
127 return Rational.NEGATIVE_INFINITY;
129 return Rational.ZERO;
157 return new Rational(num, den)
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/params/
ColorSpaceTransform.java 23 import android.util.Rational;
28 * Immutable class for describing a 3x3 matrix of {@link Rational} values in row-major order.
44 /** The number of total Rational elements in this matrix. */
47 /** Number of int elements in a rational. */
50 /** Numerator offset inside a rational (pair). */
53 /** Denominator offset inside a rational (pair). */
60 * Create a new immutable {@link ColorSpaceTransform} instance from a {@link Rational} array.
71 public ColorSpaceTransform(Rational[] elements) {
90 * <p>The elements must be stored in a row-major order. Each rational is stored
135 public Rational getElement(int column, int row)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/widget/
AspectRatioDialogLayout.java 24 import com.android.camera.exif.Rational;
40 private Rational mAspectRatio;
49 public AspectRatioDialogLayout(Context context, Rational defaultAspectRatio) {
107 private void setAspectRatio(Rational aspectRatio) {
122 public void onConfirm(Rational chosenAspectRatio);
  /frameworks/base/core/java/android/hardware/camera2/marshal/impl/
MarshalQueryablePrimitive.java 22 import android.util.Rational;
38 * <li>Rational <-> TYPE_RATIONAL
87 } else if (value instanceof Rational) {
89 marshalPrimitive((Rational) value, buffer);
120 private void marshalPrimitive(Rational value, ByteBuffer buffer) {
140 return new Rational(numerator, denominator);
177 } else if (klass == Rational.class) {
  /frameworks/base/media/java/android/media/
Utils.java 22 import android.util.Rational;
149 private static Rational scaleRatio(Rational ratio, int num, int den) {
153 return new Rational(
158 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) {
269 static Range<Rational> parseRationalRange(Object o, Range<Rational> fallback) {
275 Rational.parseRational(s.substring(0, ix)),
276 Rational.parseRational(s.substring(ix + 1)))
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_abstract_numbers.py 5 from numbers import Complex, Real, Rational, Integral
30 self.assertFalse(issubclass(float, Rational))

Completed in 399 milliseconds

1 2 3 4