// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HBVideoEncoder.cs" company="HandBrake Project (http://handbrake.fr)">
//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
//   The hb video encoder.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace HandBrake.Interop.Model.Encoding
{
	using System.Collections.Generic;

	using HandBrake.Interop.HbLib;
	using HandBrake.Interop.Helpers;

	/// <summary>
    /// The hb video encoder.
    /// </summary>
    public class HBVideoEncoder
    {
        /// <summary>
        /// Gets or sets the compatible containers.
        /// </summary>
        public int CompatibleContainers { get; set; }

        /// <summary>
        /// Gets or sets the display name.
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the short name.
        /// </summary>
        public string ShortName { get; set; }

		/// <summary>
		/// Gets the list of presets this encoder supports. (null if the encoder doesn't support presets)
		/// </summary>
		public List<string> Presets
		{
			get
			{
				return InteropUtilities.ToStringListFromArrayPtr(HBFunctions.hb_video_encoder_get_presets(this.Id));
			}
		}

		/// <summary>
		/// Gets the list of tunes this encoder supports. (null if the encoder doesn't support tunes)
		/// </summary>
		public List<string> Tunes
		{
			get
			{
				return InteropUtilities.ToStringListFromArrayPtr(HBFunctions.hb_video_encoder_get_tunes(this.Id));
			}
		}

		/// <summary>
		/// Gets the list of profiles this encoder supports. (null if the encoder doesn't support profiles)
		/// </summary>
		public List<string> Profiles
		{
			get
			{
				return InteropUtilities.ToStringListFromArrayPtr(HBFunctions.hb_video_encoder_get_profiles(this.Id));
			}
		}

		/// <summary>
		/// Gets the list of levels this encoder supports. (null if the encoder doesn't support levels)
		/// </summary>
		public List<string> Levels
		{
			get
			{
				return InteropUtilities.ToStringListFromArrayPtr(HBFunctions.hb_video_encoder_get_levels(this.Id));
			}
		} 
    }
}