Classes | |
| class | soundStreamReader |
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 *filename, size_t streamsize, std::string format) |
| Read a sound from 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 | read_wav_bytestream (Sound &data, const char *bytestream) |
| 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_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 950 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelFloat > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 1062 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelMono > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 1031 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelRgb > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 918 of file ImageFile.cpp.
| bool yarp::sig::file::read | ( | ImageOf< PixelRgba > & | dest, |
| const std::string & | src, | ||
| image_fileformat | format = FORMAT_ANY |
||
| ) |
Definition at line 982 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 * | filename, | ||
| size_t | streamsize, | ||
| std::string | format | ||
| ) |
Read a sound from a byte array.
| data | sound to read |
| bytestream | the byte array |
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 |
| bytestream | the byte array |
Definition at line 531 of file SoundFileMp3.cpp.
Read a sound from a .mp3 audio file.
| data | sound to read |
| filename | name of file |
Definition at line 516 of file SoundFileMp3.cpp.
Read a sound from a byte array.
| data | sound to read |
| bytestream | the byte array |
Definition at line 294 of file SoundFileWav.cpp.
Read a sound from a .wav audio file.
| data | sound to read |
| filename | name of file |
Definition at line 251 of file SoundFileWav.cpp.
| bool yarp::sig::file::write | ( | const Image & | src, |
| const std::string & | dest, | ||
| image_fileformat | format = FORMAT_PPM |
||
| ) |
Definition at line 1197 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 1115 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 1180 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 1163 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 1094 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 1139 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_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 241 of file SoundFileMp3.cpp.