public void readPic(int width, int height, int startFrame, int framesToBeCoded, ArrayList<Picture> picList) {
		int widthC = width >> 1;
		int heightC = height >> 1;
            
        for (int framesNo = startFrame; framesNo < startFrame + framesToBeCoded; framesNo++) {
        	Picture picTemp;
        	if (startFrame == 0) {
        		picTemp = new Picture(width, height);
        		//System.out.println(framesNo+"size:"+picList.size());
        		picList.add(picTemp); 
        	} else {
        		picTemp = picList.get(framesNo % picList.size());
        		//System.out.println(framesNo+"nosizeup,size:"+picList.size());
        	}
            readPlane(picTemp.getY(), oneLineY, width, height); 
            readPlane(picTemp.getCb(), oneLineCbCr, widthC, heightC);  
            readPlane(picTemp.getCr(), oneLineCbCr, widthC, heightC);  
        }
	}