scratch – Blame information for rev 115

Subversion Repositories:
Rev:
Rev Author Line No. Line
115 office 1 <?php
2  
3 /*
4 * This file is part of PHP-FFmpeg.
5 *
6 * (c) Alchemy <dev.team@alchemy.fr>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11  
12 namespace FFMpeg\Filters\Frame;
13  
14 use FFMpeg\Media\Frame;
15  
16 class FrameFilters
17 {
18 private $frame;
19  
20 public function __construct(Frame $frame)
21 {
22 $this->frame = $frame;
23 }
24  
25 /**
26 * Fixes the display ratio of the output frame.
27 *
28 * In case the sample ratio and display ratio are different, image may be
29 * anamorphozed. This filter fixes this by specifying the output size.
30 *
31 * @return FrameFilters
32 */
33 public function fixDisplayRatio()
34 {
35 $this->frame->addFilter(new DisplayRatioFixerFilter());
36  
37 return $this;
38 }
39 }