Added documentation that describes when compat_keys should be used, and why it exists.
Unified · Split
| @@ -63,7 +63,11 @@ typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc, · 62 unmodified lines | |||
| 63 | size_t *parameterSetCountOut, | 63 | size_t *parameterSetCountOut, |
| 64 | int *NALUnitHeaderLengthOut); | 64 | int *NALUnitHeaderLengthOut); |
| 65 | 65 | ||
| 66 | //These symbols may not be present | 66 | /* |
| 67 | * Keys that are not present in all versions of VideoToolbox need to be | ||
| 68 | * accessed from compat_keys, or it will cause compiler errors when compiling | ||
| 69 | * for older OS versions. | ||
| 70 | */ | ||
| 67 | static struct{ | 71 | static struct{ |
| 68 | CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020; | 72 | CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020; |
| 69 | CFStringRef kCVImageBufferTransferFunction_ITU_R_2020; | 73 | CFStringRef kCVImageBufferTransferFunction_ITU_R_2020; |