Classes | |
struct | image_t |
this is a basic image object. More... | |
class | ImageLoader |
anyone wanting to support loading an image type must provide this interface. More... | |
class | MidiEvent |
class | MidiReceiver |
class | MidiFile |
Typedefs | |
typedef int | boolean_t |
typedef std::multimap < unsigned long, MidiEvent > | MidiEventMap |
Enumerations | |
enum | eColorFormat { eColorFormat_Grayscale = 1, eColorFormat_GrayAlpha = 2, eColorFormat_RGB = 5, eColorFormat_RGBA = 6, eColorFormat_Invalid = 0 } |
refers to what sort of data you have per-pixel in the image More... | |
Functions | |
static Registry * | getRegistry (void) |
static void | init_source (IN struct jpeg_decompress_struct *pds) |
static boolean_t | fill_input_buffer (IN struct jpeg_decompress_struct *pds) |
static void | skip_input_data (IN struct jpeg_decompress_struct *pds, IN long bytes) |
static void | term_source (IN struct jpeg_decompress_struct *pds) |
static void | setJpegSourceStream (IN struct jpeg_decompress_struct &cinfo, IN std::istream &stream) |
static void | my_error_exit (IN j_common_ptr cinfo) |
void | readJpegFromStream (IO std::istream &stream, OUT image_t &image) |
void | ParseMidi (IN MidiReceiver *receiver, IN const byte_t *buffer, IN long bytes, OUT long *offset) |
void | PrintEvent (IN FILE *output, IN const MidiEvent &event) throw () |
void | WriteByte (IN FILE *file, IN byte_t byte) throw () |
void | WriteWord (IN FILE *file, IN word_t word) throw () |
void | WriteDword (IN FILE *file, IN dword_t dword) throw () |
int | WriteVariable (IN FILE *file, IN dword_t value) throw () |
void | WriteChunkHeader (IN FILE *file, IN const char *name, IN dword_t length) throw () |
static void | AddNote (IN MidiFile *file, IN dword_t tick, IN int channel, IN int note, IN int velocity, IN bool note_on) throw () |
void | AddNoteOn (IN MidiFile *file, dword_t tick, int channel, int note, int velocity) throw () |
void | AddNoteOff (IN MidiFile *file, dword_t tick, int channel, int note, int velocity) throw () |
void | addNoteOn (IN MidiFile *file, dword_t tick, int channel, int note, int velocity) |
void | addNoteOff (IN MidiFile *file, dword_t tick, int channel, int note, int velocity) |
void | get_token (IN const char *&str, OUT std::string &token) throw () |
MidiEvent::eStatus | get_status (IN const char *status) |
HANDLER_ENTRY (MidiImpl,"add_trigger", AddTrigger) MidiImpl | |
error_t | CreateMidiObject (OUT smart_ptr< objdir::LocalObject > &midi) throw () |
static void | pngReadFromStream (png_structp ctx, png_bytep data, png_size_t bytes) |
static int | getBytesPerPixel (IN int ct) throw () |
static eColorFormat | getColorFormat (IN int pngColorType) throw () |
void | readPngFromStream (IO std::istream &stream, OUT image_t &png) |
bool | loadImage (IN nstream::Manager *mgr, IN const char *name, OUT image_t &image) |
use this nstream-based routine to load images (see Named Stream Management). | |
smart_ptr< ImageLoader > | createJpegImageLoader (void) |
create an ImageLoader for JPEG images | |
smart_ptr< ImageLoader > | createPngImageLoader (void) |
creates an image loader for use by the Image Library library. | |
Variables | |
static const int | s_bufferSize = 4096 |
static const int | s_DataSize [8] |
static const char * | s_EventName [8] |
static const char * | s_DataName [8][2] |
static const int | s_MaxTracks = 16 |
static const long | s_usec_per_minute = 60 * 1000 * 1000 |
static const char * | s_MidiIn = "/dev/midi" |
static const status_record | s_StatusTable [] |
typedef int media::boolean_t |
Definition at line 78 of file wave-jpeg.cpp.
typedef std::multimap<unsigned long, MidiEvent> media::MidiEventMap |
Definition at line 27 of file midi_file.h.
static Registry* media::getRegistry | ( | void | ) | [static] |
Definition at line 152 of file wave-image.cpp.
static void media::init_source | ( | IN struct jpeg_decompress_struct * | pds | ) | [static] |
Definition at line 66 of file wave-jpeg.cpp.
static boolean_t media::fill_input_buffer | ( | IN struct jpeg_decompress_struct * | pds | ) | [static] |
Definition at line 83 of file wave-jpeg.cpp.
static void media::skip_input_data | ( | IN struct jpeg_decompress_struct * | pds, | |
IN long | bytes | |||
) | [static] |
Definition at line 118 of file wave-jpeg.cpp.
static void media::term_source | ( | IN struct jpeg_decompress_struct * | pds | ) | [static] |
Definition at line 143 of file wave-jpeg.cpp.
static void media::setJpegSourceStream | ( | IN struct jpeg_decompress_struct & | cinfo, | |
IN std::istream & | stream | |||
) | [static] |
Definition at line 155 of file wave-jpeg.cpp.
static void media::my_error_exit | ( | IN j_common_ptr | cinfo | ) | [static] |
Definition at line 201 of file wave-jpeg.cpp.
void media::readJpegFromStream | ( | IO std::istream & | stream, | |
OUT image_t & | image | |||
) |
Definition at line 219 of file wave-jpeg.cpp.
void media::ParseMidi | ( | IN MidiReceiver * | receiver, | |
IN const byte_t * | buffer, | |||
IN long | bytes, | |||
OUT long * | offset | |||
) |
void media::PrintEvent | ( | IN FILE * | output, | |
IN const MidiEvent & | event | |||
) | throw () |
void media::WriteByte | ( | IN FILE * | file, | |
IN byte_t | byte | |||
) | throw () |
Definition at line 30 of file midi_file.cpp.
void media::WriteWord | ( | IN FILE * | file, | |
IN word_t | word | |||
) | throw () |
Definition at line 45 of file midi_file.cpp.
void media::WriteDword | ( | IN FILE * | file, | |
IN dword_t | dword | |||
) | throw () |
Definition at line 67 of file midi_file.cpp.
int media::WriteVariable | ( | IN FILE * | file, | |
IN dword_t | value | |||
) | throw () |
Definition at line 90 of file midi_file.cpp.
void media::WriteChunkHeader | ( | IN FILE * | file, | |
IN const char * | name, | |||
IN dword_t | length | |||
) | throw () |
Definition at line 131 of file midi_file.cpp.
static void media::AddNote | ( | IN MidiFile * | file, | |
IN dword_t | tick, | |||
IN int | channel, | |||
IN int | note, | |||
IN int | velocity, | |||
IN bool | note_on | |||
) | throw () [static] |
Definition at line 561 of file midi_file.cpp.
void media::AddNoteOn | ( | IN MidiFile * | file, | |
dword_t | tick, | |||
int | channel, | |||
int | note, | |||
int | velocity | |||
) | throw () |
Definition at line 595 of file midi_file.cpp.
void media::AddNoteOff | ( | IN MidiFile * | file, | |
dword_t | tick, | |||
int | channel, | |||
int | note, | |||
int | velocity | |||
) | throw () |
Definition at line 611 of file midi_file.cpp.
void media::addNoteOn | ( | IN MidiFile * | file, | |
dword_t | tick, | |||
int | channel, | |||
int | note, | |||
int | velocity | |||
) |
void media::addNoteOff | ( | IN MidiFile * | file, | |
dword_t | tick, | |||
int | channel, | |||
int | note, | |||
int | velocity | |||
) |
void media::get_token | ( | IN const char *& | str, | |
OUT std::string & | token | |||
) | throw () |
Definition at line 47 of file midi_obj.cpp.
MidiEvent::eStatus media::get_status | ( | IN const char * | status | ) |
Definition at line 69 of file midi_obj.cpp.
media::HANDLER_ENTRY | ( | MidiImpl | , | |
"add_trigger" | , | |||
AddTrigger | ||||
) |
Definition at line 157 of file midi_obj.cpp.
error_t media::CreateMidiObject | ( | OUT smart_ptr< objdir::LocalObject > & | midi | ) | throw () |
static void media::pngReadFromStream | ( | png_structp | ctx, | |
png_bytep | data, | |||
png_size_t | bytes | |||
) | [static] |
Definition at line 45 of file wave-png.cpp.
static int media::getBytesPerPixel | ( | IN int | ct | ) | throw () [static] |
Definition at line 69 of file wave-png.cpp.
static eColorFormat media::getColorFormat | ( | IN int | pngColorType | ) | throw () [static] |
Definition at line 89 of file wave-png.cpp.
void media::readPngFromStream | ( | IO std::istream & | stream, | |
OUT image_t & | png | |||
) |
Definition at line 109 of file wave-png.cpp.
const int media::s_bufferSize = 4096 [static] |
Definition at line 41 of file wave-jpeg.cpp.
const int media::s_DataSize[8] [static] |
const char* media::s_EventName[8] [static] |
const char* media::s_DataName[8][2] [static] |
const int media::s_MaxTracks = 16 [static] |
Definition at line 18 of file midi_file.cpp.
const long media::s_usec_per_minute = 60 * 1000 * 1000 [static] |
Definition at line 19 of file midi_file.cpp.
const char* media::s_MidiIn = "/dev/midi" [static] |
Definition at line 16 of file midi_obj.cpp.
const status_record media::s_StatusTable[] [static] |
{ { MidiEvent::eNoteOff , "note_off" }, { MidiEvent::eNoteOn , "note_on" }, { MidiEvent::eNoteAfter , "note_after" }, { MidiEvent::eControl , "control" }, { MidiEvent::eProgram , "program" }, { MidiEvent::eChannelAfter , "channel_after" }, { MidiEvent::ePitch , "pitch" }, { MidiEvent::eInvalid , NULL }, }
Definition at line 24 of file midi_obj.cpp.