AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Window Class Reference

#include <Window.hpp>

Public Member Functions

 Window (avtranscoder::VideoReader &reader)
 
void launch ()
 

Static Private Member Functions

static void display ()
 
static void keyboard (unsigned char k, int x, int y)
 
static void specialKeyboard (int k, int x, int y)
 
static void mouse (int button, int state, int x, int y)
 
static void motion (int x, int y)
 
static void reshape (int width, int height)
 
static void displayHelp ()
 
static void displayInformations ()
 
static void move (float x, float y)
 
static void zoom (float factor)
 
static void mapToImage (int x, int y, int &iX, int &iY)
 
static void setTransfert (float red, float green, float blue, float alpha=1.f)
 
static void displayChannelTexture (bool &channel, const float red, const float green, const float blue)
 
static void showRedChannelTexture ()
 
static void showGreenChannelTexture ()
 
static void showBlueChannelTexture ()
 
static void showAlphaChannelTexture ()
 
static void displayNextFrame ()
 
static void displayPrevFrame ()
 
static void displayFirstFrame ()
 
static void displayAtFrame (const size_t frame)
 
static void loopPlaying (int value)
 

Static Private Attributes

static avtranscoder::VideoReader_reader = NULL
 
static size_t _width = 0
 
static size_t _height = 0
 
static int _x1 = -1.0
 
static int _x2 = 1.0
 
static int _y1 = 1.0
 
static int _y2 = -1.0
 
static int _xMinViewport = 0
 
static int _yMinViewport = 0
 
static int _xMouseRef = 0
 
static int _yMouseRef = 0
 
static int _windowId = 0
 
static float _currentZoom = 1.0
 
static float _factorZoom = 1.25
 
static float _scale = 1.0
 
static bool _play = false
 
static bool _flip = false
 
static bool _flop = false
 
static bool _showRedChannel = false
 
static bool _showGreenChannel = false
 
static bool _showBlueChannel = false
 
static bool _showAlphaChannel = false
 

Detailed Description

Definition at line 8 of file Window.hpp.

Constructor & Destructor Documentation

Member Function Documentation

void Window::display ( )
staticprivate

Definition at line 136 of file Window.cpp.

References _flip, _flop, _x1, _x2, _y1, and _y2.

Referenced by displayAtFrame(), displayNextFrame(), displayPrevFrame(), and Window().

void Window::displayChannelTexture ( bool &  channel,
const float  red,
const float  green,
const float  blue 
)
staticprivate
void Window::displayFirstFrame ( )
staticprivate

Definition at line 565 of file Window.cpp.

References displayAtFrame().

Referenced by launch(), and specialKeyboard().

void Window::displayHelp ( )
staticprivate

Definition at line 397 of file Window.cpp.

Referenced by keyboard(), and specialKeyboard().

void Window::displayInformations ( )
staticprivate
void Window::keyboard ( unsigned char  k,
int  x,
int  y 
)
staticprivate
void Window::launch ( )

Definition at line 130 of file Window.cpp.

References displayFirstFrame().

Referenced by main().

void Window::loopPlaying ( int  value)
staticprivate

Definition at line 578 of file Window.cpp.

References _play, and displayNextFrame().

Referenced by keyboard().

void Window::mapToImage ( int  x,
int  y,
int &  iX,
int &  iY 
)
staticprivate

Definition at line 462 of file Window.cpp.

References _currentZoom, _flip, _flop, _scale, _x1, _xMinViewport, _y1, _yMinViewport, ImgProperties::height, and ImgProperties::width.

Referenced by mouse().

void Window::motion ( int  x,
int  y 
)
staticprivate

Definition at line 344 of file Window.cpp.

References _currentZoom, _flip, _flop, _xMouseRef, _yMouseRef, ImgProperties::height, move(), and ImgProperties::width.

Referenced by Window().

void Window::mouse ( int  button,
int  state,
int  x,
int  y 
)
staticprivate
void Window::move ( float  x,
float  y 
)
staticprivate

Definition at line 446 of file Window.cpp.

References _x1, _x2, _y1, and _y2.

Referenced by motion(), and mouse().

void Window::reshape ( int  width,
int  height 
)
staticprivate

Definition at line 369 of file Window.cpp.

References _height, _scale, _width, _xMinViewport, and _yMinViewport.

Referenced by Window().

void Window::setTransfert ( float  red,
float  green,
float  blue,
float  alpha = 1.f 
)
staticprivate

Definition at line 487 of file Window.cpp.

