double rotation; //angle in degrees to be rotated clockwise
double scale[2]; // scale factor; sx = scale[0] , sy = scale[1]
- double translate[2];// amount to translate; tx = translate[0] , ty = translate[1]
-
int32_t *matrix = p_box->data.p_tkhd->i_matrix;
- translate[0] = conv_fx(matrix[6]);
- translate[1] = conv_fx(matrix[7]);
-
scale[0] = sqrt(conv_fx(matrix[0]) * conv_fx(matrix[0]) +
conv_fx(matrix[3]) * conv_fx(matrix[3]));
scale[1] = sqrt(conv_fx(matrix[1]) * conv_fx(matrix[1]) +
p_box->data.p_tkhd->f_rotation = rotation;
#ifdef MP4_VERBOSE
+ double translate[2];// amount to translate; tx = translate[0] , ty = translate[1]
+
+ translate[0] = conv_fx(matrix[6]);
+ translate[1] = conv_fx(matrix[7]);
+
MP4_ConvertDate2Str( s_creation_time, p_box->data.p_mvhd->i_creation_time, false );
MP4_ConvertDate2Str( s_modification_time, p_box->data.p_mvhd->i_modification_time, false );
MP4_ConvertDate2Str( s_duration, p_box->data.p_mvhd->i_duration, true );