-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathWindow.hpp
More file actions
80 lines (57 loc) · 1.9 KB
/
Copy pathWindow.hpp
File metadata and controls
80 lines (57 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef _AVPLAY_WINDOW_HPP_
#define _AVPLAY_WINDOW_HPP_
#include <string>
#include <AvTranscoder/reader/VideoReader.hpp>
class Window
{
public:
Window(avtranscoder::VideoReader& reader);
void launch();
private:
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 avtranscoder::VideoReader* _reader;
static size_t _width;
static size_t _height;
static int _x1;
static int _x2;
static int _y1;
static int _y2;
static int _xMinViewport;
static int _yMinViewport;
static int _xMouseRef;
static int _yMouseRef;
static int _windowId;
// viewing properties - zoom
static float _currentZoom;
static float _factorZoom;
static float _scale;
static bool _play;
static bool _flip;
static bool _flop;
static bool _showRedChannel;
static bool _showGreenChannel;
static bool _showBlueChannel;
static bool _showAlphaChannel;
};
#endif