References ImgProperties::format.

Referenced by displayChannelTexture().

void Window::showAlphaChannelTexture ( )
staticprivate

Definition at line 544 of file Window.cpp.

Referenced by keyboard().

void Window::showBlueChannelTexture ( )
staticprivate

Definition at line 539 of file Window.cpp.

References _showBlueChannel, and displayChannelTexture().

Referenced by keyboard().

void Window::showGreenChannelTexture ( )
staticprivate

Definition at line 534 of file Window.cpp.

References _showGreenChannel, and displayChannelTexture().

Referenced by keyboard().

void Window::showRedChannelTexture ( )
staticprivate

Definition at line 529 of file Window.cpp.

References _showRedChannel, and displayChannelTexture().

Referenced by keyboard().

void Window::specialKeyboard ( int  k,
int  x,
int  y 
)
staticprivate

Definition at line 246 of file Window.cpp.

References displayFirstFrame(), displayHelp(), displayNextFrame(), and displayPrevFrame().

Referenced by Window().

void Window::zoom ( float  factor)
staticprivate

Definition at line 454 of file Window.cpp.

References _x1, _x2, _y1, and _y2.

Referenced by mouse().

Field Documentation

float Window::_currentZoom = 1.0
staticprivate

Definition at line 64 of file Window.hpp.

Referenced by keyboard(), mapToImage(), motion(), and mouse().

float Window::_factorZoom = 1.25
staticprivate

Definition at line 65 of file Window.hpp.

Referenced by mouse().

bool Window::_flip = false
staticprivate

Definition at line 71 of file Window.hpp.

Referenced by display(), keyboard(), mapToImage(), and motion().

bool Window::_flop = false
staticprivate

Definition at line 72 of file Window.hpp.

Referenced by display(), keyboard(), mapToImage(), and motion().

size_t Window::_height = 0
staticprivate

Definition at line 48 of file Window.hpp.

Referenced by displayInformations(), keyboard(), reshape(), and Window().

bool Window::_play = false
staticprivate

Definition at line 69 of file Window.hpp.

Referenced by keyboard(), and loopPlaying().

avtranscoder::VideoReader * Window::_reader = NULL
staticprivate
float Window::_scale = 1.0
staticprivate

Definition at line 67 of file Window.hpp.

Referenced by mapToImage(), and reshape().

bool Window::_showAlphaChannel = false
staticprivate

Definition at line 77 of file Window.hpp.

Referenced by displayChannelTexture().

bool Window::_showBlueChannel = false
staticprivate

Definition at line 76 of file Window.hpp.

Referenced by displayChannelTexture(), and showBlueChannelTexture().

bool Window::_showGreenChannel = false
staticprivate

Definition at line 75 of file Window.hpp.

Referenced by displayChannelTexture(), and showGreenChannelTexture().

bool Window::_showRedChannel = false
staticprivate

Definition at line 74 of file Window.hpp.

Referenced by displayChannelTexture(), and showRedChannelTexture().

size_t Window::_width = 0
staticprivate

Definition at line 47 of file Window.hpp.

Referenced by displayInformations(), keyboard(), reshape(), and Window().

int Window::_windowId = 0
staticprivate

Definition at line 61 of file Window.hpp.

Referenced by keyboard(), and Window().

int Window::_x1 = -1.0
staticprivate

Definition at line 50 of file Window.hpp.

Referenced by display(), keyboard(), mapToImage(), move(), and zoom().

int Window::_x2 = 1.0
staticprivate

Definition at line 51 of file Window.hpp.

Referenced by display(), keyboard(), move(), and zoom().

int Window::_xMinViewport = 0
staticprivate

Definition at line 55 of file Window.hpp.

Referenced by mapToImage(), and reshape().

int Window::_xMouseRef = 0
staticprivate

Definition at line 58 of file Window.hpp.

Referenced by motion(), and mouse().

int Window::_y1 = 1.0
staticprivate

Definition at line 52 of file Window.hpp.

Referenced by display(), keyboard(), mapToImage(), move(), and zoom().

int Window::_y2 = -1.0
staticprivate

Definition at line 53 of file Window.hpp.

Referenced by display(), keyboard(), move(), and zoom().

int Window::_yMinViewport = 0
staticprivate

Definition at line 56 of file Window.hpp.

Referenced by mapToImage(), and reshape().

int Window::_yMouseRef = 0
staticprivate

Definition at line 59 of file Window.hpp.

Referenced by motion(), and mouse().


The documentation for this class was generated from the following files: