Changes between Version 54 and Version 55 of Video_Users_Guide


Ignore:
Timestamp:
Jun 6, 2013 1:05:01 AM (7 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Video_Users_Guide

    v54 v55  
    272272[[BR]] 
    273273 
     274== Additional Info == 
     275 
     276=== Using OpenGL with SDL === 
     277 
     278PJSIP supports OpenGL video rendering with SDL. Follow these steps to enable and use the OpenGL backend. 
     279 
     280 1. Install OpenGL development libraries for your system. The instructions vary, and some platforms may have OpenGL development libraries installed by default. 
     281   - For Ubuntu 12.04, you can run the following: 
     282     {{{ 
     283$ sudo apt-get install freeglut3 freeglut3-dev 
     284$ sudo apt-get install binutils-gold 
     285     }}} 
     286 1. Enable OpenGL support in SDL. With GNU tools, OpenGL support will be detected automatically by the "configure" script. Make sure that the "configure" output shows that OpenGL has been detected, by looking for line like this in the output: 
     287    {{{ 
     288checking for OpenGL (GLX) support... yes 
     289    }}} 
     290 1. Enable SDL OpenGL support in PJSIP, by declaring this in your {{{config_site.h}}}: 
     291    {{{ 
     292#define PJMEDIA_VIDEO_DEV_SDL_HAS_OPENGL        1 
     293    }}} 
     294 1. If you're not using Visual Studio, add OpenGL library in your application's input library list. If you're using GNU tools, you can add this in '''{{{user.mak}}}''' file in root PJSIP directory: 
     295    {{{ 
     296export LDFLAGS += -lGL 
     297    }}} 
     298 1. Rebuild PJSIP 
     299 1. Now '''"SDL openGL renderer"''' device should show up in video device list. Simply just use this device. 
     300 
     301 
     302[[BR]] 
     303 
    274304== Video API Reference (pjsua-lib) == #vidref 
    275305