Mercurial > sdl-ios-xcode
diff src/video/Xext/extensions/Xvlib.h @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
line wrap: on
line diff
--- a/src/video/Xext/extensions/Xvlib.h Mon May 29 03:53:21 2006 +0000 +++ b/src/video/Xext/extensions/Xvlib.h Mon May 29 04:04:35 2006 +0000 @@ -61,7 +61,7 @@ { int numerator; int denominator; -} SDL_NAME (XvRational); +} SDL_NAME(XvRational); typedef struct { @@ -69,7 +69,7 @@ int min_value; int max_value; char *name; -} SDL_NAME (XvAttribute); +} SDL_NAME(XvAttribute); typedef struct { @@ -77,15 +77,15 @@ char *name; unsigned long width; unsigned long height; - SDL_NAME (XvRational) rate; + SDL_NAME(XvRational) rate; unsigned long num_encodings; -} SDL_NAME (XvEncodingInfo); +} SDL_NAME(XvEncodingInfo); typedef struct { char depth; unsigned long visual_id; -} SDL_NAME (XvFormat); +} SDL_NAME(XvFormat); typedef struct { @@ -94,9 +94,9 @@ char type; char *name; unsigned long num_formats; - SDL_NAME (XvFormat) * formats; + SDL_NAME(XvFormat) * formats; unsigned long num_adaptors; -} SDL_NAME (XvAdaptorInfo); +} SDL_NAME(XvAdaptorInfo); typedef struct { @@ -108,7 +108,7 @@ unsigned long reason; /* what generated this event */ XvPortID port_id; /* what port */ Time time; /* milliseconds */ -} SDL_NAME (XvVideoNotifyEvent); +} SDL_NAME(XvVideoNotifyEvent); typedef struct { @@ -120,15 +120,15 @@ Time time; /* milliseconds */ Atom attribute; /* atom that identifies attribute */ long value; /* value of attribute */ -} SDL_NAME (XvPortNotifyEvent); +} SDL_NAME(XvPortNotifyEvent); typedef union { int type; - SDL_NAME (XvVideoNotifyEvent) xvvideo; - SDL_NAME (XvPortNotifyEvent) xvport; + SDL_NAME(XvVideoNotifyEvent) xvvideo; + SDL_NAME(XvPortNotifyEvent) xvport; long pad[24]; -} SDL_NAME (XvEvent); +} SDL_NAME(XvEvent); typedef struct { @@ -158,7 +158,7 @@ unsigned int vert_v_period; char component_order[32]; /* eg. UYVY */ int scanline_order; /* XvTopToBottom, XvBottomToTop */ -} SDL_NAME (XvImageFormatValues); +} SDL_NAME(XvImageFormatValues); typedef struct { @@ -170,280 +170,280 @@ int *offsets; /* bytes */ char *data; XPointer obdata; -} SDL_NAME (XvImage); +} SDL_NAME(XvImage); -_XFUNCPROTOBEGIN extern int SDL_NAME (XvQueryExtension) ( +_XFUNCPROTOBEGIN extern int SDL_NAME(XvQueryExtension) ( #if NeedFunctionPrototypes - Display * - /* display */ , - unsigned int * - /* p_version */ , - unsigned int * - /* p_revision */ , - unsigned int * - /* p_requestBase */ - , unsigned int * - /* p_eventBase */ - , unsigned int * /* p_errorBase */ -#endif - ); - -extern int SDL_NAME (XvQueryAdaptors) ( -#if NeedFunctionPrototypes - Display * /* display */ , - Window /* window */ , - unsigned int * /* p_nAdaptors */ , - SDL_NAME (XvAdaptorInfo) ** /* p_pAdaptors */ + Display * + /* display */ , + unsigned int * + /* p_version */ , + unsigned int * + /* p_revision */ , + unsigned int * + /* p_requestBase */ + , unsigned int * + /* p_eventBase */ + , unsigned int * /* p_errorBase */ #endif ); -extern int SDL_NAME (XvQueryEncodings) ( +extern int SDL_NAME(XvQueryAdaptors) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - unsigned int * /* p_nEncoding */ , - SDL_NAME (XvEncodingInfo) ** /* p_pEncoding */ + Display * /* display */ , + Window /* window */ , + unsigned int * /* p_nAdaptors */ , + SDL_NAME(XvAdaptorInfo) ** /* p_pAdaptors */ #endif ); -extern int SDL_NAME (XvPutVideo) ( +extern int SDL_NAME(XvQueryEncodings) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Drawable /* d */ , - GC /* gc */ , - int /* vx */ , - int /* vy */ , - unsigned int /* vw */ , - unsigned int /* vh */ , - int /* dx */ , - int /* dy */ , - unsigned int /* dw */ , - unsigned int /* dh */ + Display * /* display */ , + XvPortID /* port */ , + unsigned int * /* p_nEncoding */ , + SDL_NAME(XvEncodingInfo) ** /* p_pEncoding */ #endif ); -extern int SDL_NAME (XvPutStill) ( +extern int SDL_NAME(XvPutVideo) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Drawable /* d */ , - GC /* gc */ , - int /* vx */ , - int /* vy */ , - unsigned int /* vw */ , - unsigned int /* vh */ , - int /* dx */ , - int /* dy */ , - unsigned int /* dw */ , - unsigned int /* dh */ + Display * /* display */ , + XvPortID /* port */ , + Drawable /* d */ , + GC /* gc */ , + int /* vx */ , + int /* vy */ , + unsigned int /* vw */ , + unsigned int /* vh */ , + int /* dx */ , + int /* dy */ , + unsigned int /* dw */ , + unsigned int /* dh */ #endif ); -extern int SDL_NAME (XvGetVideo) ( +extern int SDL_NAME(XvPutStill) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Drawable /* d */ , - GC /* gc */ , - int /* vx */ , - int /* vy */ , - unsigned int /* vw */ , - unsigned int /* vh */ , - int /* dx */ , - int /* dy */ , - unsigned int /* dw */ , - unsigned int /* dh */ + Display * /* display */ , + XvPortID /* port */ , + Drawable /* d */ , + GC /* gc */ , + int /* vx */ , + int /* vy */ , + unsigned int /* vw */ , + unsigned int /* vh */ , + int /* dx */ , + int /* dy */ , + unsigned int /* dw */ , + unsigned int /* dh */ #endif ); -extern int SDL_NAME (XvGetStill) ( +extern int SDL_NAME(XvGetVideo) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Drawable /* d */ , - GC /* gc */ , - int /* vx */ , - int /* vy */ , - unsigned int /* vw */ , - unsigned int /* vh */ , - int /* dx */ , - int /* dy */ , - unsigned int /* dw */ , - unsigned int /* dh */ + Display * /* display */ , + XvPortID /* port */ , + Drawable /* d */ , + GC /* gc */ , + int /* vx */ , + int /* vy */ , + unsigned int /* vw */ , + unsigned int /* vh */ , + int /* dx */ , + int /* dy */ , + unsigned int /* dw */ , + unsigned int /* dh */ #endif ); -extern int SDL_NAME (XvStopVideo) ( +extern int SDL_NAME(XvGetStill) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Drawable /* drawable */ -#endif - ); - -extern int SDL_NAME (XvGrabPort) ( -#if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Time /* time */ + Display * /* display */ , + XvPortID /* port */ , + Drawable /* d */ , + GC /* gc */ , + int /* vx */ , + int /* vy */ , + unsigned int /* vw */ , + unsigned int /* vh */ , + int /* dx */ , + int /* dy */ , + unsigned int /* dw */ , + unsigned int /* dh */ #endif ); -extern int SDL_NAME (XvUngrabPort) ( +extern int SDL_NAME(XvStopVideo) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Time /* time */ + Display * /* display */ , + XvPortID /* port */ , + Drawable /* drawable */ #endif ); -extern int SDL_NAME (XvSelectVideoNotify) ( +extern int SDL_NAME(XvGrabPort) ( #if NeedFunctionPrototypes - Display * /* display */ , - Drawable /* drawable */ , - Bool /* onoff */ + Display * /* display */ , + XvPortID /* port */ , + Time /* time */ #endif ); -extern int SDL_NAME (XvSelectPortNotify) ( +extern int SDL_NAME(XvUngrabPort) ( +#if NeedFunctionPrototypes + Display * /* display */ , + XvPortID /* port */ , + Time /* time */ +#endif + ); + +extern int SDL_NAME(XvSelectVideoNotify) ( #if NeedFunctionPrototypes Display * /* display */ , - XvPortID /* port */ , + Drawable /* drawable */ , Bool /* onoff */ #endif ); -extern int SDL_NAME (XvSetPortAttribute) ( +extern int SDL_NAME(XvSelectPortNotify) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Atom /* attribute */ , - int /* value */ + Display * /* display */ , + XvPortID /* port */ , + Bool /* onoff */ +#endif + ); + +extern int SDL_NAME(XvSetPortAttribute) ( +#if NeedFunctionPrototypes + Display * /* display */ , + XvPortID /* port */ , + Atom /* attribute */ , + int /* value */ #endif ); -extern int SDL_NAME (XvGetPortAttribute) ( +extern int SDL_NAME(XvGetPortAttribute) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Atom /* attribute */ , - int * /* p_value */ + Display * /* display */ , + XvPortID /* port */ , + Atom /* attribute */ , + int * /* p_value */ #endif ); -extern int SDL_NAME (XvQueryBestSize) ( +extern int SDL_NAME(XvQueryBestSize) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - Bool /* motion */ , - unsigned int /* vid_w */ , - unsigned int /* vid_h */ , - unsigned int /* drw_w */ , - unsigned int /* drw_h */ , - unsigned int * /* p_actual_width */ - , unsigned int * /* p_actual_width */ + Display * /* display */ , + XvPortID /* port */ , + Bool /* motion */ , + unsigned int /* vid_w */ , + unsigned int /* vid_h */ , + unsigned int /* drw_w */ , + unsigned int /* drw_h */ , + unsigned int * /* p_actual_width */ + , unsigned int * /* p_actual_width */ #endif ); extern -SDL_NAME (XvAttribute) * -SDL_NAME (XvQueryPortAttributes) ( +SDL_NAME(XvAttribute) * +SDL_NAME(XvQueryPortAttributes) ( #if NeedFunctionPrototypes - Display * /* display */ , - XvPortID /* port */ , - int * /* number */ -#endif - ); - - - extern void SDL_NAME (XvFreeAdaptorInfo) ( -#if NeedFunctionPrototypes - SDL_NAME (XvAdaptorInfo) * /* adaptors */ -#endif - ); - - extern void SDL_NAME (XvFreeEncodingInfo) ( -#if NeedFunctionPrototypes - SDL_NAME (XvEncodingInfo) * /* encodings */ + Display * /* display */ , + XvPortID /* port */ , + int * /* number */ #endif ); - extern SDL_NAME (XvImageFormatValues) * SDL_NAME (XvListImageFormats) ( + extern void SDL_NAME(XvFreeAdaptorInfo) ( #if NeedFunctionPrototypes - Display - * - display, - XvPortID - port_id, - int - *count_return + SDL_NAME(XvAdaptorInfo) * /* adaptors */ #endif ); - extern SDL_NAME (XvImage) * SDL_NAME (XvCreateImage) ( + extern void SDL_NAME(XvFreeEncodingInfo) ( #if NeedFunctionPrototypes - Display * - display, - XvPortID port, - int id, - char *data, - int width, - int height + SDL_NAME(XvEncodingInfo) * /* encodings */ +#endif + ); + + + extern SDL_NAME(XvImageFormatValues) * SDL_NAME(XvListImageFormats) ( +#if NeedFunctionPrototypes + Display + * + display, + XvPortID + port_id, + int + *count_return #endif ); - extern int SDL_NAME (XvPutImage) ( + extern SDL_NAME(XvImage) * SDL_NAME(XvCreateImage) ( #if NeedFunctionPrototypes - Display * display, - XvPortID id, - Drawable d, - GC gc, - SDL_NAME (XvImage) * image, - int src_x, - int src_y, - unsigned int src_w, - unsigned int src_h, - int dest_x, - int dest_y, - unsigned int dest_w, - unsigned int dest_h + Display * + display, + XvPortID port, + int id, + char *data, + int width, + int height #endif ); - extern int SDL_NAME (XvShmPutImage) ( + extern int SDL_NAME(XvPutImage) ( #if NeedFunctionPrototypes - Display * display, - XvPortID id, - Drawable d, - GC gc, - SDL_NAME (XvImage) * image, - int src_x, - int src_y, - unsigned int src_w, - unsigned int src_h, - int dest_x, - int dest_y, - unsigned int dest_w, - unsigned int dest_h, - Bool send_event + Display * display, + XvPortID id, + Drawable d, + GC gc, + SDL_NAME(XvImage) * image, + int src_x, + int src_y, + unsigned int src_w, + unsigned int src_h, + int dest_x, + int dest_y, + unsigned int dest_w, + unsigned int dest_h +#endif + ); + + extern int SDL_NAME(XvShmPutImage) ( +#if NeedFunctionPrototypes + Display * display, + XvPortID id, + Drawable d, + GC gc, + SDL_NAME(XvImage) * image, + int src_x, + int src_y, + unsigned int src_w, + unsigned int src_h, + int dest_x, + int dest_y, + unsigned int dest_w, + unsigned int dest_h, + Bool send_event #endif ); #ifdef _XSHM_H_ - extern SDL_NAME (XvImage) * SDL_NAME (XvShmCreateImage) ( + extern SDL_NAME(XvImage) * SDL_NAME(XvShmCreateImage) ( #if NeedFunctionPrototypes - Display * - display, - XvPortID - port, int id, - char *data, - int width, - int height, - XShmSegmentInfo - * shminfo + Display * + display, + XvPortID + port, int id, + char *data, + int width, + int height, + XShmSegmentInfo + * shminfo #endif );