Commit c8f75523 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

picture: add a commonly used plane_SwapUV function

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 7cbdd3b3
......@@ -254,6 +254,18 @@ enum
#define A_PIXELS p[A_PLANE].p_pixels
#define A_PITCH p[A_PLANE].i_pitch
* plane helper funcions
static inline void plane_SwapUV(plane_t p[PICTURE_PLANE_MAX])
uint8_t *buf = p[V_PLANE].p_pixels;
p[V_PLANE].p_pixels = p[U_PLANE].p_pixels;
p[U_PLANE].p_pixels = buf;
#endif /* VLC_PICTURE_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment