Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ProfileWithLevelList<T, TP, TL>

    A generic base class implementing a list of profiles and associated maximum supported levels.

    Inheritance
    System.Object
    System.Collections.Generic.List<T>
    ProfileWithLevelList<T, TP, TL>
    Av1ProfileWithLevelList
    AvcProfileWithLevelList
    H263ProfileWithLevelList
    HevcProfileWithLevelList
    Mpeg2ProfileWithLevelList
    Mpeg4ProfileWithLevelList
    Vc1ProfileWithLevelList
    Vp8ProfileWithLevelList
    Vp9ProfileWithLevelList
    Implements
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IReadOnlyList<T>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Collections.Generic.List<T>.System.Collections.IList.get_Item(System.Int32)
    System.Collections.Generic.List<T>.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Collections.Generic.List<T>.Add(T)
    System.Collections.Generic.List<T>.AddRange(System.Collections.Generic.IEnumerable<T>)
    System.Collections.Generic.List<T>.AsReadOnly()
    System.Collections.Generic.List<T>.BinarySearch(T)
    System.Collections.Generic.List<T>.BinarySearch(T, System.Collections.Generic.IComparer<T>)
    System.Collections.Generic.List<T>.BinarySearch(System.Int32, System.Int32, T, System.Collections.Generic.IComparer<T>)
    System.Collections.Generic.List<T>.Clear()
    System.Collections.Generic.List<T>.Contains(T)
    System.Collections.Generic.List<T>.ConvertAll<TOutput>(System.Converter<T, TOutput>)
    System.Collections.Generic.List<T>.CopyTo(T[])
    System.Collections.Generic.List<T>.CopyTo(T[], System.Int32)
    System.Collections.Generic.List<T>.CopyTo(System.Int32, T[], System.Int32, System.Int32)
    System.Collections.Generic.List<T>.Exists(System.Predicate<T>)
    System.Collections.Generic.List<T>.Find(System.Predicate<T>)
    System.Collections.Generic.List<T>.FindAll(System.Predicate<T>)
    System.Collections.Generic.List<T>.FindIndex(System.Int32, System.Int32, System.Predicate<T>)
    System.Collections.Generic.List<T>.FindIndex(System.Int32, System.Predicate<T>)
    System.Collections.Generic.List<T>.FindIndex(System.Predicate<T>)
    System.Collections.Generic.List<T>.FindLast(System.Predicate<T>)
    System.Collections.Generic.List<T>.FindLastIndex(System.Int32, System.Int32, System.Predicate<T>)
    System.Collections.Generic.List<T>.FindLastIndex(System.Int32, System.Predicate<T>)
    System.Collections.Generic.List<T>.FindLastIndex(System.Predicate<T>)
    System.Collections.Generic.List<T>.ForEach(System.Action<T>)
    System.Collections.Generic.List<T>.GetEnumerator()
    System.Collections.Generic.List<T>.GetRange(System.Int32, System.Int32)
    System.Collections.Generic.List<T>.IndexOf(T)
    System.Collections.Generic.List<T>.IndexOf(T, System.Int32)
    System.Collections.Generic.List<T>.IndexOf(T, System.Int32, System.Int32)
    System.Collections.Generic.List<T>.Insert(System.Int32, T)
    System.Collections.Generic.List<T>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<T>)
    System.Collections.Generic.List<T>.LastIndexOf(T)
    System.Collections.Generic.List<T>.LastIndexOf(T, System.Int32)
    System.Collections.Generic.List<T>.LastIndexOf(T, System.Int32, System.Int32)
    System.Collections.Generic.List<T>.Remove(T)
    System.Collections.Generic.List<T>.RemoveAll(System.Predicate<T>)
    System.Collections.Generic.List<T>.RemoveAt(System.Int32)
    System.Collections.Generic.List<T>.RemoveRange(System.Int32, System.Int32)
    System.Collections.Generic.List<T>.Reverse()
    System.Collections.Generic.List<T>.Reverse(System.Int32, System.Int32)
    System.Collections.Generic.List<T>.Sort()
    System.Collections.Generic.List<T>.Sort(System.Collections.Generic.IComparer<T>)
    System.Collections.Generic.List<T>.Sort(System.Comparison<T>)
    System.Collections.Generic.List<T>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<T>)
    System.Collections.Generic.List<T>.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
    System.Collections.Generic.List<T>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.Generic.List<T>.System.Collections.IEnumerable.GetEnumerator()
    System.Collections.Generic.List<T>.System.Collections.IList.Add(System.Object)
    System.Collections.Generic.List<T>.System.Collections.IList.Contains(System.Object)
    System.Collections.Generic.List<T>.System.Collections.IList.IndexOf(System.Object)
    System.Collections.Generic.List<T>.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.Generic.List<T>.System.Collections.IList.Remove(System.Object)
    System.Collections.Generic.List<T>.ToArray()
    System.Collections.Generic.List<T>.TrimExcess()
    System.Collections.Generic.List<T>.TrueForAll(System.Predicate<T>)
    System.Collections.Generic.List<T>.Capacity
    System.Collections.Generic.List<T>.Count
    System.Collections.Generic.List<T>.Item[System.Int32]
    System.Collections.Generic.List<T>.System.Collections.Generic.ICollection<T>.IsReadOnly
    System.Collections.Generic.List<T>.System.Collections.ICollection.IsSynchronized
    System.Collections.Generic.List<T>.System.Collections.ICollection.SyncRoot
    System.Collections.Generic.List<T>.System.Collections.IList.IsFixedSize
    System.Collections.Generic.List<T>.System.Collections.IList.IsReadOnly
    System.Collections.Generic.List<T>.System.Collections.IList.Item[System.Int32]
    Namespace: Emby.Media.Model.Types
    Assembly: Emby.Media.Model.dll
    Syntax
    public class ProfileWithLevelList<T, TP, TL> : List<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable where T : ProfileWithLevel<TP, TL> where TP : struct, Enum where TL : struct, Enum
    Type Parameters
    Name Description
    T

    A profile and level combination, derived from ProfileWithLevel<TP, TL>.

    TP

    The type of the profile enum.

    TL

    The type of the level enum.

    Constructors

    ProfileWithLevelList()

    Initializes a new instance of the ProfileWithLevelList<T, TP, TL> class.

    Declaration
    public ProfileWithLevelList()

    ProfileWithLevelList(IEnumerable<T>)

    Initializes a new instance of the ProfileWithLevelList<T, TP, TL> class.

    Declaration
    public ProfileWithLevelList(IEnumerable<T> list)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> list

    The list.

    Methods

    Add(TP, TL)

    Adds the specified combination of profile and level to the list.

    Declaration
    public void Add(TP profile, TL level)
    Parameters
    Type Name Description
    TP profile

    The profile.

    TL level

    The level.

    ContainsProfile(TP)

    Determines whether the list contains profile.

    Declaration
    public bool ContainsProfile(TP profile)
    Parameters
    Type Name Description
    TP profile

    The profile.

    Returns
    Type Description
    System.Boolean

    true if the specified profile is contained; otherwise, false.

    GetLevel(TP)

    Returns the maximum supported level for the specified profile.

    Declaration
    public TL GetLevel(TP profile)
    Parameters
    Type Name Description
    TP profile

    The profile.

    Returns
    Type Description
    TL

    GetMaxAndLowerLevels()

    Returns a list of the level having the highest ordinal and all lower levels.

    Declaration
    public IReadOnlyList<TL> GetMaxAndLowerLevels()
    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<TL>

    GetMaxLevel()

    Returns the level having the highest ordinal.

    Declaration
    public TL? GetMaxLevel()
    Returns
    Type Description
    System.Nullable<TL>

    GetProfileLevelInformation()

    Creates a list of ProfileLevelInformation objects for the contained items.

    Declaration
    public IList<ProfileLevelInformation> GetProfileLevelInformation()
    Returns
    Type Description
    System.Collections.Generic.IList<ProfileLevelInformation>

    GetProfiles()

    Returns all profiles.

    Declaration
    public IReadOnlyList<TP> GetProfiles()
    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<TP>

    HasProfileWithBitDepth(Int32)

    Determines whether a profile in the collection supports the specified bit depth.

    Declaration
    public bool HasProfileWithBitDepth(int bitDepth)
    Parameters
    Type Name Description
    System.Int32 bitDepth

    The bit depth.

    Returns
    Type Description
    System.Boolean

    true if a profile with the specified bit depth exists; otherwise, false.

    RemoveProfile(TP)

    Returns the maximum supported level for the specified profile.

    Declaration
    public void RemoveProfile(TP profile)
    Parameters
    Type Name Description
    TP profile

    The profile.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Implements

    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IReadOnlyList<T>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    Extensions.AddIfNotExists<T>(List<T>, T)
    Extensions.JsonClone<T>(T, IJsonSerializer)

    See Also

    System.Collections.Generic.List<T>
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.