upipe-av/upipe_av_pixfmt.h header reference

upipe/avutil pixelformat conversion More

Header inclusion  

Members  

Functions  

Macro  

Description  

This is also used in swscale.

Members detail  

#define UPIPE_AV_MAX_PLANES  

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

maximum number of planes + 1 in supported pixel formats

#define _UPIPE_AV_UPIPE_AV_PIXFMT_H_  

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

#define u  

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

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

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

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)  

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

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

Valid XHTML 1.0 StrictGenerated by cmassiot on Fri Feb 2 23:57:18 2018 using MkDoc