Mercurial > judyates
comparison e2gallerypro/e2upload/Backend/Assets/getid3/module.graphic.pcd.php @ 3:3f6b44aa6b35 judyates
[svn r4] added ability to buy stuff, from a Prints page, but it doesn't work well with the css, and it also has not been fitted into the perl make system.
author | rlm |
---|---|
date | Mon, 22 Feb 2010 08:02:39 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:670229c4eb4b | 3:3f6b44aa6b35 |
---|---|
1 <?php | |
2 // +----------------------------------------------------------------------+ | |
3 // | PHP version 5 | | |
4 // +----------------------------------------------------------------------+ | |
5 // | Copyright (c) 2002-2006 James Heinrich, Allan Hansen | | |
6 // +----------------------------------------------------------------------+ | |
7 // | This source file is subject to version 2 of the GPL license, | | |
8 // | that is bundled with this package in the file license.txt and is | | |
9 // | available through the world-wide-web at the following url: | | |
10 // | http://www.gnu.org/copyleft/gpl.html | | |
11 // +----------------------------------------------------------------------+ | |
12 // | getID3() - http://getid3.sourceforge.net or http://www.getid3.org | | |
13 // +----------------------------------------------------------------------+ | |
14 // | Authors: James Heinrich <infoØgetid3*org> | | |
15 // | Allan Hansen <ahØartemis*dk> | | |
16 // +----------------------------------------------------------------------+ | |
17 // | module.graphic.pcd.php | | |
18 // | Module for analyzing PhotoCD (PCD) Image files. | | |
19 // | dependencies: NONE | | |
20 // +----------------------------------------------------------------------+ | |
21 // | |
22 // $Id: module.graphic.pcd.php,v 1.2 2006/11/02 10:48:02 ah Exp $ | |
23 | |
24 | |
25 | |
26 class getid3_pcd extends getid3_handler | |
27 { | |
28 | |
29 | |
30 public function Analyze() { | |
31 | |
32 $getid3 = $this->getid3; | |
33 | |
34 $getid3->info['fileformat'] = 'pcd'; | |
35 $getid3->info['video']['dataformat'] = 'pcd'; | |
36 $getid3->info['video']['lossless'] = false; | |
37 | |
38 fseek($getid3->fp, $getid3->info['avdataoffset'] + 72, SEEK_SET); | |
39 | |
40 $pcd_flags = fread($getid3->fp, 1); | |
41 $pcd_is_vertical = ((ord($pcd_flags) & 0x01) ? true : false); | |
42 | |
43 if ($pcd_is_vertical) { | |
44 $getid3->info['video']['resolution_x'] = 3072; | |
45 $getid3->info['video']['resolution_y'] = 2048; | |
46 } else { | |
47 $getid3->info['video']['resolution_x'] = 2048; | |
48 $getid3->info['video']['resolution_y'] = 3072; | |
49 } | |
50 | |
51 } | |
52 | |
53 | |
54 } | |
55 | |
56 ?> |