コード例 #1
0
 public ShrunkFileIO(InterFrame f)
 {
     ioFrame      = f;
     frameAsBytes = toUBytes(f.encoded);
     width        = f.width;
     height       = f.height;
 }
コード例 #2
0
 public ShrunkFileIO(InterFrame _iaFrame, InterFrame _ieFrame)
 {
     iaFrame = _iaFrame;
     ieFrame = _ieFrame;
     width   = _ieFrame.width;
     height  = _ieFrame.height;
 }
コード例 #3
0
        public ShrunkFileIO(string fileName)
        {
            bool read = readFile(fileName);

            if (read)
            {
                sbyte[] iaFrameSignedBytes = Array.ConvertAll(iaFrameBytes, b => (sbyte)b);
                sbyte[] ieFrameSignedBytes = Array.ConvertAll(ieFrameBytes, b => (sbyte)b);
                iaFrame = new InterFrame(iaFrameSignedBytes, width, height);
                ieFrame = new InterFrame(iaFrame, ieFrameSignedBytes, width, height, mvYBytes, mvCbBytes);
                iaFrame.upsampleAndRGB();
            }
        }