acldvppCscMatrix

The Atlas 200/300/500 Inference Product does not support this data type.

The Atlas Training Series Product does not support this data type.

Data Format

Description

ACL_DVPP_CSC_MATRIX_BT601_WIDE = 0

CSC matrix based on the BT.601 Wide standard (default).

ACL_DVPP_CSC_MATRIX_BT601_NARROW = 1

CSC matrix based on the BT.601 Narrow standard.

ACL_DVPP_CSC_MATRIX_BT709_WIDE = 2

CSC matrix based on the BT.709 Wide standard.

ACL_DVPP_CSC_MATRIX_BT709_NARROW = 3

CSC matrix based on the BT.709 Narrow standard.

ACL_DVPP_CSC_MATRIX_BT2020_WIDE = 4

CSC matrix based on the BT.2020 Wide standard.

ACL_DVPP_CSC_MATRIX_BT2020_NARROW = 5

CSC matrix based on the BT.2020 Narrow standard.

The conversion formula of each component under the preceding CSC matrix of each standard is as follows:

# YUV-to-RGB conversion:
# | R |   | matrix_r0c0 matrix_r0c1 matrix_r0c2 |   | Y - input_bias_0 |
# | G | = | matrix_r1c0 matrix_r1c1 matrix_r1c2 | * | U - input_bias_1 |
# | B |   | matrix_r2c0 matrix_r2c1 matrix_r2c2 |   | V - input_bias_2 |
# BGR-to-YUV conversion:
# | Y |   | output_bias_0 |   | matrix_r0c0 matrix_r0c1 matrix_r0c2 |   | R |
# | U | = | output_bias_1 | + | matrix_r1c0 matrix_r1c1 matrix_r1c2 | * | G |
# | V |   | output_bias_2 |   | matrix_r2c0 matrix_r2c1 matrix_r2c2 |   | B |

The values of the CSC matrix under each standard are as follows:

Member

Description

ACL_DVPP_CSC_MATRIX_BT601_WIDE

CSC matrix based on the BT.601 Wide standard. Defaults to ACL_DVPP_CSC_MATRIX_BT601_WIDE.

The values of the CSC matrix based on this standard are as follows:

# YUV-to-RGB conversion:
# | R |   | 1.000  0.000   1.402 |   | Y - 0 |
# | G | = | 1.000 -0.344 -0.714  | * | U - 128 | 
# | B |   | 1.000  1.772   0.000 |   | V - 128 |
# RGB-to-YUV conversion:
# | Y |   |-0.5  |   |  0.299  0.587  0.114  |   | R |        
# | U | = |127.5 | + | -0.168 -0.331  0.500  | * | G | 
# | V |   |127.5 |   |  0.500 -0.419 -0.081  |   | B | 

ACL_DVPP_CSC_MATRIX_BT601_NARROW

CSC matrix based on the BT.601 Narrow standard.

The values of the CSC matrix based on this standard are as follows:

# YUV-to-RGB conversion:
# | R |   | 1.16438  0.00000   1.59602 |   | Y - 16 |
# | G | = | 1.16438 -0.39176  -0.81297 | * | U - 128 | 
# | B |   | 1.16438  2.01723   0.00000 |   | V - 128 |
# RGB-to-YUV conversion:
# | Y |   |16 |   |  0.25679  0.51564  0.10014 |   | R |        
# | U | = |128| + | -0.14491 -0.29099  0.43922 | * | G | 
# | V |   |128|   |  0.42941 -0.36779 -0.07143 |   | B | 

ACL_DVPP_CSC_MATRIX_BT709_WIDE

CSC matrix based on the BT.709 Wide standard.

The values of the CSC matrix based on this standard are as follows:

# YUV-to-RGB conversion:
# | R |   | 1.00000  0.00000   1.57480 |   | Y - 0 |
# | G | = | 1.00000 -0.18732  -0.46812 | * | U - 128 | 
# | B |   | 1.00000  1.85560   0.00000 |   | V - 128 |
# RGB-to-YUV conversion:
# | Y |   |0  |   |  0.21260  0.71520  0.07220 |   | R |        
# | U | = |128| + | -0.11457 -0.38543  0.50000 | * | G | 
# | V |   |128|   |  0.50000 -0.45415 -0.04585 |   | B | 

ACL_DVPP_CSC_MATRIX_BT709_NARROW

CSC matrix based on the BT.709 Narrow standard.

The values of the CSC matrix based on this standard are as follows:

# YUV-to-RGB conversion:
# | R |   | 1.16438  0.00000   1.79274 |   | Y - 16 |
# | G | = | 1.16438 -0.21325  -0.53291 | * | U - 128 | 
# | B |   | 1.16438  2.11240   0.00000 |   | V - 128 |
# RGB-to-YUV conversion:
# | Y |   |16 |   |  0.18259  0.62825  0.06342 |   | R |        
# | U | = |128| + | -0.09840 -0.33857  0.43922 | * | G | 
# | V |   |128|   |  0.42941 -0.39894 -0.04027 |   | B | 

ACL_DVPP_CSC_MATRIX_BT2020_WIDE

CSC matrix based on the BT.2020 Wide standard.

The values of the CSC matrix based on this standard are as follows:

# YUV-to-RGB conversion:
# | R |   | 1.00000  0.00000   1.47460 |   | Y - 0 |
# | G | = | 1.00000 -0.16455  -0.57135 | * | U - 128 | 
# | B |   | 1.00000  1.88140   0.00000 |   | V - 128 |
# RGB-to-YUV conversion:
# | Y |   |0  |   |  0.26270  0.67800  0.05930 |   | R |        
# | U | = |128| + | -0.13963 -0.36037  0.50000 | * | G | 
# | V |   |128|   |  0.50000 -0.45979 -0.04021 |   | B | 

ACL_DVPP_CSC_MATRIX_BT2020_NARROW

CSC matrix based on the BT.2020 Narrow standard.

The values of the CSC matrix based on this standard are as follows:

# YUV-to-RGB conversion:
# | R |   | 1.16438  0.00000   1.67868 |   | Y - 16 |
# | G | = | 1.16438 -0.18733  -0.65042 | * | U - 128 | 
# | B |   | 1.16438  2.14177   0.00000 |   | V - 128 |
# RGB-to-YUV conversion:
# | Y |   |16 |   |  0.22564  0.59558  0.05209 |   | R |        
# | U | = |128| + | -0.11992 -0.31656  0.43922 | * | G | 
# | V |   |128|   |  0.42941 -0.40389 -0.03533 |   | B |