public ShrunkFileIO(InterFrame f)
 {
     ioFrame      = f;
     frameAsBytes = toUBytes(f.encoded);
     width        = f.width;
     height       = f.height;
 }
 public ShrunkFileIO(InterFrame _iaFrame, InterFrame _ieFrame)
 {
     iaFrame = _iaFrame;
     ieFrame = _ieFrame;
     width   = _ieFrame.width;
     height  = _ieFrame.height;
 }
        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();
            }
        }