upipe-av/upipe_av_pixfmt.h header reference
upipe/avutil pixelformat conversion More
Header inclusion
Members
Functions
- enum AVPixelFormat upipe_av_pixfmt_from_flow_def(struct uref *flow_def, const enum AVPixelFormat *pix_fmts, const char *chroma_p[5])
- int upipe_av_pixfmt_to_flow_def(enum AVPixelFormat pix_fmt, struct uref *flow_def)
Macro
Description
This is also used in swscale.
Members detail
This macro is declared in upipe-av/upipe_av_pixfmt.h source file, line 47.
maximum number of planes + 1 in supported pixel formats
This macro is declared in upipe-av/upipe_av_pixfmt.h source file, line 33.
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
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