src/video/ps2gs/SDL_gsyuv_c.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 2859 99210400e8b9
permissions -rw-r--r--
Fixed bug #906

Added better error reporting for OpenGL context creation failing.
slouken@70
     1
/*
slouken@70
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@70
     4
slouken@70
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@70
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@70
     9
slouken@70
    10
    This library is distributed in the hope that it will be useful,
slouken@70
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@70
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@70
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@70
    18
slouken@70
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@70
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@70
    23
slouken@70
    24
/* This is the Playstation 2 implementation of YUV video overlays */
slouken@70
    25
slouken@70
    26
#include "SDL_video.h"
slouken@70
    27
#include "SDL_gsvideo.h"
slouken@70
    28
slouken@1895
    29
extern SDL_Overlay *GS_CreateYUVOverlay(_THIS, int width, int height,
slouken@1895
    30
                                        Uint32 format, SDL_Surface * display);
slouken@70
    31
slouken@1895
    32
extern int GS_LockYUVOverlay(_THIS, SDL_Overlay * overlay);
slouken@70
    33
slouken@1895
    34
extern void GS_UnlockYUVOverlay(_THIS, SDL_Overlay * overlay);
slouken@70
    35
slouken@1895
    36
extern int GS_DisplayYUVOverlay(_THIS, SDL_Overlay * overlay, SDL_Rect * src,
slouken@1895
    37
                                SDL_Rect * dst);
slouken@70
    38
slouken@1895
    39
extern void GS_FreeYUVOverlay(_THIS, SDL_Overlay * overlay);
slouken@1895
    40
/* vi: set ts=4 sw=4 expandtab: */