diff --git a/include/upipe-av/upipe_av_pixfmt.h b/include/upipe-av/upipe_av_pixfmt.h index 4065afc3e..19fd9bd9c 100644 --- a/include/upipe-av/upipe_av_pixfmt.h +++ b/include/upipe-av/upipe_av_pixfmt.h @@ -157,6 +157,8 @@ upipe_av_pixfmt_to_format(enum AVPixelFormat pix_fmt) #endif case AV_PIX_FMT_GBRP: return &uref_pic_flow_format_gbrp; + case AV_PIX_FMT_P010LE: + return &uref_pic_flow_format_p010le; default: break; } @@ -247,6 +249,7 @@ static inline enum AVPixelFormat AV_PIX_FMT_NV24, #endif AV_PIX_FMT_GBRP, + AV_PIX_FMT_P010LE, -1 }; diff --git a/include/upipe/uref_pic_flow_formats.h b/include/upipe/uref_pic_flow_formats.h index 4076ee727..43bb7a650 100644 --- a/include/upipe/uref_pic_flow_formats.h +++ b/include/upipe/uref_pic_flow_formats.h @@ -460,6 +460,11 @@ UREF_PIC_FLOW_FORMAT(gbrp, 1, { 1, 1, 1, "b8", 8 }, { 1, 1, 1, "r8", 8 }); +/** @This is the description of the p010le format. */ +UREF_PIC_FLOW_FORMAT(p010le, 1, + { 1, 1, 2, "y10l", 10 }, + { 2, 2, 4, "u10v10l", 20 }); + #define UREF_PIC_FLOW_FORMAT_FOREACH(Do, ...) \ Do(yuva420p, ## __VA_ARGS__) \ Do(yuva422p, ## __VA_ARGS__) \ @@ -508,6 +513,7 @@ UREF_PIC_FLOW_FORMAT(gbrp, 1, Do(nv16, ## __VA_ARGS__) \ Do(nv24, ## __VA_ARGS__) \ Do(gbrp, ## __VA_ARGS__) \ + Do(p010le, ## __VA_ARGS__) \ /** @This defines a helper functions to deal with a specified format. *