Enumerations | |
| enum | image_fileformat { FORMAT_NULL , FORMAT_ANY , FORMAT_PGM , FORMAT_PPM , FORMAT_JPG , FORMAT_NUMERIC , FORMAT_NUMERIC_COMPRESSED , FORMAT_PNG } |
Functions | |
| bool | read (ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
| bool | read (ImageOf< PixelBgr > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
| bool | read (ImageOf< PixelRgba > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
| bool | read (ImageOf< PixelMono > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
| bool | read (ImageOf< PixelFloat > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
| bool | write (const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
| bool | write (const ImageOf< PixelBgr > &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
| bool | write (const ImageOf< PixelRgba > &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
| bool | write (const ImageOf< PixelMono > &src, const std::string &dest, image_fileformat format=FORMAT_PGM) |
| bool | write (const ImageOf< PixelFloat > &src, const std::string &dest, image_fileformat format=FORMAT_NUMERIC) |
| bool | write (const Image &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
| bool | read (Sound &data, const char *filename) |
| Read a sound from a generic audio file. | |
| bool | read_bytestream (Sound &data, const char *bytestream, size_t streamsize, std::string format) |
| Read a sound from a byte array. | |
| bool | write_bytestream (const Sound &data, char *bytestream, size_t &streamsize, std::string format) |
| Writes a sound to a byte array. | |
| bool | write (const Sound &data, const char *filename) |
| Write a sound to file. | |
| bool | read_mp3_bytestream (Sound &data, const char *bytestream, size_t streamsize) |
| Read a sound from a byte array. | |
| bool | read_mp3_file (Sound &data, const char *filename) |
| Read a sound from a .mp3 audio file. | |
| bool | write_mp3_file (const Sound &data, const char *filename, size_t bitrate=64000) |
| Write a sound to a mp3 file. | |
| bool | write_mp3_bytestream (const Sound &data, char *bytestream, size_t &streamsize) |
| write a sound from a byte array. | |
| bool | read_wav_bytestream (Sound &data, const char *bytestream, size_t streamsize) |
| Read a sound from a byte array. | |
| bool | read_wav_file (Sound &data, const char *filename) |
| Read a sound from a .wav audio file. | |
| bool | write_wav_bytestream (const Sound &data, char *bytestream, size_t &streamsize) |
| Write a sound to a byte array. | |
| bool | write_wav_file (const Sound &data, const char *filename) |
| Write a sound to a .wav file. | |
| Enumerator | |
|---|---|
| FORMAT_NULL | |
| FORMAT_ANY | |
| FORMAT_PGM | |
| FORMAT_PPM | |
| FORMAT_JPG | |
| FORMAT_NUMERIC | |
| FORMAT_NUMERIC_COMPRESSED | |
| FORMAT_PNG | |
Definition at line 14 of file ImageFile.h.
| bool yarp::sig::file::read | ( | ImageOf< PixelBgr > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 958 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelFloat > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 1070 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelMono > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 1039 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelRgb > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 926 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelRgba > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 990 of file ImageFile.cpp.
Read a sound from a generic audio file.
| data | sound to read |
| filename | name of file (supported extensions: .wav, .mp3) |
Definition at line 35 of file SoundFile.cpp.
| bool yarp::sig::file::read_bytestream | ( | Sound & | data, |
| const char * | bytestream, | ||
| size_t | streamsize, | ||
| std::string | format | ||
| ) |
Read a sound from a byte array.
| data | sound to read (output) |
| bytestream | the byte array (input) |
| streamsize | size of the byte array (input) |
| format | format of the audio data (e.g., "wav", "mp3") |
Definition at line 56 of file SoundFile.cpp.
| bool yarp::sig::file::read_mp3_bytestream | ( | Sound & | data, |
| const char * | bytestream, | ||
| size_t | streamsize | ||
| ) |
Read a sound from a byte array.
| data | sound to read [output] |
| bytestream | the byte array [input] |
| streamsize | size of the byte array [input] |
Definition at line 712 of file SoundFileMp3.cpp.
Read a sound from a .mp3 audio file.
| data | sound to read |
| filename | name of file |
Definition at line 697 of file SoundFileMp3.cpp.
| bool yarp::sig::file::read_wav_bytestream | ( | Sound & | data, |
| const char * | bytestream, | ||
| size_t | streamsize | ||
| ) |
Read a sound from a byte array.
| data | sound to read [output] |
| bytestream | the byte array [input] |
| streamsize | size of the byte array [input] |
Definition at line 429 of file SoundFileWav.cpp.
Read a sound from a .wav audio file.
| data | sound to read |
| filename | name of file |
Definition at line 386 of file SoundFileWav.cpp.
| bool yarp::sig::file::write | ( | const Image & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_PPM |
||
| ) |
Definition at line 1205 of file ImageFile.cpp.
| bool yarp::sig::file::write | ( | const ImageOf< PixelBgr > & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_PPM |
||
| ) |
Definition at line 1123 of file ImageFile.cpp.
| bool yarp::sig::file::write | ( | const ImageOf< PixelFloat > & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_NUMERIC |
||
| ) |
Definition at line 1188 of file ImageFile.cpp.
| bool yarp::sig::file::write | ( | const ImageOf< PixelMono > & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_PGM |
||
| ) |
Definition at line 1171 of file ImageFile.cpp.
| bool yarp::sig::file::write | ( | const ImageOf< PixelRgb > & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_PPM |
||
| ) |
Definition at line 1102 of file ImageFile.cpp.
| bool yarp::sig::file::write | ( | const ImageOf< PixelRgba > & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_PPM |
||
| ) |
Definition at line 1147 of file ImageFile.cpp.
Write a sound to file.
The format is specified by the extension.
| data | sound to write |
| filename | name of file (supported extensions: .wav, .mp3) |
Definition at line 70 of file SoundFile.cpp.
| bool yarp::sig::file::write_bytestream | ( | const Sound & | data, |
| char * | bytestream, | ||
| size_t & | streamsize, | ||
| std::string | format | ||
| ) |
Writes a sound to a byte array.
| data | sound to write (intput) |
| bytestream | the returned byte array (output) |
| streamsize | the returned size of the byte array (output) |
| format | format of the audio data (e.g., "wav", "mp3") |
Definition at line 92 of file SoundFile.cpp.
| bool yarp::sig::file::write_mp3_bytestream | ( | const Sound & | data, |
| char * | bytestream, | ||
| size_t & | streamsize | ||
| ) |
write a sound from a byte array.
| data | sound to write [input] |
| bytestream | the byte array [output] |
| streamsize | the size of the byte array [output] |
Definition at line 718 of file SoundFileMp3.cpp.
| bool yarp::sig::file::write_mp3_file | ( | const Sound & | data, |
| const char * | filename, | ||
| size_t | bitrate = 64000 |
||
| ) |
Write a sound to a mp3 file.
| data | sound to write |
| filename | name of file |
| bitrate | the compressed audio bitrate |
Definition at line 290 of file SoundFileMp3.cpp.
| bool yarp::sig::file::write_wav_bytestream | ( | const Sound & | data, |
| char * | bytestream, | ||
| size_t & | streamsize | ||
| ) |
Write a sound to a byte array.
| data | sound to write [input] |
| bytestream | the byte array [output] |
| streamsize | the size of the byte array [output] |
Definition at line 435 of file SoundFileWav.cpp.