History

lavc/videotoolboxenc: better compat_keys documentation

Added documentation that describes when compat_keys should be used, and why it exists.

Rick Kern committed 3 years ago

Commit c789a231 parent 5cd30421 file · +5 −1Browse files

Unified · Split

libavcodec/videotoolboxenc.c+5−1
@@ -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 present66/*
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 */
67static struct{71static 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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t