Package edu.harvard.hul.ois.ots.schemas.MIX

Examples of edu.harvard.hul.ois.ots.schemas.MIX.YCbCrCoefficients


        assertEquals ("Y", comp.getComponentPhotometricInterpretation().toString ());
        double headroom = comp.getHeadroom().toRational().getDouble();
        assertTrue (headroom == 0.0);
       
        YCbCr ycbcr = phi.getYCbCr();
        YCbCrCoefficients ycbcrc = ycbcr.getYCbCrCoefficients();
        double lumaRed = ycbcrc.getLumaRed().toRational().getDouble ();
        assertTrue (lumaRed == 10.0);
        double lumaGreen = ycbcrc.getLumaGreen().toRational().getDouble ();
        assertTrue (lumaGreen == 20.0);
        double lumaBlue = ycbcrc.getLumaBlue().toRational().getDouble ();
        assertTrue (lumaBlue == 30.0);   
    }
View Full Code Here


        }
        catch (Exception e) {
            // Malformed data
            return;
        }
        YCbCrCoefficients ycbcrc = new YCbCrCoefficients ();
        try {
            ycbcr.setYCbCrCoefficients(ycbcrc);
            phi.setYCbCr (ycbcr);
            ycbcrc.setLumaRed(new Rational ((int) (red * 100), 100));
            ycbcrc.setLumaGreen(new Rational ((int) (green * 100), 100));
            ycbcrc.setLumaBlue(new Rational ((int) (blue * 100), 100));
        }
        catch (XmlContentException e) {}
    }
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.ots.schemas.MIX.YCbCrCoefficients

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.