yuy2rgb-gl.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <map>
7 #include <vector>
8 
10 #include "synthetic-stream-gl.h"
11 
12 #include <librealsense2/rs.hpp>
13 #include "opengl3.h"
14 
15 #include <memory>
16 
17 namespace rs2
18 {
19  class stream_profile;
20  class visualizer_2d;
21 }
22 
23 namespace librealsense
24 {
25  namespace gl
26  {
28  {
29  public:
30  yuy2rgb();
31  ~yuy2rgb() override;
32 
33  void cleanup_gpu_resources() override;
34  void create_gpu_resources() override;
35 
36  rs2::frame process_frame(const rs2::frame_source& source, const rs2::frame& f) override;
37  private:
38  int _enabled = 0;
41 
42  int _width, _height;
43 
44  std::shared_ptr<rs2::visualizer_2d> _viz;
45  std::shared_ptr<rs2::fbo> _fbo;
46  };
47  }
48 }
Definition: cah-model.h:10
GLdouble f
rs2::stream_profile _output_profile
Definition: yuy2rgb-gl.h:40
std::shared_ptr< rs2::fbo > _fbo
Definition: yuy2rgb-gl.h:45
GLsizei GLsizei GLchar * source
rs2::stream_profile _input_profile
Definition: yuy2rgb-gl.h:39
std::shared_ptr< rs2::visualizer_2d > _viz
Definition: yuy2rgb-gl.h:44


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:23