Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
stream.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <config.h>
#include <simage.h>
#include <simage_private.h>
#include <string.h>

Data Structures

struct  simage_stream_s
 
struct  simage_stream_importer
 
struct  simage_stream_exporter
 

Functions

static void add_internal_importers (void)
 
static void add_internal_exporters (void)
 
s_streams_stream_open (const char *filename, s_params *params)
 
s_streams_stream_create (const char *filename, s_params *params)
 
void * s_stream_get_buffer (s_stream *stream, void *buffer, int *size, s_params *params)
 
int s_stream_put_buffer (s_stream *stream, void *buffer, int size, s_params *params)
 
void s_stream_close (s_stream *stream)
 
void s_stream_destroy (s_stream *stream)
 
s_paramss_stream_params (s_stream *stream)
 
void * s_stream_context_get (s_stream *stream)
 
void s_stream_context_set (s_stream *stream, void *context)
 
void s_stream_importer_add (s_stream_open_func *open, s_stream_get_func *get, s_stream_close_func *close)
 
void s_stream_importer_add_ex (s_stream_open_func *open, s_stream_get_func *get, s_stream_seek_func *seek, s_stream_tell_func *tell, s_stream_close_func *close)
 
void s_stream_exporter_add (s_stream_create_func *create, s_stream_put_func *put, s_stream_close_func *close)
 
void s_stream_exporter_add_ex (s_stream_create_func *create, s_stream_put_func *put, s_stream_seek_func *seek, s_stream_tell_func *tell, s_stream_close_func *close)
 
int s_stream_seek (s_stream *stream, int offset, int whence, s_params *params)
 
int s_stream_tell (s_stream *stream, s_params *params)
 

Variables

static struct simage_stream_importerimporters
 
static struct simage_stream_exporterexporters
 

Function Documentation

◆ add_internal_importers()

static void add_internal_importers ( void  )
static

◆ add_internal_exporters()

static void add_internal_exporters ( void  )
static

◆ s_stream_open()

s_stream* s_stream_open ( const char *  filename,
s_params params 
)

◆ s_stream_create()

s_stream* s_stream_create ( const char *  filename,
s_params params 
)

◆ s_stream_get_buffer()

void* s_stream_get_buffer ( s_stream stream,
void *  buffer,
int *  size,
s_params params 
)

◆ s_stream_put_buffer()

int s_stream_put_buffer ( s_stream stream,
void *  buffer,
int  size,
s_params params 
)

◆ s_stream_close()

void s_stream_close ( s_stream stream)

◆ s_stream_destroy()

void s_stream_destroy ( s_stream stream)

◆ s_stream_params()

s_params* s_stream_params ( s_stream stream)

◆ s_stream_context_get()

void* s_stream_context_get ( s_stream stream)

◆ s_stream_context_set()

void s_stream_context_set ( s_stream stream,
void *  context 
)

◆ s_stream_importer_add()

void s_stream_importer_add ( s_stream_open_func open,
s_stream_get_func get,
s_stream_close_func close 
)

◆ s_stream_importer_add_ex()

void s_stream_importer_add_ex ( s_stream_open_func open,
s_stream_get_func get,
s_stream_seek_func seek,
s_stream_tell_func tell,
s_stream_close_func close 
)

◆ s_stream_exporter_add()

void s_stream_exporter_add ( s_stream_create_func create,
s_stream_put_func put,
s_stream_close_func close 
)

◆ s_stream_exporter_add_ex()

void s_stream_exporter_add_ex ( s_stream_create_func create,
s_stream_put_func put,
s_stream_seek_func seek,
s_stream_tell_func tell,
s_stream_close_func close 
)

◆ s_stream_seek()

int s_stream_seek ( s_stream stream,
int  offset,
int  whence,
s_params params 
)

◆ s_stream_tell()

int s_stream_tell ( s_stream stream,
s_params params 
)

Variable Documentation

◆ importers

struct simage_stream_importer* importers
static

◆ exporters

struct simage_stream_exporter* exporters
static