예제 #1
0
 //Chanege processsing to CUDA GPU
 private void CheckBox_EnableCuda_CheckedChanged(object sender, EventArgs e)
 {
     this.enableCUDA = CheckBox_EnableCuda.Checked;
     if (enableCUDA)
     {
         packer          = new SteganographyGPU(this);
         autocorrelation = new AutocorrelationGPU(this);
     }
     else
     {
         packer          = new SteganographyCPU(this);
         autocorrelation = new AutocorrelationCPU(this);
     }
     UpdateCudaInfo();
 }
예제 #2
0
        public MainForm()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;

            packer          = new SteganographyCPU(this);
            autocorrelation = new AutocorrelationCPU(this);
            enableCUDA      = false;
            UpdateCudaInfo();

            //Inicijalno je zakljucano biranje fajla jer ne postoji izabrana slika i pack dugmeta i unpack dugme je sakriveno
            this.FilePath_PackGroup.Enabled    = false;
            this.GroupBox_PackFileInfo.Enabled = false;
            this.Button_Pack.Enabled           = false;
            this.Button_Unpack.Visible         = false;
            this.GroupBox_UnpackInfo.Enabled   = false;
        }