aboutsummaryrefslogtreecommitdiff
path: root/libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-24 07:12:23 +0530
committerHeshan <heshan@heidisoft.com>2011-03-24 07:12:23 +0530
commit150779efb20a7959eae744f58b7470bf4a000ebe (patch)
tree43a9f6b55a26c7c53808470af748515efa582ea6 /libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php
parenta43b5f2f08002e47bc575f5a4a4618ebebc3d9c6 (diff)
downloadvideo-150779efb20a7959eae744f58b7470bf4a000ebe.tar.gz
video-150779efb20a7959eae744f58b7470bf4a000ebe.tar.bz2
Remove all unwanted files from the libs
Diffstat (limited to 'libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php')
-rw-r--r--libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php b/libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php
deleted file mode 100644
index 1223002..0000000
--- a/libraries/phpvideotoolkit/adapters/ffmpeg-php/gifencoder/Example.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-include "GIFEncoder.class.php";
-/*
- Build a frames array from sources...
-*/
-if ( $dh = opendir ( "frames/" ) ) {
- while ( false !== ( $dat = readdir ( $dh ) ) ) {
- if ( $dat != "." && $dat != ".." ) {
- $frames [ ] = "frames/$dat";
- $framed [ ] = 5;
- }
- }
- closedir ( $dh );
-}
-/*
- GIFEncoder constructor:
- =======================
-
- image_stream = new GIFEncoder (
- URL or Binary data 'Sources'
- int 'Delay times'
- int 'Animation loops'
- int 'Disposal'
- int 'Transparent red, green, blue colors'
- int 'Source type'
- );
-*/
-$gif = new GIFEncoder (
- $frames,
- $framed,
- 0,
- 2,
- 0, 0, 0,
- 0,
- "url"
- );
-/*
- Possibles outputs:
- ==================
-
- Output as GIF for browsers :
- - Header ( 'Content-type:image/gif' );
- Output as GIF for browsers with filename:
- - Header ( 'Content-disposition:Attachment;filename=myanimation.gif');
- Output as file to store into a specified file:
- - FWrite ( FOpen ( "myanimation.gif", "wb" ), $gif->GetAnimation ( ) );
-*/
-Header ( 'Content-type:image/gif' );
-echo $gif->GetAnimation ( );
-?>