cog: convert some params to consts in orc code

This commit is contained in:
David Schleef 2009-11-20 20:55:15 +01:00
parent 676bd995b0
commit 788e94f835
2 changed files with 9 additions and 17 deletions

View file

@ -270,8 +270,6 @@ convsuswb d1, t1
.source 1 s2 uint8_t
.param 2 p1
.param 2 p2
.param 2 p3
.param 2 p4
.temp 2 t1
.temp 2 t2
.temp 2 t3
@ -284,8 +282,8 @@ convubw t2, s2
subw t2, t2, 128
mullw t4, t2, p2
addw t3, t3, t4
addw t3, t3, p3
shrsw t3, t3, p4
addw t3, t3, 128
shrsw t3, t3, 8
addw t3, t3, t1
addw t3, t3, t2
convsuswb d1, t3
@ -297,8 +295,6 @@ convsuswb d1, t3
.source 1 s2 uint8_t
.param 2 p1
.param 2 p2
.param 2 p3
.param 2 p4
.temp 2 t1
.temp 2 t2
.temp 2 t3
@ -311,8 +307,8 @@ convubw t2, s2
subw t2, t2, 128
mullw t4, t2, p2
addw t3, t3, t4
addw t3, t3, p3
shrsw t3, t3, p4
addw t3, t3, 128
shrsw t3, t3, 8
addw t3, t3, t1
addw t3, t3, t2
addw t3, t3, t2
@ -352,8 +348,6 @@ convsuswb d1, t1
.param 2 p1
.param 2 p2
.param 2 p3
.param 2 p4
.param 2 p5
.temp 2 t1
.temp 2 t2
.temp 2 t3
@ -370,8 +364,8 @@ convubw t2, s3
subw t2, t2, 128
mullw t2, t2, p3
addw t3, t3, t2
addw t3, t3, p4
shrsw t3, t3, p5
addw t3, t3, 128
shrsw t3, t3, 8
addw t3, t3, t1
convsuswb d1, t3

View file

@ -1408,16 +1408,14 @@ color_matrix_YCbCr_to_RGB_8bit (CogFrame * frame, void *_dest, int component,
switch (component) {
case 0:
orc_matrix2_11_u8 (dest, src1, src3,
matrix[0], matrix[2], 128, 8, frame->width);
orc_matrix2_11_u8 (dest, src1, src3, matrix[0], matrix[2], frame->width);
break;
case 1:
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;
case 2:
orc_matrix2_12_u8 (dest, src1, src2,
matrix[8], matrix[9], 128, 8, frame->width);
orc_matrix2_12_u8 (dest, src1, src2, matrix[8], matrix[9], frame->width);
break;
default:
break;