/// <summary> /// Lists the available codecs IDs. There can be multiple codecs (e.g. for decoding or encoding, or with and without hardware acceleration) /// for a given codec ID (e.g. H264). /// </summary> /// <returns> /// A list of available codecs IDs. /// </returns> public unsafe List <AVCodecDescriptor> GetAvailableCodecDescriptors() { List <AVCodecDescriptor> codecs = new List <AVCodecDescriptor>(); NativeAVCodecDescriptor *descriptor = null; while ((descriptor = ffmpeg.avcodec_descriptor_next(descriptor)) != null) { codecs.Add(new AVCodecDescriptor(descriptor)); } return(codecs); }
/// <summary> /// Initializes a new instance of the <see cref="AVCodecDescriptor"/> class. /// </summary> /// <param name="native"> /// The underlying native instance. /// </param> public AVCodecDescriptor(NativeAVCodecDescriptor *native) { this.native = native; }