Example #1
0
        private void FillVideoFormats()
        {
            int         nCount = 0;
            int         nIndex;
            string      strFormat;
            M_VID_PROPS vidProps;

            comboBoxVF.Items.Clear();
            m_objFile.FormatVideoGetCount(eMFormatType.eMFT_Convert, out nCount);
            comboBoxVF.Enabled = nCount > 0;
            if (nCount > 0)
            {
                for (int i = 0; i < nCount; i++)
                {
                    m_objFile.FormatVideoGetByIndex(eMFormatType.eMFT_Convert, i, out vidProps, out strFormat);
                    if (vidProps.eVideoFormat == eMVideoFormat.eMVF_HD1080_5994i)
                    {
                        startVideoFormat = i;
                    }
                    comboBoxVF.Items.Add(strFormat);
                }
                m_objFile.FormatVideoGet(eMFormatType.eMFT_Convert, out vidProps, out nIndex, out strFormat);
                if (nIndex > 0)
                {
                    comboBoxVF.SelectedIndex = nIndex;
                }
                else
                {
                    comboBoxVF.SelectedIndex = 0;
                }
            }
        }