Skip to main content
Part of Shared Memory Image Transport Python interface to the shared_memory_image_client.h API. #include <Python.h>
#include "shared_memory_image_client_priv.h"
Go to the source code of this file.

Macros

Functions

Detailed Description

Python interface to the shared_memory_image_client.h API. Author Randy Frank (randy.nosp@m..fra.nosp@m.nk@an.nosp@m.sys..nosp@m.com) Version 1.0

ensight_grpc_shmem python module

This module implements a set of Python bindings to the shared memory image transport API. A simple example exercising the API might be:
Definition in file shared_memory_image_client_python.c.

Macro Definition Documentation

MAX_STREAMS

the maximum number of active streams we allow Definition at line 30 of file shared_memory_image_client_python.c.

Function Documentation

stream_create()

Create a shared memory image stream. Python wrapper for SharedMemoryImageStream_create(). Function in the ensight_grpc_shmem python module Python module. See also SharedMemoryImageStream_create(). Parameters Exceptions Returns the allocated stream id.

stream_destroy()

Close down and destroy a shared memory transport interface. Python wrapper for SharedMemoryImageStream_destroy(). Function in the ensight_grpc_shmem python module Python module. See also SharedMemoryImageStream_destroy().
Parameters Exceptions Returns IMAGESTREAM_NOERROR

stream_lock()

Get any available image frame. Python wrapper for SharedMemoryImageStream_lock(). Function in the ensight_grpc_shmem python module Python module. See also SharedMemoryImageStream_lock().
Parameters Exceptions Returns SharedMemoryImageError if no images are read or a dictionary with the same fields as _SharedMemoryFrame.

stream_putframe()

Push an image into the shared memory transport buffer. Python wrapper for SharedMemoryImageStream_putframe(). Only used by server connections. Function in the ensight_grpc_shmem python module Python module. See also SharedMemoryImageStream_putframe().
Parameters Exceptions Returns SharedMemoryImageError IMAGESTREAM_UNCONNECTED, IMAGESTREAM_NO_BUFFERAVAILABLE, IMAGESTREAM_NOERROR

stream_unlock()

Unlock the frame allocated by stream_lock(). Python wrapper for SharedMemoryImageStream_unlock(). Function in the ensight_grpc_shmem python module Python module. See also SharedMemoryImageStream_unlock().
Parameters Exceptions Returns SharedMemoryImageError if no images are read or a dictionary with the same fields as _SharedMemoryFrame.