File: resize_effect.cpp

package info (click to toggle)
movit 1.7.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,248 kB
  • sloc: cpp: 16,677; sh: 3,940; makefile: 167
file content (26 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (6)
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
#include "resize_effect.h"
#include "util.h"

using namespace std;

namespace movit {

ResizeEffect::ResizeEffect()
	: width(1280), height(720)
{
	register_int("width", &width);
	register_int("height", &height);
}

string ResizeEffect::output_fragment_shader()
{
	return read_file("identity.frag");
}

void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const
{
	*virtual_width = *width = this->width;
	*virtual_height = *height = this->height;
}

}  // namespace movit