Add VideoInterface getPasses method
This commit is contained in:
		
					parent
					
						
							
								aec70d9a76
							
						
					
				
			
			
				commit
				
					
						cf97e06650
					
				
			
		
					 4 changed files with 23 additions and 2 deletions
				
			
		|  | @ -18,5 +18,10 @@ namespace FFMpeg\Format; | ||||||
|  */ |  */ | ||||||
| interface Video extends Audio | interface Video extends Audio | ||||||
| { | { | ||||||
| 
 |     /** | ||||||
|  |      * Returns the number of passes | ||||||
|  |      * | ||||||
|  |      * @return string | ||||||
|  |      */ | ||||||
|  |     public function getPasses(); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -222,4 +222,12 @@ abstract class DefaultVideo extends DefaultAudio implements Interactive, Resampl | ||||||
| 
 | 
 | ||||||
|         return $this; |         return $this; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * {@inheritDoc} | ||||||
|  |      */ | ||||||
|  |     public function getPasses() | ||||||
|  |     { | ||||||
|  |         return 1; | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -44,4 +44,12 @@ class X264 extends DefaultVideo | ||||||
|     { |     { | ||||||
|         return array('libx264'); |         return array('libx264'); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * {@inheritDoc} | ||||||
|  |      */ | ||||||
|  |     public function getPasses() | ||||||
|  |     { | ||||||
|  |         return 2; | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue