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. More... | |
bool | read_bytestream (Sound &data, const char *filename, size_t streamsize, std::string format) |
Read a sound from a byte array. More... | |
bool | write (const Sound &data, const char *filename) |
Write a sound to file. More... | |
bool | read_mp3_bytestream (Sound &data, const char *bytestream, size_t streamsize) |
Read a sound from a byte array. More... | |
bool | read_mp3_file (Sound &data, const char *filename) |
Read a sound from a .mp3 audio file. More... | |
bool | write_mp3_file (const Sound &data, const char *filename, size_t bitrate=64000) |
Write a sound to a mp3 file. More... | |
bool | read_wav_bytestream (Sound &data, const char *bytestream) |
Read a sound from a byte array. More... | |
bool | read_wav_file (Sound &data, const char *filename) |
Read a sound from a .wav audio file. More... | |
bool | write_wav_file (const Sound &data, const char *filename) |
Write a sound to a .wav file. More... | |
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 947 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelFloat > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 1059 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelMono > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 1028 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelRgb > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 915 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelRgba > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 979 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | Sound & | data, |
const char * | filename | ||
) |
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 459 of file SoundFileMp3.cpp.
bool yarp::sig::file::read_mp3_file | ( | Sound & | data, |
const char * | filename | ||
) |
Read a sound from a .mp3 audio file.
data | sound to read |
filename | name of file |
Definition at line 444 of file SoundFileMp3.cpp.
bool yarp::sig::file::read_wav_bytestream | ( | Sound & | data, |
const char * | bytestream | ||
) |
Read a sound from a byte array.
data | sound to read |
bytestream | the byte array |
Definition at line 279 of file SoundFileWav.cpp.
bool yarp::sig::file::read_wav_file | ( | Sound & | data, |
const char * | filename | ||
) |
Read a sound from a .wav audio file.
data | sound to read |
filename | name of file |
Definition at line 236 of file SoundFileWav.cpp.
bool yarp::sig::file::write | ( | const Image & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_PPM |
||
) |
Definition at line 1194 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 1112 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 1177 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 1160 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 1091 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 1136 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const Sound & | data, |
const char * | filename | ||
) |
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 199 of file SoundFileMp3.cpp.
bool yarp::sig::file::write_wav_file | ( | const Sound & | data, |
const char * | filename | ||
) |
Write a sound to a .wav file.
data | sound to write |
filename | name of file |
Definition at line 285 of file SoundFileWav.cpp.