/*
    Copyright (c) 2011 flixmonk. (http://DVDSwarm.codeplex.com)
    All Rights Reserved.
        
    Redistribution and use in source and binary forms, with or without modification,
    are permitted provided that the following conditions are met:
        
    * Redistributions of source code must retain the above copyright notice, this list
      of conditions and the following disclaimer.
        
    * Redistributions in binary form must reproduce the above copyright notice, this
    list of conditions and the following disclaimer in the documentation and/or other
    materials provided with the distribution. 
        
    * Neither the name of The Flixmonk nor the names of its contributors may be used to
    endorse or promote products derived from this software without specific prior written
    permission.
        
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
    SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
namespace DVDSwarm
{
    #region Enumerations

    /// <summary>
    /// Audio format enumerations. The numeric value of the enumerations correspond to the
    /// index of an AudioFormatExtension string.
    /// </summary>
    public enum AudioFormat
    {
        /// <summary>
        /// An unknown audio format.
        /// </summary>
        Unknown = 0,
        /// <summary>
        /// AAC audio stored in raw format.
        /// </summary>
        Aac = 1,
        /// <summary>
        /// AC3 audio format.
        /// </summary>
        Ac3 = 2,
        /// <summary>
        /// DTS audio format.
        /// </summary>
        Dts = 3,
        /// <summary>
        /// FLAC audio stored in the Ogg format.
        /// </summary>
        Flac = 4,
        /// <summary>
        /// Vorbis audio stored in the Ogg format.
        /// </summary>
        Vorbis = 5,
        /// <summary>
        /// Uncompressed audio stored in the WAV format.
        /// </summary>
        Wav = 6
    }

    /// <summary>
    /// Cropping mode enumerations. The numeric value of the enumerations correspond to the
    /// index of a CropModeName string.
    /// </summary>
    public enum CropMode
    {
        /// <summary>
        /// Use the external AutoCrop filter to remove all borders. Overcropping can occur.
        /// </summary>
        Auto = 0,
        /// <summary>
        /// Use the internal method to crop based on aspect ratio. Some borders may
        /// remain, but no overcropping occurs.
        /// </summary>
        Aspect = 1,
        /// <summary>
        /// Use manual crop values.
        /// </summary>
        Manual = 2,
        /// <summary>
        /// No cropping is performed.
        /// </summary>
        None = 3
    }

    /// <summary>
    /// DVD media enumerations used to identify TreeView node types.
    /// </summary>
    public enum DvdMediaNode
    {
        /// <summary>
        /// A non-media node such as a title set or program chain node.
        /// </summary>
        NonMedia = 0,
        /// <summary>
        /// An audio node.
        /// </summary>
        Audio = 1,
        /// <summary>
        /// A subtitle node.
        /// </summary>
        Subtitle = 2,
        /// <summary>
        /// A video node.
        /// </summary>
        Video = 3
    }

    /// <summary>
    /// Generic encoder quality options. The numeric value of the enumerations correspond to the
    /// index of an EncoderQualityOptionName string.
    /// </summary>
    public enum EncoderQualityOption
    {
        /// <summary>
        /// Highest quality.
        /// </summary>
        Archival = 0,
        /// <summary>
        /// High quality.
        /// </summary>
        High = 1,
        /// <summary>
        /// Medium quality.
        /// </summary>
        Medium = 2,
        /// <summary>
        /// Low quality.
        /// </summary>
        Low = 3,
        /// <summary>
        /// Lowest quality.
        /// </summary>
        Fast = 4
    }
    
    /// <summary>
    /// Job run mode enumerations.
    /// </summary>
    public enum JobRunMode
    {
        /// <summary>
        ///  Conversion and encoding of video and audio for multiple jobs to the selected output format.
        /// </summary>
        MultiJobRun = 0,
        /// <summary>
        ///  Conversion and encoding of video and audio for a single job to the selected output format.
        /// </summary>
        SingleJobRun = 1,
        /// <summary>
        /// The job run has ended.
        /// </summary>
        Ended = 2
    }

    /// <summary>
    /// Job status enumerations.
    /// </summary>
    public enum JobStatus
    {
        /// <summary>
        /// The job is inactive.
        /// </summary>
        Inactive = 0,
        /// <summary>
        /// The job is idle and waiting to run.
        /// </summary>
        Queued = 1,
        /// <summary>
        /// The job is actively running.
        /// </summary>
        Active = 2,
        /// <summary>
        /// The job ended without cancellation or error and is inactive.
        /// </summary>
        Completed = 3,
        /// <summary>
        /// The job ended prematurely due to cancellation and is inactive.
        /// </summary>
        Cancelled = 4,
        /// <summary>
        /// The job ended prematurely due to errors and is inactive.
        /// </summary>
        Failed = 5,
        /// <summary>
        /// The job is performing necessary actions prior to becoming active.
        /// </summary>
        Initialize = 6,
        /// <summary>
        /// The job is performing necessary actions prior to becoming inactive.
        /// </summary>
        Finalize = 7,
        /// <summary>
        /// The job was ended prematurely by the application and is inactive.
        /// </summary>
        Aborted = 8,
        /// <summary>
        /// The job ended without cancellation or error and is inactive. Non-fatal warnings occurred.
        /// </summary>
        CompletedWarning = 9
    }

    /// <summary>
    /// Output container format enumerations. The numeric value of the enumerations correspond to the
    /// index of an OutputContainerFormatExtension string and an OutputContainerFormatName string.
    /// </summary>
    public enum OutputContainerFormat
    {
        /// <summary>
        /// No output container.
        /// </summary>
        None = 0,
        /// <summary>
        /// Output files are stored in a Matroska (mkv) container.
        /// </summary>
        Matroska = 1,
        /// <summary>
        /// Output files are stored in an MPEG-4 (mp4) container.
        /// </summary>
        Mpeg4 = 2
    }

    /// <summary>
    /// Video aspect ratio enumerations. The numeric value of the enumerations correspond to the index
    /// of a VideoAspectRatioValue double value.
    /// </summary>
    public enum VideoAspectRatio
    {
        /// <summary>
        /// An undetermind aspect ratio.
        /// </summary>
        Aspect_Unknown,
        /// <summary>
        /// Video aspect ratio of 1.00
        /// </summary>
        Aspect_1_00,
        /// <summary>
        /// Video aspect ratio of 1.33
        /// </summary>
        Aspect_1_33,
        /// <summary>
        /// Video aspect ratio of 1.37
        /// </summary>
        Aspect_1_37,
        /// <summary>
        /// Video aspect ratio of 1.43
        /// </summary>
        Aspect_1_43,
        /// <summary>
        /// Video aspect ratio of 1.50
        /// </summary>
        Aspect_1_50,
        /// <summary>
        /// Video aspect ratio of 1.55
        /// </summary>
        Aspect_1_55,
        /// <summary>
        /// Video aspect ratio of 1.56.
        /// </summary>
        Aspect_1_56,
        /// <summary>
        /// Video aspect ratio of 1.66
        /// </summary>
        Aspect_1_66,
        /// <summary>
        /// Video aspect ratio of 1.75
        /// </summary>
        Aspect_1_75,
        /// <summary>
        /// Video aspect ratio of 1.78
        /// </summary>
        Aspect_1_78,
        /// <summary>
        /// Video aspect ratio of 1.85
        /// </summary>
        Aspect_1_85,
        /// <summary>
        /// Video aspect ratio of 2.00
        /// </summary>
        Aspect_2_00,
        /// <summary>
        /// Video aspect ratio of 2.11
        /// </summary>
        Aspect_2_11,
        /// <summary>
        /// Video aspect ratio of 2.20
        /// </summary>
        Aspect_2_20,
        /// <summary>
        /// Video aspect ratio of 2.21
        /// </summary>
        Aspect_2_21,
        /// <summary>
        /// Video aspect ratio of 2.35
        /// </summary>
        Aspect_2_35,
        /// <summary>
        /// Video aspect ratio of 2.39
        /// </summary>
        Aspect_2_39,
        /// <summary>
        /// Video aspect ratio of 2.40
        /// </summary>
        Aspect_2_40,
        /// <summary>
        /// Video aspect ratio of 2.55
        /// </summary>
        Aspect_2_55,
        /// <summary>
        /// Video aspect ratio of 2.59
        /// </summary>
        Aspect_2_59,
        /// <summary>
        /// Video aspect ratio of 2.66
        /// </summary>
        Aspect_2_66,
        /// <summary>
        /// Video aspect ratio of 2.76
        /// </summary>
        Aspect_2_76,
        /// <summary>
        /// Video aspect ratio of 4.00
        /// </summary>
        Aspect_4_00
    }

    /// <summary>
    /// Video field order enumerations indicating which field occurs first.
    /// </summary>
    public enum VideoFieldOrder
    {
        /// <summary>
        /// The bottom field is displayed first.
        /// </summary>
        BottomFieldFirst,
        /// <summary>
        /// The top field is displayed first.
        /// </summary>
        TopFieldFirst
    }

    /// <summary>
    /// Enumerations for the playback frame rate of video.
    /// </summary>
    public enum VideoFramerate
    {
        /// <summary>
        /// An unknown framerate value.
        /// </summary>
        Unknown = 0,
        /// <summary>
        /// Digital film with 24 progressive frames per second.
        /// </summary>
        Fps24 = 1,
        /// <summary>
        /// PAL video with 25 interlaced or progressive frames per second.
        /// </summary>
        Fps25 = 2,
        /// <summary>
        /// NTSC video with 30000/1001 interlaced frames or 30 progressive frames per second.
        /// </summary>
        Fps30 = 3,
        /// <summary>
        /// Hi-definition PAL video with 50 progressive frames per second.
        /// </summary>
        Fps50 = 4,
        /// <summary>
        /// Hi-definition NTSC video with 60 progressive frames per second or NTSC video with
        /// 60000/1001 interlaced frames per second.
        /// </summary>
        Fps60 = 5,
        /// <summary>
        /// NTSC video with any combination of: 30000/1001 interlaced frames per second, 30 progressive
        /// frames per second, or 24 progressive frames per second.
        /// </summary>
        Fps120 = 6
    }

    /// <summary>
    /// Video frame type enumerations.
    /// </summary>
    public enum VideoFrameType
    {
        /// <summary>
        /// The video frame is composed of two seperate fields displayed sequentially.
        /// </summary>
        Interlaced,
        /// <summary>
        /// The video frame is composed of a single frame.
        /// </summary>
        Progressive
    }

    /// <summary>
    /// Enumerations for processing methods for film, video and hybrid material. The numeric value
    /// of the enumerations correspond to the index of a VideoProcessingTypeName string.
    /// </summary>
    public enum VideoProcessingType
    {
        /// <summary>
        /// No processing performed.
        /// </summary>
        None = 0,
        /// <summary>
        /// Deinterlace of NTSC video with no change in the frame rate.
        /// </summary>
        NtscDeinterlace = 1,
        /// <summary>
        /// Decimation of NTSC hybrid video to 24 fps wehere greater than 50% is film.
        /// </summary>
        NtscHybridFilm = 2,
        /// <summary>
        /// Decimation of NTSC hybrid video to 24 fps wehere greater than 50% is film and it
        /// contains long runs of identical frames such as with anime and cartoons.
        /// </summary>
        NtscHybridFilmAnime = 3,
        /// <summary>
        /// Conversion of NTSC hybrid video to 30 fps video where greater than 50% is video
        /// instead of film.
        /// </summary>
        NtscHybridVideo = 4,
        /// <summary>
        /// Conversion of NTSC hybrid video to 30 fps video where greater than 50% is video
        /// instead of film and it contains long runs of identical frames such as with anime
        /// and cartoons.
        /// </summary>
        NtscHybridVideoAnime = 5,
        /// <summary>
        /// Inverse telecine of NTSC video to 24 fps film.
        /// </summary>
        NtscIvtc = 6,
        /// <summary>
        /// Inverse telecine of NTSC video to 24 fps film and which contains long runs of
        /// identical frames such as with anime and cartoons.
        /// </summary>
        NtscIvtcAnime = 7,
        /// <summary>
        /// Field correction of PAL video if phase-shifted fields are present. Output is 25fps.
        /// </summary>
        Pal = 8,
        /// <summary>
        /// Decimation of PAL video to 24fps film.
        /// </summary>
        PalFilm = 9,
        /// <summary>
        /// Converts PAL video to 30fps NTSC video. Used for foobar'd PAL video.
        /// </summary>
        PalToNtsc = 10
    }

    /// <summary>
    /// Enumerations for video, film and hybrid material.
    /// </summary>
    public enum VideoType
    {
        /// <summary>
        /// NTSC film or video at 24000/1001 fps.
        /// </summary>
        NtscFilm = 0,
        /// <summary>
        /// NTSC hybrid containing 24000/1001 fps film and 30000/1001 fps video with greater than 50% film.
        /// </summary>
        NtscHybridFilm = 1,
        /// <summary>
        /// NTSC hybrid containing 24000/1001 fps film and 30000/1001 fps video with greater than 50% video.
        /// </summary>
        NtscHybridVideo = 2,
        /// <summary>
        /// NTSC video at 30000/1001 fps.
        /// </summary>
        NtscVideo = 3,
        /// <summary>
        /// PAL film or video at 25 fps.
        /// </summary>
        PalVideo = 4,
        /// <summary>
        /// Hi-definition video with a resolution of 1280x720 at 30000/1001 fps.
        /// </summary>
        NtscHdv720 = 5,
        /// <summary>
        /// Hi-definition video with a resolution of 1280x720 at 25 fps.
        /// </summary>
        PalHdv720 = 6,
        /// <summary>
        /// Hi-definition video with a resolution of 1920x1080 at 30000/1001 fps.
        /// </summary>
        NtscHdv1080 = 7,
        /// <summary>
        /// Hi-definition video with a resolution of 1920x1080 at 25 fps.
        /// </summary>
        PalHdv1080 = 8
    }

    #endregion
}