[vlc-devel] [PATCH] For MacOSX to support QTK capture device other than iSight 1/3

Jean-Baptiste Kempf jb at videolan.org
Thu Apr 21 16:50:27 CEST 2011


On Tue, Apr 19, 2011 at 10:20:51PM +0900, Katsushi Kobayashi wrote :
> diff --git a/modules/access/qtcapture.m b/modules/access/qtcapture.m
> index f6665eb..f461968 100644
> --- a/modules/access/qtcapture.m
> +++ b/modules/access/qtcapture.m
  
> +#define QTC_WIDTH 640
> +#define QTC_HEIGHT 480
Why so low?

> +            
No trailing spaces.

> -
>      CVBufferRelease(imageBuffer);
>  
> -    return currentPts;
> +	if(pixels)
> +		return currentPts;
> +	else
> +		return 0;

No tabs,

> +    encoded_size.width = QTC_WIDTH;
> +    encoded_size.height = QTC_HEIGHT;
> +    display_size.width = QTC_WIDTH;
> +    display_size.height = QTC_HEIGHT;
> +    par_size.width = QTC_WIDTH;
> +    par_size.height = QTC_HEIGHT;
Alignment would be nice here.

> +    
spaces...


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list