Skip to content

Commit

Permalink
Extend the VideoColourSpace matrix to 4x4.
Browse files Browse the repository at this point in the history
This allows it to be used directly to update a GLSL mat4 data type and
ensures a simple conversion to QMatrix4x4 when Qt 4.6 becomes the
minimum Qt requirement.
  • Loading branch information
Mark Kendall committed Dec 18, 2010
1 parent 26cb1f7 commit af97999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/videocolourspace.cpp
Expand Up @@ -13,6 +13,7 @@ Matrix::Matrix(float m11, float m12, float m13, float m14,
m[0][0] = m11; m[0][1] = m12; m[0][2] = m13; m[0][3] = m14;
m[1][0] = m21; m[1][1] = m22; m[1][2] = m23; m[1][3] = m24;
m[2][0] = m31; m[2][1] = m32; m[2][2] = m33; m[2][3] = m34;
m[3][0] = m[3][1] = m[3][2] = m[3][3] = 1.0f;
}

Matrix::Matrix()
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videocolourspace.h
Expand Up @@ -18,7 +18,7 @@ class Matrix
Matrix & operator*=(const Matrix &r);
void product(int row, const Matrix &r);
void debug(void);
float m[3][4];
float m[4][4];
};

typedef enum VideoCStd
Expand Down

0 comments on commit af97999

Please sign in to comment.