Class MemorySetup

java.lang.Object
  |
  +--MemorySetup

public class MemorySetup
extends java.lang.Object


Field Summary
static int map_fd
           
static int mem_fd
           
 
Constructor Summary
MemorySetup()
          Class constructor.
 
Method Summary
(package private) static void ()
           
static int Ccreate_memory(int buffer_size)
           
static int Cdata_check(int fd, int mem_word_length)
           
static void Cfree_memory(int fd)
           
static int Cget_memory_word(int fd, int addr)
           
static int Cmap_memory(int pci_fd, int buffer_size)
           
static int Cprint_memory(int fd, int bytes)
           
static int[] Craw2java(int fd, int[] pix, int row)
           
static void create_memory(int buffer_size)
          This method creates a buffer for image storage.
static void Cswap_memory(int fd, int mem_length)
           
static void Cunmap_memory(int map_fd, int buffer_size)
           
static void free_memory()
          This class releases the allocated image buffer memory back to the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

mem_fd

public static int mem_fd

map_fd

public static int map_fd
Constructor Detail

MemorySetup

public MemorySetup()
Class constructor.
Method Detail

Ccreate_memory

public static int Ccreate_memory(int buffer_size)

Cmap_memory

public static int Cmap_memory(int pci_fd,
                              int buffer_size)

Cunmap_memory

public static void Cunmap_memory(int map_fd,
                                 int buffer_size)

Cget_memory_word

public static int Cget_memory_word(int fd,
                                   int addr)

Cfree_memory

public static void Cfree_memory(int fd)

Cswap_memory

public static void Cswap_memory(int fd,
                                int mem_length)

Cprint_memory

public static int Cprint_memory(int fd,
                                int bytes)

Cdata_check

public static int Cdata_check(int fd,
                              int mem_word_length)

Craw2java

public static int[] Craw2java(int fd,
                              int[] pix,
                              int row)

static void ()

create_memory

public static void create_memory(int buffer_size)
This method creates a buffer for image storage.
Parameters:
buffer_size - The size (in bytes) of the image buffer.

free_memory

public static void free_memory()
This class releases the allocated image buffer memory back to the system.