Skip to content

Commit

Permalink
fix(avrender): 取消判断 AVCOL_SPC_BT2020_CL,和开始处保持对称
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohappy committed Feb 25, 2025
1 parent 411bc0a commit 6403fef
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/avrender/image/colorTransform/generateSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,9 @@ export default function generateSteps(src: ColorSpace, dst: ColorSpace, options:
if (dstMatrixIsIdentityOrYcgco) {
steps.push(dstRangeAdjustStep)
}
if (dst.getMatrixId() === AVColorSpace.AVCOL_SPC_BT2020_CL) {
// not to do
}
else {
steps.push(colorTransformMatrix(dst.getTransferMatrix(options.bitDepth), options))
}

steps.push(colorTransformMatrix(dst.getTransferMatrix(options.bitDepth), options))

if (!dstMatrixIsIdentityOrYcgco) {
steps.push(dstRangeAdjustStep)
}
Expand Down

0 comments on commit 6403fef

Please sign in to comment.