How to estimate buffer size for colorspace converting

How to estimate buffer size for colorspace converting (here from RGB888 to NV12 colorospace)