Please note: There is no warranty or support for the applications below. They are supplied free of charge. We cannot be held responsible for damage caused to your computer. If you are unsure about any aspect of installing this software then please do not proceed.

Goal: This cource code (in C) uses the SDL or AquaTerm libraries to display a YUV video. So far, the player only displays 4:2:0 YUV format.





  • Compilation (on MS Windows XP): 
          
NOTE: There is a SDL incompatibility on Windows Vista (oct 12th 2010).

Download all needed tools

get the YUVplayer package.

get dev-cpp:
http://www.bloodshed.net/devcpp.html


Install SDL

In Dev-Cpp :
Go in "Tools-> Check for updates/Packages"
select the devpacks.org server.
Then  click "check for updates"
select
- SDL

click "download selected" and proceed to the installation.


Set up Dev-Cpp for the compilation

Make sure that the following settings are correct in Dev-Cpp:
In the Menu :
->Tools->Compiler options:
 - Compiler:
Add the following command...:
-Wall  -O2 -g -Wall -fexpensive-optimizations -funroll-loops -DNDEBUG

Add these commands to the linker...:
-lmingw32 -lSDLmain -lSDL -lm

 - Directories->Binaries
C:\Dev-Cpp\bin

 - Directories->Libraries
C:\Dev-Cpp\lib

 - Directories->C include
C:\Dev-Cpp\include
C:\Dev-Cpp\include\SDL

You should have SDL.dll in your path, so you can either
- copy SDL.dll from C:\Dev-Cpp\bin into the YUVplayer directory, or
- add C:\Dev-Cpp\bin in your PATH:
Right click on "My Computer", then "Properties", Click the "Advanced" tab, click "Environment variables", click "New" and add PATH as the variable name and C:\Dev-Cpp\bin for the value.


Compile the dev-cpp project

Finally, open SDL_YUVplayer.c with Dev-Cpp and compile using "Execute->Rebuild All"
 





Polytech'Nantes
IRCCyN