/// @brief scff_interprocessモジュールのパラメータを生成
        public static scff_interprocess.SWScaleConfig ToInterprocess(SWScaleConfig input)
        {
            scff_interprocess.SWScaleConfig output = new scff_interprocess.SWScaleConfig();

            output.flags = (Int32)input.Flags;
            output.accurate_rnd = Convert.ToByte(input.AccurateRnd);
            output.is_filter_enabled = Convert.ToByte(input.IsFilterEnabled);
            output.luma_gblur = input.LumaGBlur;
            output.chroma_gblur = input.ChromaGBlur;
            output.luma_sharpen = input.LumaSharpen;
            output.chroma_sharpen = input.ChromaSharpen;
            output.chroma_hshift = input.ChromaHShift;
            output.chroma_vshift = input.ChromaVShift;

            return output;
        }
Beispiel #2
0
        /// @brief scff_interprocess用に変換
        public scff_interprocess.SWScaleConfig ToInterprocess()
        {
            scff_interprocess.SWScaleConfig output = new scff_interprocess.SWScaleConfig();

            output.flags             = (Int32)this.Flags;
            output.accurate_rnd      = Convert.ToByte(this.AccurateRnd);
            output.is_filter_enabled = Convert.ToByte(this.IsFilterEnabled);
            output.luma_gblur        = this.LumaGBlur;
            output.chroma_gblur      = this.ChromaGBlur;
            output.luma_sharpen      = this.LumaSharpen;
            output.chroma_sharpen    = this.ChromaSharpen;

            /// @warning HShift/VShiftの設定はffdshowでも0.0固定になっていた
            output.chroma_hshift = 0.0F;
            output.chroma_vshift = 0.0F;
            // output.chroma_hshift = this.ChromaHShift;
            // output.chroma_vshift = this.ChromaVShift;

            return(output);
        }
        /// @brief scff_interprocess用に変換
        public scff_interprocess.SWScaleConfig ToInterprocess()
        {
            scff_interprocess.SWScaleConfig output = new scff_interprocess.SWScaleConfig();

            output.flags = (Int32)this.Flags;
            output.accurate_rnd = Convert.ToByte(this.AccurateRnd);
            output.is_filter_enabled = Convert.ToByte(this.IsFilterEnabled);
            output.luma_gblur = this.LumaGBlur;
            output.chroma_gblur = this.ChromaGBlur;
            output.luma_sharpen = this.LumaSharpen;
            output.chroma_sharpen = this.ChromaSharpen;

            /// @warning HShift/VShiftの設定はffdshowでも0.0固定になっていた
            output.chroma_hshift = 0.0F;
            output.chroma_vshift = 0.0F;
            // output.chroma_hshift = this.ChromaHShift;
            // output.chroma_vshift = this.ChromaVShift;

            return output;
        }