Ignore:
Timestamp:
Jun 6, 2012 9:37:25 AM (12 years ago)
Author:
nanang
Message:

Close #1529:

  • replaced obsoleted SDL constants SDL_*_OVERLAY
  • updated build config/scripts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c

    r4078 r4157  
    7777     0xFF0000, 0xFF00, 0xFF, 0} , 
    7878 
    79     {PJMEDIA_FORMAT_YUY2, SDL_YUY2_OVERLAY, 0, 0, 0, 0} , 
    80     {PJMEDIA_FORMAT_UYVY, SDL_UYVY_OVERLAY, 0, 0, 0, 0} , 
    81     {PJMEDIA_FORMAT_YVYU, SDL_YVYU_OVERLAY, 0, 0, 0, 0} , 
    82     {PJMEDIA_FORMAT_I420, SDL_IYUV_OVERLAY, 0, 0, 0, 0} , 
    83     {PJMEDIA_FORMAT_YV12, SDL_YV12_OVERLAY, 0, 0, 0, 0} , 
    84     {PJMEDIA_FORMAT_I420JPEG, SDL_IYUV_OVERLAY, 0, 0, 0, 0} , 
    85     {PJMEDIA_FORMAT_I422JPEG, SDL_YV12_OVERLAY, 0, 0, 0, 0} , 
     79    {PJMEDIA_FORMAT_YUY2, SDL_PIXELFORMAT_YUY2, 0, 0, 0, 0} , 
     80    {PJMEDIA_FORMAT_UYVY, SDL_PIXELFORMAT_UYVY, 0, 0, 0, 0} , 
     81    {PJMEDIA_FORMAT_YVYU, SDL_PIXELFORMAT_YVYU, 0, 0, 0, 0} , 
     82    {PJMEDIA_FORMAT_I420, SDL_PIXELFORMAT_IYUV, 0, 0, 0, 0} , 
     83    {PJMEDIA_FORMAT_YV12, SDL_PIXELFORMAT_YV12, 0, 0, 0, 0} , 
     84    {PJMEDIA_FORMAT_I420JPEG, SDL_PIXELFORMAT_IYUV, 0, 0, 0, 0} , 
     85    {PJMEDIA_FORMAT_I422JPEG, SDL_PIXELFORMAT_YV12, 0, 0, 0, 0} 
    8686}; 
    8787 
     
    14191419 
    14201420#ifdef _MSC_VER 
    1421 #   pragma comment( lib, "sdl.lib") 
     1421#   if SDL_VERSION_ATLEAST(2,0,0) 
     1422#       pragma comment( lib, "sdl2.lib") 
     1423#   elif SDL_VERSION_ATLEAST(1,3,0) 
     1424#       pragma comment( lib, "sdl.lib") 
     1425#   endif 
    14221426#   if PJMEDIA_VIDEO_DEV_SDL_HAS_OPENGL 
    14231427#       pragma comment(lib, "OpenGL32.lib") 
Note: See TracChangeset for help on using the changeset viewer.