[xiph-commits] r17139 - trunk/rhea/src/com/meviatronic/zeus/pollux

mike at svn.xiph.org mike at svn.xiph.org
Sun Apr 11 09:34:17 PDT 2010


Author: mike
Date: 2010-04-11 09:34:17 -0700 (Sun, 11 Apr 2010)
New Revision: 17139

Modified:
   trunk/rhea/src/com/meviatronic/zeus/pollux/Output.java
Log:


Modified: trunk/rhea/src/com/meviatronic/zeus/pollux/Output.java
===================================================================
--- trunk/rhea/src/com/meviatronic/zeus/pollux/Output.java	2010-04-10 22:13:56 UTC (rev 17138)
+++ trunk/rhea/src/com/meviatronic/zeus/pollux/Output.java	2010-04-11 16:34:17 UTC (rev 17139)
@@ -375,28 +375,28 @@
   	}
 	
 	public final ImageProducer synthesis(Packet op) throws IOException, EndOfPacketException {
-    	info.loadPacket(op.packetBase, op.packet, op.bytes);
+		info.loadPacket(op.packetBase, op.packet, op.bytes);
 		
 		synchronized(this) {
 			decodeImage();
 		}
 		
 		if(op.granulepos > -1){
-        	granulepos = op.granulepos;
-	  	} else {
-		  	if (granulepos == -1){
-          		granulepos = 0;
-        	} else {
+			granulepos = op.granulepos;
+		} else {
+			if (granulepos == -1){
+				granulepos = 0;
+			} else {
 				if (fType == INTRA_FRAME){
-            		long frames = granulepos & VideoReader.BITMASK[info.keyFrameNumberGranuleShift];
+					long frames = granulepos & VideoReader.BITMASK[info.keyFrameNumberGranuleShift];
 					
 					granulepos >>>= info.keyFrameNumberGranuleShift;
-            		granulepos += frames + 1;
-            		granulepos <<= info.keyFrameNumberGranuleShift;
-          		} else {
-			  		granulepos++;
-		  		}
-        	}
+					granulepos += frames + 1;
+					granulepos <<= info.keyFrameNumberGranuleShift;
+				} else {
+					granulepos++;
+				}
+			}
 		}
 		CropImageFilter cropFilter = new CropImageFilter(pictureRegionX, pictureRegionY, pictureRegionW, pictureRegionH);
 		return new FilteredImageSource(source, cropFilter);
@@ -405,9 +405,9 @@
 	public final double granuleTime(long granulePosition) {
 		if(granulePosition >= 0) {
 			return getFrameCount(granulePosition, info.keyFrameNumberGranuleShift, 0) / info.frameRate;
-    	}
-    	return -1;
-  	}
+		}
+		return -1;
+	}
 	
 	private static int getFrameCount (long granulePosition, int keyFrameNumberGranuleShift, int versionRevisionNumber) {
 		if (versionRevisionNumber > 0) {



More information about the commits mailing list