upipe-av/upipe_av_pixfmt.h header reference
upipe/avutil pixelformat conversion More
Header inclusion
Members
Functions
- enum PixelFormat upipe_av_pixfmt_from_flow_def(struct uref *flow_def, const enum PixelFormat *pix_fmts, const char *chroma_p[5])
- int upipe_av_pixfmt_to_flow_def(enum PixelFormat 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 205.
enum PixelFormat upipe_av_pixfmt_from_flow_def(struct uref *flow_def, const enum PixelFormat *pix_fmts, const char *chroma_p[5])
This function is declared in upipe-av/upipe_av_pixfmt.h source file, line 173.
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.
Parameters 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 PIX_FMT_NONE if no compatible pixel format was found
int upipe_av_pixfmt_to_flow_def(enum PixelFormat 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.
Parameters list:
- pix_fmt: avcodec pixel format
- flow_def: overwritten flow definition
The return value is an error code