Esempio n. 1
0
    void ExportProjectVideoProperties(XmlElement parent, ProjectVideoProperties props)
    {
        XmlElement elt = AddChild(parent, "Video");

        ChildInt32(elt, "Width", props.Width);
        ChildInt32(elt, "Height", props.Height);
        ChildDouble(elt, "FrameRate", props.FrameRate);
        ChildObject(elt, "FieldOrder", props.FieldOrder);
        ChildDouble(elt, "PixelAspectRatio", props.PixelAspectRatio);
        ChildObject(elt, "RenderQuality", props.RenderQuality);
        ChildObject(elt, "MotionBlurType", props.MotionBlurType);
        ChildObject(elt, "DeinterlaceMethod", props.DeinterlaceMethod);
    }
Esempio n. 2
0
    void ImportProjectVideoProperties(XmlElement parent, ProjectVideoProperties props)
    {
        XmlElement elt = parent["Video"];

        if (null == elt)
        {
            return;
        }
        try { props.Width = ChildInt32(elt, "Width"); } catch {}
        try { props.Height = ChildInt32(elt, "Height"); } catch {}
        try { props.FrameRate = ChildDouble(elt, "FrameRate"); } catch {}
        try { props.FieldOrder = ChildFieldOrder(elt, "FieldOrder"); } catch {}
        try { props.PixelAspectRatio = ChildDouble(elt, "PixelAspectRatio"); } catch {}
        try { props.RenderQuality = ChildVideoRenderQuality(elt, "RenderQuality"); } catch {}
        try { props.MotionBlurType = ChildMotionBlurType(elt, "MotionBlurType"); } catch {}
        try { props.DeinterlaceMethod = ChildVideoDeinterlaceMethod(elt, "DeinterlaceMethod"); } catch {}
    }