One Logo Pool Ball
CoreVideo · IOS API REFERENCE

CVProResRawMetadata.RecommendedCrop

struct · iOS 27.0+ · SDK 27.1

struct RecommendedCrop

Recommended pixels to discard in the image after raw conversion. The values may be nonintegral due to downscaling, in which case the handling of fractional parts is implementation-dependent.

Members (12)

get · iOS 27.0+

rowsOfPixelsToDiscardAtTop

TypeScript
getRowsOfPixelsToDiscardAtTop($self: CVProResRawMetadata_RecommendedCrop): SDKHandle
Swift declaration
var rowsOfPixelsToDiscardAtTop: Float32

Rows of pixels to discard from the top of the image.

set · iOS 27.0+

rowsOfPixelsToDiscardAtTop

TypeScript
setRowsOfPixelsToDiscardAtTop($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): void
Swift declaration
var rowsOfPixelsToDiscardAtTop: Float32

Rows of pixels to discard from the top of the image.

get · iOS 27.0+

pixelsToDiscardAtEndOfEachRow

TypeScript
getPixelsToDiscardAtEndOfEachRow($self: CVProResRawMetadata_RecommendedCrop): SDKHandle
Swift declaration
var pixelsToDiscardAtEndOfEachRow: Float32

Pixels to discard from the end (right) of each row of the image.

set · iOS 27.0+

pixelsToDiscardAtEndOfEachRow

TypeScript
setPixelsToDiscardAtEndOfEachRow($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): void
Swift declaration
var pixelsToDiscardAtEndOfEachRow: Float32

Pixels to discard from the end (right) of each row of the image.

get · iOS 27.0+

rowsOfPixelsToDiscardAtBottom

TypeScript
getRowsOfPixelsToDiscardAtBottom($self: CVProResRawMetadata_RecommendedCrop): SDKHandle
Swift declaration
var rowsOfPixelsToDiscardAtBottom: Float32

Rows of pixels to discard from the bottom of the image.

set · iOS 27.0+

rowsOfPixelsToDiscardAtBottom

TypeScript
setRowsOfPixelsToDiscardAtBottom($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): void
Swift declaration
var rowsOfPixelsToDiscardAtBottom: Float32

Rows of pixels to discard from the bottom of the image.

init · iOS 27.0+

init

TypeScript
initPixelsToDiscardAtStartOfEachRowPixelsToDiscardAtEndOfEachRowRowsOfPixelsToDiscardAtTopRowsOfPixelsToDiscardAtBottom(pixelsToDiscardAtStartOfEachRow: SDKHandle, pixelsToDiscardAtEndOfEachRow: SDKHandle, rowsOfPixelsToDiscardAtTop: SDKHandle, rowsOfPixelsToDiscardAtBottom: SDKHandle): CVProResRawMetadata_RecommendedCrop
Swift declaration
init(pixelsToDiscardAtStartOfEachRow: Float32, pixelsToDiscardAtEndOfEachRow: Float32, rowsOfPixelsToDiscardAtTop: Float32, rowsOfPixelsToDiscardAtBottom: Float32)
get · iOS 27.0+

pixelsToDiscardAtStartOfEachRow

TypeScript
getPixelsToDiscardAtStartOfEachRow($self: CVProResRawMetadata_RecommendedCrop): SDKHandle
Swift declaration
var pixelsToDiscardAtStartOfEachRow: Float32

Pixels to discard from the start (left) of each row of the image.

set · iOS 27.0+

pixelsToDiscardAtStartOfEachRow

TypeScript
setPixelsToDiscardAtStartOfEachRow($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): void
Swift declaration
var pixelsToDiscardAtStartOfEachRow: Float32

Pixels to discard from the start (left) of each row of the image.

get · iOS 27.0+

zero

TypeScript
get zero(): CVProResRawMetadata_RecommendedCrop
Swift declaration
static let zero: CVProResRawMetadata.RecommendedCrop
get · iOS 27.0+

rawValue

TypeScript
getRawValue($self: CVProResRawMetadata_RecommendedCrop): ArrayBuffer
Swift declaration
var rawValue: Data { get }

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

init · iOS 27.0+

init

TypeScript
initRawValue(rawValue: ArrayBuffer): (CVProResRawMetadata_RecommendedCrop) | null
Swift declaration
init?(rawValue: Data)

Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreVideo types →