Support different chroma positioning for Cb and Cr. The test is slightly shaky, so...
[movit] / gtest_sdl_main.cpp
1 #include <SDL/SDL.h>
2 #include "gtest/gtest.h"
3
4 int main(int argc, char **argv) {
5         // Set up an OpenGL context using SDL.
6         SDL_Init(SDL_INIT_VIDEO);
7         SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
8         SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0);
9         SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
10         SDL_SetVideoMode(32, 32, 0, SDL_OPENGL);
11         SDL_WM_SetCaption("OpenGL window for unit test", NULL);
12
13         testing::InitGoogleTest(&argc, argv);
14         int err = RUN_ALL_TESTS();
15         SDL_Quit();
16         exit(err);
17 }