avutil/imgutils: add utility to get plane sizes
This utility helps avoid undefined behavior when doing things like checking how much memory we need to allocate for an image before we have allocated a buffer. Signed-off-by: NBrian Kim <bkkim@google.com> Signed-off-by: NJames Almer <jamrial@gmail.com>
Showing
想要评论请 注册 或 登录