public void writeMatColByCol(Matrix[] pictureMat, int gopSize, int frameSize, boolean codeCbCr) {
		int frameSizeC = frameSize >> 2;

		for (int frameNo = 0; frameNo < gopSize; frameNo++) {
			writePlaneColByCol(pictureMat[0].getArray(), oneLineY, frameNo * frameSize, frameSize); 
        	if (codeCbCr) {
        		writePlaneColByCol(pictureMat[1].getArray(), oneLineCbCr, frameNo * frameSizeC, frameSizeC);  
        		writePlaneColByCol(pictureMat[2].getArray(), oneLineCbCr, frameNo * frameSizeC, frameSizeC);  	
        	}
        	else {        	
        		writePlaneConstant(128, oneLineCbCr, frameSizeC);  
        		writePlaneConstant(128, oneLineCbCr, frameSizeC);
        	}
		}          
	}