コード例 #1
0
ファイル: DrawOp.cs プロジェクト: miktemk/VidkaEditor
 public DrawOp(IVidkaOpContext context, ImageCacheManager imageMan)
 {
     this.context = context;
     this.imgCache = imageMan;
     if (context != null)
     {
         dimdim = context.Dimdim;
         fileMapping = context.FileMapping;
         uiObjects = context.UiObjects;
     }
 }
コード例 #2
0
 public DragAndDropManager(IVideoShitbox editor, VidkaProj proj, VidkaFileMapping fileMapping)
 {
     this.editor = editor;
     Proj = proj;
     Mode = DragAndDropManagerMode.None;
     _draggies = new List<DragAndDropMediaFile>();
     outstandingVideo = new List<VidkaClipVideoAbstract>();
     outstandingAudio = new List<VidkaClipAudio>();
     metaGenerator = new MetaGeneratorInOtherThread(fileMapping);
     //metaGenerator.OneItemFinished += metaGenerator_OneItemFinished;
     //metaGenerator.MetaGeneratorDone += metaGenerator_MetaGeneratorDone;
     metaGenerator.HereIsSomeTextForConsole += genericListener_AppendToConsole;
     metaGenerator.MetaReady += metaGenerator_MetaReady;
     metaGenerator.ThumbnailsReady += metaGenerator_ThumbReady;
     metaGenerator.WaveformReady += metaGenerator_WaveReady;
     metaGenerator.PleaseUnlockThisFile += metaGenerator_PleaseUnlockThisFile;
 }
コード例 #3
0
 public void SetParticulars(
     VidkaClipVideoAbstract vclip,
     MetaGeneratorInOtherThread metaGenerator,
     VidkaFileMapping fileMapping,
     VidkaProj proj)
 {
     this.vclip = vclip;
     this.metaGenerator = metaGenerator;
     this.fileMapping = fileMapping;
     this.proj = proj;
     // ..... set up the vclip that we will draw
     vclipFullToDraw = vclip.MakeCopy_VideoClip();
     vclipFullToDraw.FrameStart = 0;
     vclipFullToDraw.FrameEnd = vclipFullToDraw.LengthFrameCalc;
     // ..... set up UI
     chkHasCustomAudio.Checked = vclip.HasCustomAudio;
     txtOffset.Text = "" + vclip.CustomAudioOffset;
     //shitboxAlignVideoAudioControl.SetParticulars(vclip, fileMapping);
     SetFilenameLabel(vclip.CustomAudioFilename);
     updateAudioInfo(vclip);
     updateDisabilityOfControlBasedOnCheckbox();
 }
コード例 #4
0
        public void SetParticulars(
			VidkaClipVideoAbstract vclip,
			VidkaFileMapping fileMapping)
        {
            this.imageMan = new ImageCacheManager();
            this.fileMapping = fileMapping;
            this.vclip = vclip;
            // set up the vclip that we will draw
            vclipFullToDraw = vclip.MakeCopy_VideoClip();
            vclipFullToDraw.FrameStart = 0;
            vclipFullToDraw.FrameEnd = vclipFullToDraw.LengthFrameCalc;
            // set up the audio clip that we will draw
            aclipToDraw = new VidkaClipAudio()
            {
                FileName = vclip.CustomAudioFilename,
                FileLengthSec = vclip.CustomAudioLengthSec,
                FileLengthFrames = dimdim.SecToFrame(vclip.CustomAudioLengthSec ?? 0),
                FrameStart = 0,
                FrameEnd = dimdim.SecToFrame(vclip.CustomAudioLengthSec ?? 0),
            };
            imageMan.ImagesReady += imageMan_ImagesReady;
        }
コード例 #5
0
 public void SetFileMapping(VidkaFileMapping fileMapping)
 {
     this.fileMapping = fileMapping;
     Invalidate();
 }
コード例 #6
0
 public MetaGeneratorInOtherThread(VidkaFileMapping fileMapping)
 {
     this.fileMapping = fileMapping;
     taskThread       = new TaskQueueInOtherThread();
 }
コード例 #7
0
 public MetaGeneratorInOtherThread(VidkaFileMapping fileMapping)
 {
     this.fileMapping = fileMapping;
     taskThread = new TaskQueueInOtherThread();
 }