FoveatedSynthesis.h 516 Bytes
Newer Older
Nianchen Deng's avatar
sync    
Nianchen Deng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "../utils/common.h"
#include "View.h"

class FoveatedSynthesis_Impl;

class FoveatedSynthesis {
public:
	FoveatedSynthesis(const std::string& dataDir, glm::vec2 depthRange, uint nSamples[],
		uint encodeDim, uint coordChns, sptr<Camera> cam,
		const std::vector<sptr<Camera>>& layerCams, bool stereo = false);

	void run(View& view, glm::vec2 foveaPos, bool showPerf = false, glm::vec2 foveaPosR = {});

	GLuint getGlResultTexture(uint index);

private:
	sptr<FoveatedSynthesis_Impl> _impl;

};