1 #include "funcprotos.h"
7 void quicktime_matrix_init(quicktime_matrix_t
*matrix
)
10 for(i
= 0; i
< 9; i
++) matrix
->values
[i
] = 0;
11 matrix
->values
[0] = matrix
->values
[4] = 1;
12 matrix
->values
[8] = 16384;
15 void quicktime_matrix_delete(quicktime_matrix_t
*matrix
)
19 void quicktime_read_matrix(quicktime_t
*file
, quicktime_matrix_t
*matrix
)
22 for(i
= 0; i
< 9; i
++)
24 matrix
->values
[i
] = quicktime_read_fixed32(file
);
28 void quicktime_matrix_dump(quicktime_matrix_t
*matrix
)
32 for(i
= 0; i
< 9; i
++) printf(" %f", matrix
->values
[i
]);
36 void quicktime_write_matrix(quicktime_t
*file
, quicktime_matrix_t
*matrix
)
39 for(i
= 0; i
< 9; i
++)
41 quicktime_write_fixed32(file
, matrix
->values
[i
]);