예제 #1
0
 public static EasyDecoder Default(int rectsPerRow = 90, int rectWidth = 4, int rectHeight = 4, byte bitsPerChannel = 6, bool fullRange = false)
 {
     return(new EasyDecoder(
                rectsPerRow,
                rectWidth,
                rectHeight,
                ChannelSettings.Default(bitsPerChannel, fullRange),
                ChannelSettings.Default(bitsPerChannel, fullRange),
                ChannelSettings.Default(bitsPerChannel, fullRange)));
 }
예제 #2
0
 public BitsDecoder(
     IPixelDecoder pixelDecoder,
     ChannelSettings red,
     ChannelSettings green,
     ChannelSettings blue
     )
 {
     m_PixelDecoder = pixelDecoder;
     m_Red          = red;
     m_Green        = green;
     m_Blue         = blue;
 }
예제 #3
0
        public EasyDecoder(
            int rectsPerRow,
            int rectWidth,
            int rectHeight,
            ChannelSettings red,
            ChannelSettings green,
            ChannelSettings blue)
        {
            m_RectsPerRow = rectsPerRow;
            m_RectWidth   = rectWidth;
            m_RectHeight  = rectHeight;

            m_CameraDataDecoder = new CameraDataDecoder(
                new DataDecoder(
                    new BitsDecoder(
                        this, red, green, blue
                        )
                    )
                );
        }