fmk             Thu Jul 24 08:22:48 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/ming   ming.c 
  Log:
  Add a couple of methods to SWFVideoStream
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.8.2.6&r2=1.79.2.4.2.8.2.7&diff_format=u
Index: php-src/ext/ming/ming.c
diff -u php-src/ext/ming/ming.c:1.79.2.4.2.8.2.6 
php-src/ext/ming/ming.c:1.79.2.4.2.8.2.7
--- php-src/ext/ming/ming.c:1.79.2.4.2.8.2.6    Thu Jul 24 08:17:54 2008
+++ php-src/ext/ming/ming.c     Thu Jul 24 08:22:47 2008
@@ -19,7 +19,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: ming.c,v 1.79.2.4.2.8.2.6 2008/07/24 08:17:54 tony2001 Exp $ */
+/* $Id: ming.c,v 1.79.2.4.2.8.2.7 2008/07/24 08:22:47 fmk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -3519,6 +3519,48 @@
 }
 /* }}} */
 
+/* {{{ proto swfvideostream::nextFrame */
+PHP_METHOD(swfvideostream, nextFrame) 
+{
+       if (ZEND_NUM_ARGS() != 0) {
+               WRONG_PARAM_COUNT;
+       }
+
+       RETURN_LONG(SWFVideoStream_nextFrame(getVideoStream(getThis() 
TSRMLS_CC)));
+}
+/* }}} */
+       
+/* {{{ proto swfvideostream::setFrameMode */   
+PHP_METHOD(swfvideostream, setFrameMode)
+{
+       long mode;
+       SWFVideoStream stream = getVideoStream(getThis() TSRMLS_CC);
+       if(!stream)
+                php_error(E_ERROR, "getVideoStream returned NULL");
+
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &mode) == 
FAILURE) {
+               return;
+       }
+
+       RETURN_LONG(SWFVideoStream_setFrameMode(stream, mode));
+}
+/* }}} */
+
+/* {{{ proto swfvideostream::seek(frame, whence) */    
+PHP_METHOD(swfvideostream, seek)
+{
+       long frame, whence;
+       SWFVideoStream stream = getVideoStream(getThis() TSRMLS_CC);
+       if(!stream)
+                php_error(E_ERROR, "getVideoStream returned NULL");
+
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &frame, 
&whence) == FAILURE) {
+               return;
+       }
+
+       RETURN_LONG(SWFVideoStream_seek(stream, frame, whence));
+}
+/* }}} */
                
                
 static zend_function_entry swfvideostream_functions[] = {
@@ -3526,6 +3568,9 @@
        PHP_ME(swfvideostream, setdimension, NULL, 0)
        PHP_ME(swfvideostream, getnumframes, NULL, 0)
        PHP_ME(swfvideostream, hasaudio, NULL, 0)
+       PHP_ME(swfvideostream, setFrameMode, NULL, 0)
+       PHP_ME(swfvideostream, nextFrame, NULL, 0)
+       PHP_ME(swfvideostream, seek, NULL, 0)
        { NULL, NULL, NULL }
 };
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to