src/video/directfb/SDL_DirectFB_video.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 31 Aug 2002 04:13:28 +0000
changeset 478 f8482d7c9595
parent 464 1c4be4a16410
child 728 5446a009107a
permissions -rw-r--r--
Date: Tue, 27 Aug 2002 19:07:38 +0200
From: Denis Oliver Kropp
Subject: YUV support

I just added YUV overlay support to the DirectFB backend.
slouken@167
     1
/*
slouken@167
     2
    SDL - Simple DirectMedia Layer
slouken@297
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
slouken@167
     4
slouken@167
     5
    This library is free software; you can redistribute it and/or
slouken@167
     6
    modify it under the terms of the GNU Library General Public
slouken@167
     7
    License as published by the Free Software Foundation; either
slouken@167
     8
    version 2 of the License, or (at your option) any later version.
slouken@167
     9
slouken@167
    10
    This library is distributed in the hope that it will be useful,
slouken@167
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@167
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@167
    13
    Library General Public License for more details.
slouken@167
    14
slouken@167
    15
    You should have received a copy of the GNU Library General Public
slouken@167
    16
    License along with this library; if not, write to the Free
slouken@167
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@167
    18
slouken@167
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@167
    21
*/
slouken@167
    22
slouken@167
    23
#ifdef SAVE_RCSID
slouken@167
    24
static char rcsid =
slouken@167
    25
 "@(#) $Id$";
slouken@167
    26
#endif
slouken@167
    27
slouken@167
    28
#ifndef _SDL_DirectFB_video_h
slouken@167
    29
#define _SDL_DirectFB_video_h
slouken@167
    30
slouken@167
    31
#include <directfb.h>
slouken@167
    32
slouken@167
    33
#include "SDL_mouse.h"
slouken@167
    34
#include "SDL_sysvideo.h"
slouken@167
    35
slouken@167
    36
#define _THIS SDL_VideoDevice *this
slouken@167
    37
slouken@167
    38
/* Private display data */
slouken@167
    39
slouken@167
    40
struct SDL_PrivateVideoData
slouken@167
    41
{
slouken@167
    42
  int                    initialized;
slouken@167
    43
slouken@167
    44
  IDirectFB             *dfb;
slouken@167
    45
  IDirectFBDisplayLayer *layer;
slouken@286
    46
  IDirectFBEventBuffer  *eventbuffer;
slouken@167
    47
slouken@464
    48
  int nummodes;
slouken@464
    49
  SDL_Rect **modelist;
slouken@167
    50
};
slouken@167
    51
slouken@167
    52
#define HIDDEN (this->hidden)
slouken@167
    53
slouken@478
    54
void SetDirectFBerror (const char *function, DFBResult code);
slouken@478
    55
slouken@167
    56
#endif /* _SDL_DirectFB_video_h */