|
int | av_get_bits_per_pixel (const AVPixFmtDescriptor *pixdesc) |
|
int | av_get_padded_bits_per_pixel (const AVPixFmtDescriptor *pixdesc) |
|
const AVPixFmtDescriptor * | av_pix_fmt_desc_get (enum AVPixelFormat pix_fmt) |
|
const AVPixFmtDescriptor * | av_pix_fmt_desc_next (const AVPixFmtDescriptor *prev) |
|
enum AVPixelFormat | av_pix_fmt_desc_get_id (const AVPixFmtDescriptor *desc) |
|
int | av_pix_fmt_get_chroma_sub_sample (enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift) |
|
int | av_pix_fmt_count_planes (enum AVPixelFormat pix_fmt) |
|
const char * | av_color_range_name (enum AVColorRange range) |
|
int | av_color_range_from_name (const char *name) |
|
const char * | av_color_primaries_name (enum AVColorPrimaries primaries) |
|
int | av_color_primaries_from_name (const char *name) |
|
const char * | av_color_transfer_name (enum AVColorTransferCharacteristic transfer) |
|
int | av_color_transfer_from_name (const char *name) |
|
const char * | av_color_space_name (enum AVColorSpace space) |
|
int | av_color_space_from_name (const char *name) |
|
const char * | av_chroma_location_name (enum AVChromaLocation location) |
|
int | av_chroma_location_from_name (const char *name) |
|
enum AVPixelFormat | av_get_pix_fmt (const char *name) |
|
const char * | av_get_pix_fmt_name (enum AVPixelFormat pix_fmt) |
|
char * | av_get_pix_fmt_string (char *buf, int buf_size, enum AVPixelFormat pix_fmt) |
|
void | av_read_image_line2 (void *dst, const uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w, int read_pal_component, int dst_element_size) |
|
void | av_read_image_line (uint16_t *dst, const uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w, int read_pal_component) |
|
void | av_write_image_line2 (const void *src, uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w, int src_element_size) |
|
void | av_write_image_line (const uint16_t *src, uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w) |
|
enum AVPixelFormat | av_pix_fmt_swap_endianness (enum AVPixelFormat pix_fmt) |
|
int | av_get_pix_fmt_loss (enum AVPixelFormat dst_pix_fmt, enum AVPixelFormat src_pix_fmt, int has_alpha) |
|
enum AVPixelFormat | av_find_best_pix_fmt_of_2 (enum AVPixelFormat dst_pix_fmt1, enum AVPixelFormat dst_pix_fmt2, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
|
Return the pixel format corresponding to name.
If there is no pixel format with name name, then looks for a pixel format with the name corresponding to the native endian format of name. For example in a little-endian system, first looks for "gray16", then for "gray16le".
Finally if no pixel format has been found, returns AV_PIX_FMT_NONE.
Compute what kind of losses will occur when converting from one specific pixel format to another. 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. These losses can involve loss of chroma, but also loss of resolution, loss of color depth, loss due to the color space conversion, loss of the alpha bits or loss due to color quantization. av_get_fix_fmt_loss() informs you about the various types of losses which will occur when converting from one pixel format to another.
- Аргументы
-
[in] | dst_pix_fmt | destination pixel format |
[in] | src_pix_fmt | source pixel format |
[in] | has_alpha | Whether the source pixel format alpha channel is used. |
- Возвращает
- Combination of flags informing you what kind of losses will occur (maximum loss for an invalid dst_pix_fmt).
Compute what kind of losses will occur when converting from one specific pixel format to another. 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. These losses can involve loss of chroma, but also loss of resolution, loss of color depth, loss due to the color space conversion, loss of the alpha bits or loss due to color quantization. av_get_fix_fmt_loss() informs you about the various types of losses which will occur when converting from one pixel format to another.
- Аргументы
-
[in] | dst_pix_fmt | destination pixel format |
[in] | src_pix_fmt | source pixel format |
[in] | has_alpha | Whether the source pixel format alpha channel is used. |
- Возвращает
- Combination of flags informing you what kind of losses will occur (maximum loss for an invalid dst_pix_fmt).