How to get bit depth of kCVPixelFormatType_422YpCbCr16 video

Apple developer documentation

https://developer.apple.com/documentation/corevideo/1563591-pixel_format_identifiers/kcvpixelformattype_422ypcbcr16?language=objc

states that v216 is 10, 12, 14 or 16 bit.


I believe all these formats are stored as 2 bytes per value and significant bits are ignored depending on whether the underlying video is 10, 12, 14 or 16 bits. How do I get/set the bit depth when reading/writing video in this format?


Thanks!