diff --git a/lib/classes/databox/subdef/mediatype/audio.class.php b/lib/classes/databox/subdef/mediatype/audio.class.php deleted file mode 100644 index 006d9a0dd9..0000000000 --- a/lib/classes/databox/subdef/mediatype/audio.class.php +++ /dev/null @@ -1,42 +0,0 @@ -size = $size; - $this->delay = $delay; - - return $this; - } - - /** - * - * @param databox_subdefAbstract $subdef - * @return array - */ - public function get_available_options(databox_subdefAbstract $subdef) - { - $options = array( - 'size' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 20, - 'max' => 500, - 'value' => $this->size, - 'default' => 200 - ), - 'delay' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 1, - 'max' => 3, - 'value' => $this->delay, - 'default' => 1 - ) - ); - - return $options; - } - -} diff --git a/lib/classes/databox/subdef/mediatype/image.class.php b/lib/classes/databox/subdef/mediatype/image.class.php deleted file mode 100644 index a3076be3d3..0000000000 --- a/lib/classes/databox/subdef/mediatype/image.class.php +++ /dev/null @@ -1,104 +0,0 @@ -size = $size; - $this->resolution = $resolution; - $this->strip = $strip; - $this->quality = $quality; - - return $this; - } - - /** - * - * @param databox_subdefAbstract $subdef - * @return array - */ - public function get_available_options(databox_subdefAbstract $subdef) - { - - $options = array( - 'size' => array( - 'type' => 'range', - 'step' => 1, - 'min' => ($subdef->get_class() == 'thumbnail' ? 20 : 150), - 'max' => ($subdef->get_class() == 'thumbnail' ? 400 : 3000), - 'default' => ($subdef->get_class() == 'thumbnail' ? 200 : 800), - 'value' => $this->size - ), - 'resolution' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 50, - 'max' => 300, - 'default' => 72, - 'value' => $this->resolution - ), - 'strip' => array( - 'type' => 'boolean', - 'default' => ($subdef->get_class() == 'thumbnail'), - 'value' => $this->strip - ), - 'quality' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 0, - 'max' => 100, - 'default' => 75, - 'value' => $this->quality - ) - ); - - return $options; - } - -} diff --git a/lib/classes/databox/subdef/mediatype/video.class.php b/lib/classes/databox/subdef/mediatype/video.class.php deleted file mode 100644 index 3f5a7a4cc2..0000000000 --- a/lib/classes/databox/subdef/mediatype/video.class.php +++ /dev/null @@ -1,132 +0,0 @@ -size = $size; - $this->fps = $fps; - $this->threads = $threads; - $this->bitrate = $bitrate; - $this->a_codec = $acodec; - $this->v_codec = $vcodec; - - return $this; - } - - /** - * - * @param databox_subdefAbstract $subdef - * @return array - */ - public function get_available_options(databox_subdefAbstract $subdef) - { - $options = array( - 'size' => array( - 'type' => 'range', - 'step' => 16, - 'min' => 100, - 'max' => 1000, - 'value' => $this->size, - 'default' => 600 - ), - 'fps' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 1, - 'max' => 200, - 'value' => $this->fps, - 'default' => 20 - ), - 'threads' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 1, - 'max' => 16, - 'value' => $this->threads, - 'default' => 1 - ), - 'bitrate' => array( - 'type' => 'range', - 'step' => 1, - 'min' => 100, - 'max' => 4000, - 'value' => $this->bitrate, - 'default' => '800' - ), - 'a_codec' => array( - 'type' => 'enum', - 'values' => array('faac', 'mp3'), - 'value' => $this->a_codec, - 'default' => 'faac' - ), - 'v_codec' => array( - 'type' => 'enum', - 'values' => array('libx264', 'flv'), - 'value' => $this->v_codec, - 'default' => 'libx264' - ) - ); - - return $options; - } - -} diff --git a/lib/classes/databox/subdef/mediatypeAbstract.class.php b/lib/classes/databox/subdef/mediatypeAbstract.class.php deleted file mode 100644 index a236ea6462..0000000000 --- a/lib/classes/databox/subdef/mediatypeAbstract.class.php +++ /dev/null @@ -1,38 +0,0 @@ -get_available_options($subdef); - foreach ($full_options as $opt_name => $values) - { - $options[$opt_name] = $values['value']; - } - - return $options; - } - -} diff --git a/lib/classes/databox/subdef/mediatypeInterface.class.php b/lib/classes/databox/subdef/mediatypeInterface.class.php deleted file mode 100644 index 3269e3ebb4..0000000000 --- a/lib/classes/databox/subdef/mediatypeInterface.class.php +++ /dev/null @@ -1,23 +0,0 @@ -