CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:)

Horus-iOS·2022년 7월 6일
0

https://developer.apple.com/documentation/corevideo/1456899-cvpixelbufferpoolcreatepixelbuff

Creates a new pixel buffer with some auxiliary attributes from the pool.

풀로부터 몇 가지 보조자 특성을 사용해 새로운 픽셀 버퍼를 생성합니다.

Declaration

func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(
    _ allocator: CFAllocator?,
    _ pixelBufferPool: CVPixelBufferPool,
    _ auxAttributes: CFDictionary?,
    _ pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>
) -> CVReturn

Parameters

allocator
새 픽셀 버퍼를 생성하려고 할 때 사용하기 위한 CFAllocator입니다. 이 파라미터는 아마 NULL일 것입니다.

pixelBufferPool
CVPixelBuffer 객체를 생성해야 하는 CVPixelBufferPool입니다

auxAttributes
구체적인 할당 요청을 설명하는 보조자 특성의 딕셔너리입니다. 이 파라미터는 아마 NULL일 것입니다. 가능한 키는 Pixel Buffer Pool Auxiliary Attribute Keys를 보시기 바랍니다.

Pixel Buffer Pool Auxiliary Attribute Keys
https://developer.apple.com/documentation/corevideo/cvpixelbuffer/pixel_buffer_attribute_keys

pixelBufferOut
새로 생성된 픽셀 버퍼가 위치할 CVPixelBufferRef에 대한 레퍼런스입니다.

Return Value

코어 비디오 결과 코드입니다. Core Video Constants for possible values를 보시기 바랍니다.

Core Video Constants
https://developer.apple.com/documentation/corevideo/core_video_constants

Discussion

이 함수는 풀 생성 동안 생성된 픽셀 버퍼 특성 및 auxAttributes 파라미터에서 구체화된 특성을 사용해서 새로운 CVPixelBuffer 객체를 생성합니다.

0개의 댓글