Esempio n. 1
0
 public MuxWindow(IMuxing muxer, MainForm mainForm) : base()
 {
     InitializeComponent();
     this.mainForm = mainForm;
     this.muxer    = muxer;
     if (muxer.GetSupportedAudioTypes().Count == 0)
     {
         audioGroupbox.Enabled = false;
     }
     if (muxer.GetSupportedChapterTypes().Count == 0)
     {
         chaptersGroupbox.Enabled = false;
     }
     if (muxer.GetSupportedSubtitleTypes().Count == 0)
     {
         subtitleGroupbox.Enabled = false;
     }
     if (muxer.GetSupportedContainerInputTypes().Count == 0)
     {
         muxedInputOpenButton.Enabled = false;
     }
     if (muxer.GetSupportedChapterTypes().Count == 0)
     {
         chaptersGroupbox.Enabled = false;
     }
 }
Esempio n. 2
0
        public List <ContainerType> GetContainersInCommon(IMuxing iMuxing)
        {
            List <ContainerType> supportedOutputTypes    = GetSupportedContainers();
            List <ContainerType> nextSupportedInputTypes = iMuxing.GetSupportedContainerInputTypes();
            List <ContainerType> commonContainers        = new List <ContainerType>();

            foreach (ContainerType eligibleType in supportedOutputTypes)
            {
                if (nextSupportedInputTypes.Contains(eligibleType))
                {
                    commonContainers.Add(eligibleType);
                }
            }
            return(commonContainers);
        }