public ExtraVideoInfo(VideoInfo info) { Width = info.width; Height = info.height; Size = new Size(Width, Height); Area = Width * Height; AspectRatio = (double)Width / Height; ColorSpace = info.pixel_type; FrameCount = info.num_frames; Info = info; if (ColorSpace.IsRealPlanar()) { var vi = info; vi.width = Width / ColorSpace.GetWidthSubsample(); vi.height = Height / ColorSpace.GetHeightSubsample(); vi.pixel_type = ColorSpaces.CS_Y8; Chroma = vi; } else { Chroma = this; } }