mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
cog: convert some params to consts in orc code
This commit is contained in:
parent
676bd995b0
commit
788e94f835
2 changed files with 9 additions and 17 deletions
|
@ -270,8 +270,6 @@ convsuswb d1, t1
|
||||||
.source 1 s2 uint8_t
|
.source 1 s2 uint8_t
|
||||||
.param 2 p1
|
.param 2 p1
|
||||||
.param 2 p2
|
.param 2 p2
|
||||||
.param 2 p3
|
|
||||||
.param 2 p4
|
|
||||||
.temp 2 t1
|
.temp 2 t1
|
||||||
.temp 2 t2
|
.temp 2 t2
|
||||||
.temp 2 t3
|
.temp 2 t3
|
||||||
|
@ -284,8 +282,8 @@ convubw t2, s2
|
||||||
subw t2, t2, 128
|
subw t2, t2, 128
|
||||||
mullw t4, t2, p2
|
mullw t4, t2, p2
|
||||||
addw t3, t3, t4
|
addw t3, t3, t4
|
||||||
addw t3, t3, p3
|
addw t3, t3, 128
|
||||||
shrsw t3, t3, p4
|
shrsw t3, t3, 8
|
||||||
addw t3, t3, t1
|
addw t3, t3, t1
|
||||||
addw t3, t3, t2
|
addw t3, t3, t2
|
||||||
convsuswb d1, t3
|
convsuswb d1, t3
|
||||||
|
@ -297,8 +295,6 @@ convsuswb d1, t3
|
||||||
.source 1 s2 uint8_t
|
.source 1 s2 uint8_t
|
||||||
.param 2 p1
|
.param 2 p1
|
||||||
.param 2 p2
|
.param 2 p2
|
||||||
.param 2 p3
|
|
||||||
.param 2 p4
|
|
||||||
.temp 2 t1
|
.temp 2 t1
|
||||||
.temp 2 t2
|
.temp 2 t2
|
||||||
.temp 2 t3
|
.temp 2 t3
|
||||||
|
@ -311,8 +307,8 @@ convubw t2, s2
|
||||||
subw t2, t2, 128
|
subw t2, t2, 128
|
||||||
mullw t4, t2, p2
|
mullw t4, t2, p2
|
||||||
addw t3, t3, t4
|
addw t3, t3, t4
|
||||||
addw t3, t3, p3
|
addw t3, t3, 128
|
||||||
shrsw t3, t3, p4
|
shrsw t3, t3, 8
|
||||||
addw t3, t3, t1
|
addw t3, t3, t1
|
||||||
addw t3, t3, t2
|
addw t3, t3, t2
|
||||||
addw t3, t3, t2
|
addw t3, t3, t2
|
||||||
|
@ -352,8 +348,6 @@ convsuswb d1, t1
|
||||||
.param 2 p1
|
.param 2 p1
|
||||||
.param 2 p2
|
.param 2 p2
|
||||||
.param 2 p3
|
.param 2 p3
|
||||||
.param 2 p4
|
|
||||||
.param 2 p5
|
|
||||||
.temp 2 t1
|
.temp 2 t1
|
||||||
.temp 2 t2
|
.temp 2 t2
|
||||||
.temp 2 t3
|
.temp 2 t3
|
||||||
|
@ -370,8 +364,8 @@ convubw t2, s3
|
||||||
subw t2, t2, 128
|
subw t2, t2, 128
|
||||||
mullw t2, t2, p3
|
mullw t2, t2, p3
|
||||||
addw t3, t3, t2
|
addw t3, t3, t2
|
||||||
addw t3, t3, p4
|
addw t3, t3, 128
|
||||||
shrsw t3, t3, p5
|
shrsw t3, t3, 8
|
||||||
addw t3, t3, t1
|
addw t3, t3, t1
|
||||||
convsuswb d1, t3
|
convsuswb d1, t3
|
||||||
|
|
||||||
|
|
|
@ -1408,16 +1408,14 @@ color_matrix_YCbCr_to_RGB_8bit (CogFrame * frame, void *_dest, int component,
|
||||||
|
|
||||||
switch (component) {
|
switch (component) {
|
||||||
case 0:
|
case 0:
|
||||||
orc_matrix2_11_u8 (dest, src1, src3,
|
orc_matrix2_11_u8 (dest, src1, src3, matrix[0], matrix[2], frame->width);
|
||||||
matrix[0], matrix[2], 128, 8, frame->width);
|
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
orc_matrix3_100_u8 (dest, src1, src2, src3,
|
orc_matrix3_100_u8 (dest, src1, src2, src3,
|
||||||
matrix[4], matrix[5], matrix[6], 128, 8, frame->width);
|
matrix[4], matrix[5], matrix[6], frame->width);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
orc_matrix2_12_u8 (dest, src1, src2,
|
orc_matrix2_12_u8 (dest, src1, src2, matrix[8], matrix[9], frame->width);
|
||||||
matrix[8], matrix[9], 128, 8, frame->width);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue