UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
syphon_server.m File Reference
#include "config.h"
#include "config_unix.h"
#include "debug.h"
#include <OpenGL/gl.h>
import <Syphon/Syphon.h>
#include "syphon_server.h"
Include dependency graph for syphon_server.m:

Go to the source code of this file.

Functions

void syphon_server_publish (void *s, int width, int height, unsigned int id)
 
void * syphon_server_register (void *context, const char *name)
 
void syphon_server_unregister (void *s)
 

Detailed Description

Author
Martin Pulec pulec.nosp@m.@ces.nosp@m.net.c.nosp@m.z

Definition in file syphon_server.m.

Function Documentation

◆ syphon_server_publish()

void syphon_server_publish ( void * s,
int width,
int height,
unsigned int id )

Definition at line 53 of file syphon_server.m.

53 {
54 [(SyphonServer *)s publishFrameTexture:id textureTarget:GL_TEXTURE_2D imageRegion:NSMakeRect(0, 0, width, height) textureDimensions:NSMakeSize(width, height) flipped:YES];
55}

Referenced by gl_process_frames().

◆ syphon_server_register()

void * syphon_server_register ( void * context,
const char * name )

Definition at line 47 of file syphon_server.m.

47 {
48 SyphonServer *srv = [[SyphonServer alloc] initWithName:[NSString stringWithUTF8String:name]
49 context:(CGLContextObj)context options:nil];
50 return srv;
51}

Referenced by gl_reconfigure_screen().

◆ syphon_server_unregister()

void syphon_server_unregister ( void * s)

Definition at line 57 of file syphon_server.m.

57 {
58 [(SyphonServer *)s stop];
59 [(SyphonServer *)s dealloc];
60}

Referenced by display_gl_cleanup_opengl().