27 return framebuffer_size;
31 return icetImageGetColorui(image[0]);
35 template <
typename TController>
41 isaac_size2 compbuffer_size =
43 framebuffer_size.x * 2,
46 return compbuffer_size;
49 framebuffer_size( framebuffer_size ),
52 compbuffer = (uint32_t*)malloc(
sizeof(uint32_t) * compbuffer_size.x * compbuffer_size.y);
60 static_assert(TController::pass_count >= 2,
"Not enough passes defined in Controller for StereoCompositor!");
61 uint32_t* left = icetImageGetColorui(image[0]);
62 uint32_t* right = icetImageGetColorui(image[1]);
63 for (
unsigned int y = 0; y < compbuffer_size.y; y++)
65 memcpy( &(compbuffer[y*compbuffer_size.x ]), &( left[y*framebuffer_size.x]),
sizeof(uint32_t) * framebuffer_size.x);
66 memcpy( &(compbuffer[y*compbuffer_size.x + framebuffer_size.x]), &(right[y*framebuffer_size.x]),
sizeof(uint32_t) * framebuffer_size.x);
71 isaac_size2 compbuffer_size;
72 isaac_size2 framebuffer_size;
86 return framebuffer_size;
89 framebuffer_size( framebuffer_size )
91 compbuffer = (uint32_t*)malloc(
sizeof(uint32_t) * framebuffer_size.x * framebuffer_size.y);
99 static_assert(TController::pass_count >= 2,
"Not enough passes defined in Controller for StereoCompositor!");
100 uint32_t* left = icetImageGetColorui(image[0]);
101 uint32_t* right = icetImageGetColorui(image[1]);
102 for (
unsigned int x = 0; x < framebuffer_size.x; x++)
103 for (
unsigned int y = 0; y < framebuffer_size.y; y++)
104 compbuffer[x+y*framebuffer_size.x] =
105 ( left[x+y*framebuffer_size.x] & LeftFilter) |
106 (right[x+y*framebuffer_size.x] & RightFilter);
110 isaac_size2 framebuffer_size;
111 uint32_t* compbuffer;
StereoCompositorSideBySide(isaac_size2 framebuffer_size)
static isaac_size2 getCompositedbufferSize(isaac_size2 framebuffer_size)
DefaultCompositor(isaac_size2 framebuffer_size)
~StereoCompositorAnaglyph()
uint32_t * doCompositing(IceTImage *image)
static isaac_size2 getCompositedbufferSize(isaac_size2 framebuffer_size)
StereoCompositorAnaglyph(isaac_size2 framebuffer_size)
uint32_t * doCompositing(IceTImage *image)
uint32_t * doCompositing(IceTImage *image)
~StereoCompositorSideBySide()
static isaac_size2 getCompositedbufferSize(isaac_size2 framebuffer_size)