# HG changeset patch # User Sam Lantinga # Date 1138526395 0 # Node ID c07c6ef7c93ed70baa595a7da3323c37fcdf124b # Parent ea3888b472bfdff70287f5eae8f9d6c45bd51770 Date: Fri, 18 Feb 2005 07:58:00 +0200 From: "Mike Gorchak" Subject: [SDL] [PATCH] QNX6 and not only QNX6 fixes 1) Update SDL.qpg.in for the QNX 6.3. 4) video/photon/SDL_phyuv.c - fixed bug with swapped U and V planes, using YV12 mode with radeon cards. diff -r ea3888b472bf -r c07c6ef7c93e SDL.qpg.in --- a/SDL.qpg.in Sun Jan 29 09:13:36 2006 +0000 +++ b/SDL.qpg.in Sun Jan 29 09:19:55 2006 +0000 @@ -24,32 +24,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -59,14 +55,14 @@ SDL 1 http://qnx.org.ru/repository - 2.0 + 2.6 Simple DirectMedia Layer (SDL) SDL slouken@libsdl.org - public + Public public http://www.libsdl.org @@ -85,7 +81,7 @@ @VERSION@ - High + Medium Stable @@ -96,7 +92,7 @@ Software Development/Libraries and Extensions/C Libraries - SDL, audio, graphics, demos, games, emulators, direct, media, layer + SDL,audio,graphics,demos,games,emulators,direct,media,layer qnx6 none Photon diff -r ea3888b472bf -r c07c6ef7c93e src/video/photon/SDL_ph_modes.c --- a/src/video/photon/SDL_ph_modes.c Sun Jan 29 09:13:36 2006 +0000 +++ b/src/video/photon/SDL_ph_modes.c Sun Jan 29 09:19:55 2006 +0000 @@ -28,7 +28,6 @@ #include "SDL_error.h" #include "SDL_ph_modes_c.h" -static unsigned long key1, key2; static PgVideoModeInfo_t mode_info; static PgVideoModes_t mode_list; diff -r ea3888b472bf -r c07c6ef7c93e src/video/photon/SDL_phyuv.c --- a/src/video/photon/SDL_phyuv.c Sun Jan 29 09:13:36 2006 +0000 +++ b/src/video/photon/SDL_phyuv.c Sun Jan 29 09:19:55 2006 +0000 @@ -58,10 +58,10 @@ /* Buffers have moved; re-obtain the pointers */ Frame0->Y = (unsigned char *)PdGetOffscreenContextPtr(channel->yplane1); Frame1->Y = (unsigned char *)PdGetOffscreenContextPtr(channel->yplane2); - Frame0->U = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane1); - Frame1->U = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane2); - Frame0->V = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane1); - Frame1->V = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane2); + Frame0->U = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane1); + Frame1->U = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane2); + Frame0->V = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane1); + Frame1->V = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane2); if (Frame0->Y) planes++; @@ -217,10 +217,10 @@ if(overlay->hwdata->channel->yplane1 != NULL) overlay->hwdata->YStride = overlay->hwdata->channel->yplane1->pitch; + if(overlay->hwdata->channel->vplane1 != NULL) + overlay->hwdata->UStride = overlay->hwdata->channel->vplane1->pitch; if(overlay->hwdata->channel->uplane1 != NULL) - overlay->hwdata->UStride = overlay->hwdata->channel->uplane1->pitch; - if(overlay->hwdata->channel->vplane1 != NULL) - overlay->hwdata->VStride = overlay->hwdata->channel->vplane1->pitch; + overlay->hwdata->VStride = overlay->hwdata->channel->uplane1->pitch; /* check for the validness of all planes */ if ((overlay->hwdata->channel->yplane1 == NULL) && @@ -267,12 +267,12 @@ } if (overlay->planes > 1) { - overlay->pitches[1] = overlay->hwdata->channel->uplane1->pitch; + overlay->pitches[1] = overlay->hwdata->channel->vplane1->pitch; overlay->pixels[1] = overlay->hwdata->CurrentFrameData->U; } if (overlay->planes > 2) { - overlay->pitches[2] = overlay->hwdata->channel->vplane1->pitch; + overlay->pitches[2] = overlay->hwdata->channel->uplane1->pitch; overlay->pixels[2] = overlay->hwdata->CurrentFrameData->V; }