Skip to content

Commit

Permalink
Rename keyFrameReordering -> allowFrameReordering
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 17, 2022
1 parent 305afc1 commit 54f2f41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/Codec/VideoCodec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class VideoCodec {
case maxKeyFrameIntervalDuration
/// Specifies the scalingMode.
case scalingMode
case keyFrameReordering
case allowFrameReordering

public var keyPath: AnyKeyPath {
switch self {
Expand All @@ -79,8 +79,8 @@ public class VideoCodec {
return \VideoCodec.scalingMode
case .profileLevel:
return \VideoCodec.profileLevel
case .keyFrameReordering:
return \VideoCodec.keyFrameReordering
case .allowFrameReordering:
return \VideoCodec.allowFrameReordering
}
}
}
Expand Down Expand Up @@ -168,9 +168,9 @@ public class VideoCodec {
invalidateSession = true
}
}
var keyFrameReordering: Bool? = false {
var allowFrameReordering: Bool? = false {
didSet {
guard keyFrameReordering != oldValue else {
guard allowFrameReordering != oldValue else {
return
}
invalidateSession = true
Expand Down Expand Up @@ -220,7 +220,7 @@ public class VideoCodec {
kVTCompressionPropertyKey_AverageBitRate: Int(bitrate) as NSObject,
kVTCompressionPropertyKey_ExpectedFrameRate: NSNumber(value: expectedFPS),
kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration: NSNumber(value: maxKeyFrameIntervalDuration),
kVTCompressionPropertyKey_AllowFrameReordering: (keyFrameReordering ?? !isBaseline) as NSObject,
kVTCompressionPropertyKey_AllowFrameReordering: (allowFrameReordering ?? !isBaseline) as NSObject,
kVTCompressionPropertyKey_PixelTransferProperties: [
"ScalingMode": scalingMode.rawValue
] as NSObject
Expand Down

0 comments on commit 54f2f41

Please sign in to comment.