| 
									
										
										
										
											2012-05-30 12:22:22 +02:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  |  * This file is part of PHP-FFmpeg. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * (c) Alchemy <info@alchemy.fr> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * For the full copyright and license information, please view the LICENSE | 
					
						
							|  |  |  |  * file that was distributed with this source code. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace FFMpeg\Format\Video; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use FFMpeg\Format\Video as BaseVideo; | 
					
						
							| 
									
										
										
										
											2012-05-30 15:06:53 +02:00
										 |  |  | use FFMpeg\Format\Dimension; | 
					
						
							| 
									
										
										
										
											2012-05-30 12:22:22 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * The resizable video interface | 
					
						
							| 
									
										
										
										
											2012-05-30 12:26:06 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2012-05-30 12:22:22 +02:00
										 |  |  |  * This interface provides methods for video resizing. | 
					
						
							| 
									
										
										
										
											2012-05-30 12:26:06 +02:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2012-05-30 12:22:22 +02:00
										 |  |  |  * @author Romain Neutron imprec@gmail.com | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2012-05-30 15:06:53 +02:00
										 |  |  | interface Resizable extends BaseVideo | 
					
						
							| 
									
										
										
										
											2012-05-30 12:22:22 +02:00
										 |  |  | { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Returns the computed dimensions for the resize, after operation. | 
					
						
							|  |  |  |      * This method return the actual dimensions that FFmpeg will use. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param  integer $originalWidth | 
					
						
							|  |  |  |      * @param  integer $originalHeight | 
					
						
							| 
									
										
										
										
											2012-05-30 15:06:53 +02:00
										 |  |  |      * @return Dimension  A dimension | 
					
						
							| 
									
										
										
										
											2012-05-30 12:22:22 +02:00
										 |  |  |      */ | 
					
						
							|  |  |  |     public function getComputedDimensions($originalWidth, $originalHeight); | 
					
						
							|  |  |  | } |