in Transform360/vf_transform360.c [95:102]
static inline void update_plane_sizes(
AVPixFmtDescriptor* desc,
int* in_w, int* in_h, int* out_w, int* out_h) {
*in_w = FF_CEIL_RSHIFT(*in_w, desc->log2_chroma_w);
*in_h = FF_CEIL_RSHIFT(*in_h, desc->log2_chroma_h);
*out_w = FF_CEIL_RSHIFT(*out_w, desc->log2_chroma_w);
*out_h = FF_CEIL_RSHIFT(*out_h, desc->log2_chroma_h);
}