Chroma upsampling increases the spatial sample count of the colour-difference components after chroma subsampling. For example, converting 4:2:0 chroma subsampling to 4:2:2 chroma subsampling doubles the vertical colour sample count, while conversion to 4:4:4 chroma sampling also doubles it horizontally.[ref]
Recommended 8-Bit YUV Formats for Video Rendering by Gary Sullivan and Stephen Estrop. Converting4:2:0 YUV to4:2:2 YUV and Converting4:2:2 YUV to4:4:4 YUV
The added values are estimates, not newly measured image detail.An original one-dimensional derivation separates increasing the grid density from interpolation. Start with samples and insert zero-valued placeholders:Apply the chroma interpolation filterIt follows that and . Thus this stipulated filter preserves the original positions and fills the intervening positions by linear interpolation.
The scaling is essential. For a constant input , the correctly scaled result is128 at every output position. Using the ordinary three-tap averaging coefficients on the zero-inserted sequence would instead give64 everywhere. Those coefficients are suitable for a different operation; their unit sum alone does not preserve a constant after zero insertion.
The derivation assumes the retained samples occupy the even positions of the output grid and ignores image boundaries. Centered chroma can require a different alignment, and finite images require an edge rule. The Microsoft example specifies progressive scanning, interpolation and edge handling explicitly.[ref]
Recommended 8-Bit YUV Formats for Video Rendering by Gary Sullivan and Stephen Estrop. 4:2:0-to4:2:2 method and edge equations
Upsampling quality therefore depends on chroma sample location, filter choice and boundary treatment, rather than only on output dimensions. New to topics? Read the docs here!