19682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/* 29682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall SDL - Simple DirectMedia Layer 39682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Copyright (C) 1997-2012 Sam Lantinga 49682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 59682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall This library is free software; you can redistribute it and/or 69682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall modify it under the terms of the GNU Lesser General Public 79682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall License as published by the Free Software Foundation; either 89682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall version 2.1 of the License, or (at your option) any later version. 99682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall This library is distributed in the hope that it will be useful, 119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall but WITHOUT ANY WARRANTY; without even the implied warranty of 129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Lesser General Public License for more details. 149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall You should have received a copy of the GNU Lesser General Public 169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall License along with this library; if not, write to the Free Software 179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall Sam Lantinga 209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall slouken@libsdl.org 219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/ 229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#include "SDL_config.h" 239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#ifndef __SDL_SYS_YUV_H__ 269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#define __SDL_SYS_YUV_H__ 279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/* This is the BeOS implementation of YUV video overlays */ 299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#include "SDL_video.h" 319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#include "SDL_lowvideo.h" 329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 339682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern "C" { 349682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 359682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallstruct private_yuvhwdata 369682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall{ 379682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/* FRAMEDATA* CurrentFrameData; 389682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall FRAMEDATA* FrameData0; 399682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall FRAMEDATA* FrameData1; 409682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall PgScalerProps_t props; 419682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall PgScalerCaps_t caps; 429682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall PgVideoChannel_t* channel; 439682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall PhArea_t CurrentViewPort; 449682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall PhPoint_t CurrentWindowPos; 459682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall long format; 469682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall int scaler_on; 479682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall int current; 489682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall long YStride; 499682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall long VStride; 509682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall long UStride; 519682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall int ischromakey; 529682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall long chromakey; 539682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall int forcedredraw; 549682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall unsigned long State; 559682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall long flags; 569682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/ 579682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall SDL_Surface *display; 589682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall BView *bview; 599682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall bool first_display; 609682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall BBitmap *bbitmap; 619682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall int locked; 629682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}; 639682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 649682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern BBitmap * BE_GetOverlayBitmap(BRect bounds, color_space cs); 659682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern SDL_Overlay* BE_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SDL_Surface* display); 669682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern int BE_LockYUVOverlay(_THIS, SDL_Overlay* overlay); 679682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern void BE_UnlockYUVOverlay(_THIS, SDL_Overlay* overlay); 689682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern int BE_DisplayYUVOverlay(_THIS, SDL_Overlay* overlay, SDL_Rect* src, SDL_Rect* dst); 699682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallextern void BE_FreeYUVOverlay(_THIS, SDL_Overlay* overlay); 709682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 719682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}; 729682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall 739682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#endif /* __SDL_PH_YUV_H__ */ 74