avcodec_find_best_pix_fmt_of_list

Find the best pixel format to convert to given a certain source pixel format. When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. avcodec_find_best_pix_fmt_of_2() searches which of the given pixel formats should be used to suffer the least amount of loss. The pixel formats from which it chooses one, are determined by the pix_fmt_list parameter.

More...
@nogc nothrow extern (C)
avcodec_find_best_pix_fmt_of_list

Detailed Description

@paramin pix_fmt_list AV_PIX_FMT_NONE terminated array of pixel formats to choose from @paramin src_pix_fmt source pixel format @paramin has_alpha Whether the source pixel format alpha channel is used. @paramout loss_ptr Combination of flags informing you what kind of losses will occur. @return The best pixel format to convert to or -1 if none was found.

Meta