HEX
Server: Apache
System: Linux server1.ariadata.co 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: nepi (1051)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,show_source,popen,proc_open
Upload Files
File: /home/nepi/www/vendor/char0n/ffmpeg-php/src/Adapters/FFMpegFrame.php
<?php

namespace Char0n\FFMpegPHP\Adapters;

use Char0n\FFMpegPHP\Frame;

/**
 * Serves as a compatibility adapter for old ffmpeg-php extension.
 */
class FFMpegFrame
{
    /**
     * @var Frame
     */
    protected $adaptee;

    public function __construct($gdImage, $pts = 0.0)
    {
        $this->adaptee = new Frame($gdImage, $pts);
    }

    public function getWidth()
    {
        return $this->adaptee->getWidth();
    }

    public function getHeight()
    {
        return $this->adaptee->getHeight();
    }

    public function getPTS()
    {
        return $this->adaptee->getPTS();
    }

    public function getPresentationTimestamp()
    {
        return $this->adaptee->getPresentationTimestamp();
    }

    public function resize($width, $height, $cropTop = 0, $cropBottom = 0, $cropLeft = 0, $cropRight = 0)
    {
        $this->adaptee->resize($width, $height, $cropTop, $cropBottom, $cropLeft, $cropRight);
    }

    public function crop($cropTop, $cropBottom = 0, $cropLeft = 0, $cropRight = 0)
    {
        $this->adaptee->crop($cropTop, $cropBottom, $cropLeft, $cropRight);
    }

    public function toGDImage()
    {
        return $this->adaptee->toGDImage();
    }

    public function __clone()
    {
        $this->adaptee = clone $this->adaptee;
    }

    public function __destruct()
    {
        $this->adaptee = null;
    }
}