---
title: "CVColorPrimariesGetIntegerCodePointForString(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvcolorprimariesgetintegercodepointforstring(_:)"
---

# CVColorPrimariesGetIntegerCodePointForString(_:)

Returns the standard integer code point corresponding to the Core Video color primaries constant string that you specify.

## Declaration

```swift
func CVColorPrimariesGetIntegerCodePointForString(_ colorPrimariesString: CFString?) -> Int32
```

## Parameters

- `colorPrimariesString`: A Core Video color primaries string. See doc://com.apple.corevideo/documentation/CoreVideo/image-buffer-color-primaries-constants for possible values.

## Return Value

Return Value The code point corresponding to the color primaries string, or 2 (unknown) if the string is nil or the system doesn’t recognize it.

## See Also

### Converting between strings and integer code points

- [CVColorPrimariesGetStringForIntegerCodePoint(_:)](corevideo/cvcolorprimariesgetstringforintegercodepoint(_:).md)
- [CVTransferFunctionGetIntegerCodePointForString(_:)](corevideo/cvtransferfunctiongetintegercodepointforstring(_:).md)
- [CVTransferFunctionGetStringForIntegerCodePoint(_:)](corevideo/cvtransferfunctiongetstringforintegercodepoint(_:).md)
- [CVYCbCrMatrixGetIntegerCodePointForString(_:)](corevideo/cvycbcrmatrixgetintegercodepointforstring(_:).md)
- [CVYCbCrMatrixGetStringForIntegerCodePoint(_:)](corevideo/cvycbcrmatrixgetstringforintegercodepoint(_:).md)
