r730: Added italian translation
[cinelerra_cv/mob.git] / quicktime / matrix.c
blob90c01d55c0bdd6c22e36cb1737b534df81999874
1 #include "funcprotos.h"
2 #include "quicktime.h"
7 void quicktime_matrix_init(quicktime_matrix_t *matrix)
9 int i;
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)
21 int i = 0;
22 for(i = 0; i < 9; i++)
24 matrix->values[i] = quicktime_read_fixed32(file);
28 void quicktime_matrix_dump(quicktime_matrix_t *matrix)
30 int i;
31 printf(" matrix");
32 for(i = 0; i < 9; i++) printf(" %f", matrix->values[i]);
33 printf("\n");
36 void quicktime_write_matrix(quicktime_t *file, quicktime_matrix_t *matrix)
38 int i;
39 for(i = 0; i < 9; i++)
41 quicktime_write_fixed32(file, matrix->values[i]);