Package com.neophob.sematrix.core.output.gamma

Examples of com.neophob.sematrix.core.output.gamma.RGBAdjust


            String pixColAdjustR = config.getProperty(ConfigConstant.PIXELINVADERS_COLORADJUST_R+i);
            String pixColAdjustG = config.getProperty(ConfigConstant.PIXELINVADERS_COLORADJUST_G+i);
            String pixColAdjustB = config.getProperty(ConfigConstant.PIXELINVADERS_COLORADJUST_B+i);

            if (pixColAdjustR!=null && pixColAdjustG!=null && pixColAdjustB!=null) {
              RGBAdjust adj = new RGBAdjust(
                  parseInt(ConfigConstant.PIXELINVADERS_COLORADJUST_R+i),
                  parseInt(ConfigConstant.PIXELINVADERS_COLORADJUST_G+i),
                  parseInt(ConfigConstant.PIXELINVADERS_COLORADJUST_B+i)
                  );
              LOG.log(Level.INFO, "Found PixelInvaders color correction for output "+i+": "+adj);
View Full Code Here


        Map<Integer, RGBAdjust> correction = ph.getPixelInvadersCorrectionMap();
        assertFalse(correction.containsKey(ConfigConstant.PIXELINVADERS_COLORADJUST_R+"0"));
        assertFalse(correction.containsKey(ConfigConstant.PIXELINVADERS_COLORADJUST_G+"0"));
        assertFalse(correction.containsKey(ConfigConstant.PIXELINVADERS_COLORADJUST_B+"0"));

        RGBAdjust corr = correction.get(1);
        assertTrue(corr!=null);
        assertEquals(100, corr.getR());
        assertEquals(130, corr.getG());
        assertEquals(150, corr.getB());
       
        corr = correction.get(2);
        assertTrue(corr!=null);
        assertEquals(4, corr.getR());
        assertEquals(0, corr.getG());
        assertEquals(0, corr.getB());       
    }
View Full Code Here

      throw new IllegalArgumentException("data lenght must be "+bufferSize+" bytes, was "+data.length);
    }
   
    int ofsAsInt = ofs;
    if (correctionMap.containsKey(ofsAsInt)) {
      RGBAdjust correction = correctionMap.get(ofsAsInt);
      return sendFrame(ofs, OutputHelper.convertBufferTo15bit(data, colorFormat, correction), totalPanels);     
    }

    return sendFrame(ofs, OutputHelper.convertBufferTo15bit(data, colorFormat), totalPanels);
  }
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.output.gamma.RGBAdjust

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.