upipe-av/upipe_av_pixfmt.h header reference

upipe/avutil pixelformat conversion More

Header inclusion [link] 

Members [link] 

Functions [link] 

Macro [link] 

Description [link] 

This is also used in swscale.

Members detail [link] 

#define UPIPE_AV_MAX_PLANES [link] 

This macro is declared in upipe-av/upipe_av_pixfmt.h source file, line 49.

maximum number of planes + 1 in supported pixel formats

#define _UPIPE_AV_UPIPE_AV_PIXFMT_H_ [link] 

This macro is declared in upipe-av/upipe_av_pixfmt.h source file, line 34.

enum AVPixelFormat upipe_av_hw_pixfmt_from_flow_def(struct uref *flow_def) [link] 

This function is declared in upipe-av/upipe_av_pixfmt.h source file, line 291.

This function returns the appropriate hardware av pixel format according to the flow definition.

Parameter list:

  • flow_def: flow definition

The return value is selected pixel format, or AV_PIX_FMT_NONE if no compatible pixel format was found

enum AVPixelFormat upipe_av_pixfmt_from_flow_def(struct uref *flow_def, const enum AVPixelFormat *pix_fmts, const char *chroma_p[5]) [link] 

This function is declared in upipe-av/upipe_av_pixfmt.h source file, line 314.

This declaration involves expansion of the UPIPE_AV_MAX_PLANES macro.

This function finds the appropriate av pixel format according to the flow definition, and creates a mapping system for planes.

Parameter list:

  • flow_def: flow definition
  • pix_fmts: allowed pixel formats, terminated by -1 (or NULL for any)
  • chroma_map: av plane number vs. chroma map

The return value is selected pixel format, or AV_PIX_FMT_NONE if no compatible pixel format was found

int upipe_av_pixfmt_to_flow_def(enum AVPixelFormat pix_fmt, struct uref *flow_def) [link] 

This function is declared in upipe-av/upipe_av_pixfmt.h source file, line 176.

This function configures the flow definition according to the given pixel format.

Parameter list:

  • pix_fmt: avcodec pixel format
  • flow_def: overwritten flow definition

The return value is an error code

const struct uref_pic_flow_format * upipe_av_pixfmt_to_format(enum AVPixelFormat pix_fmt) [link] 

This function is declared in upipe-av/upipe_av_pixfmt.h source file, line 59.

This function returns the upipe flow format for a given avutil pixel format.

Parameter list:

  • pix_fmt: avutil pixel format

The return value is the upipe flow format description or NULL

enum AVPixelFormat upipe_av_sw_pixfmt_from_flow_def(struct uref *flow_def, const enum AVPixelFormat *pix_fmts, const char *chroma_p[5]) [link] 

This function is declared in upipe-av/upipe_av_pixfmt.h source file, line 198.

This declaration involves expansion of the UPIPE_AV_MAX_PLANES macro.

This function finds the appropriate software av pixel format according to the flow definition, and creates a mapping system for planes.

Parameter list:

  • flow_def: flow definition
  • pix_fmts: allowed pixel formats, terminated by -1 (or NULL for any)
  • chroma_map: av plane number vs. chroma map

The return value is selected pixel format, or AV_PIX_FMT_NONE if no compatible pixel format was found

Valid XHTML 1.0 StrictGenerated by cmassiot on Sun Dec 14 18:31:17 2025 using MkDoc