Skip to content

Instantly share code, notes, and snippets.

@rishabh-battulwar
Last active April 3, 2023 01:33
Show Gist options
  • Save rishabh-battulwar/39a5bf1cc8f06e4722d0fa28a1c8f04d to your computer and use it in GitHub Desktop.
Save rishabh-battulwar/39a5bf1cc8f06e4722d0fa28a1c8f04d to your computer and use it in GitHub Desktop.
CVPixelFormatType OSType
kCVSMPTETimeType24 = 0;
kCVSMPTETimeType25 = 1;
kCVSMPTETimeType30Drop = 2;
kCVSMPTETimeType30 = 3;
kCVSMPTETimeType2997 = 4;
kCVSMPTETimeType2997Drop = 5;
kCVSMPTETimeType60 = 6;
kCVSMPTETimeType5994 = 7;
kCVSMPTETimeValid = (1 shl 0);
kCVSMPTETimeRunning = (1 shl 1);
kCVTimeIsIndefinite = 1 shl 0;
kCVTimeStampVideoTimeValid = (1 shl 0);
kCVTimeStampHostTimeValid = (1 shl 1);
kCVTimeStampSMPTETimeValid = (1 shl 2);
kCVTimeStampVideoRefreshPeriodValid = (1 shl 3);
kCVTimeStampRateScalarValid = (1 shl 4);
kCVTimeStampTopField = (1 shl 16);
kCVTimeStampBottomField = (1 shl 17);
kCVTimeStampVideoHostTimeValid = (kCVTimeStampVideoTimeValid or
kCVTimeStampHostTimeValid);
kCVTimeStampIsInterlaced = (kCVTimeStampTopField or kCVTimeStampBottomField);
kCVReturnSuccess = 0;
kCVReturnFirst = -6660;
kCVReturnError = kCVReturnFirst;
kCVReturnInvalidArgument = -6661;
kCVReturnAllocationFailed = -6662;
kCVReturnUnsupported = -6663;
kCVReturnInvalidDisplay = -6670;
kCVReturnDisplayLinkAlreadyRunning = -6671;
kCVReturnDisplayLinkNotRunning = -6672;
kCVReturnDisplayLinkCallbacksNotSet = -6673;
kCVReturnInvalidPixelFormat = -6680;
kCVReturnInvalidSize = -6681;
kCVReturnInvalidPixelBufferAttributes = -6682;
kCVReturnPixelBufferNotOpenGLCompatible = -6683;
kCVReturnPixelBufferNotMetalCompatible = -6684;
kCVReturnWouldExceedAllocationThreshold = -6689;
kCVReturnPoolAllocationFailed = -6690;
kCVReturnInvalidPoolAttributes = -6691;
kCVReturnLast = -6699;
kCVAttachmentMode_ShouldNotPropagate = 0;
kCVAttachmentMode_ShouldPropagate = 1;
kCVPixelFormatType_1Monochrome = 1;
kCVPixelFormatType_2Indexed = 2;
kCVPixelFormatType_4Indexed = 4;
kCVPixelFormatType_8Indexed = 8;
kCVPixelFormatType_1IndexedGray_WhiteIsZero = 33;
kCVPixelFormatType_2IndexedGray_WhiteIsZero = 34;
kCVPixelFormatType_4IndexedGray_WhiteIsZero = 36;
kCVPixelFormatType_8IndexedGray_WhiteIsZero = 40;
kCVPixelFormatType_16BE555 = 16;
kCVPixelFormatType_16LE555 = 1278555445;
kCVPixelFormatType_16LE5551 = 892679473;
kCVPixelFormatType_16BE565 = 1110783541;
kCVPixelFormatType_16LE565 = 1278555701;
kCVPixelFormatType_24RGB = 24;
kCVPixelFormatType_24BGR = 842285639;
kCVPixelFormatType_32ARGB = 32;
kCVPixelFormatType_32BGRA = 1111970369;
kCVPixelFormatType_32ABGR = 1094862674;
kCVPixelFormatType_32RGBA = 1380401729;
kCVPixelFormatType_64ARGB = 1647719521;
kCVPixelFormatType_48RGB = 1647589490;
kCVPixelFormatType_32AlphaGray = 1647522401;
kCVPixelFormatType_16Gray = 1647392359;
kCVPixelFormatType_30RGB = 1378955371;
kCVPixelFormatType_422YpCbCr8 = 846624121;
kCVPixelFormatType_4444YpCbCrA8 = 1983131704;
kCVPixelFormatType_4444YpCbCrA8R = 1916022840;
kCVPixelFormatType_4444AYpCbCr8 = 2033463352;
kCVPixelFormatType_4444AYpCbCr16 = 2033463606;
kCVPixelFormatType_444YpCbCr8 = 1983066168;
kCVPixelFormatType_422YpCbCr16 = 1983000886;
kCVPixelFormatType_422YpCbCr10 = 1983000880;
kCVPixelFormatType_444YpCbCr10 = 1983131952;
kCVPixelFormatType_420YpCbCr8Planar = 2033463856;
kCVPixelFormatType_420YpCbCr8PlanarFullRange = 1714696752;
kCVPixelFormatType_422YpCbCr_4A_8BiPlanar = 1630697081;
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = 875704438;
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = 875704422;
kCVPixelFormatType_422YpCbCr8_yuvs = 2037741171;
kCVPixelFormatType_422YpCbCr8FullRange = 2037741158;
kCVPixelFormatType_OneComponent8 = 1278226488;
kCVPixelFormatType_TwoComponent8 = 843264056;
kCVPixelFormatType_OneComponent16Half = 1278226536;
kCVPixelFormatType_OneComponent32Float = 1278226534;
kCVPixelFormatType_TwoComponent16Half = 843264104;
kCVPixelFormatType_TwoComponent32Float = 843264102;
kCVPixelFormatType_64RGBAHalf = 1380411457;
kCVPixelFormatType_128RGBAFloat = 1380410945;
kCVPixelBufferLock_ReadOnly = 1;
kCVPixelBufferPoolFlushExcessBuffers = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment