Pictureviewer: Supported image formats

- Added function to determine the supported image formats
- Is required by moviebrowser.cpp (display screenshot)


git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1988 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 2e473b97d4
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2011-12-23 (Fri, 23 Dec 2011)

Origin message was:
------------------
* Pictureviewer: Supported image formats

- Added function to determine the supported image formats
- Is required by moviebrowser.cpp (display screenshot)


git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1988 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
Michael Liebmann
2011-12-23 06:10:00 +00:00
parent 17a83c456b
commit ebf97b103c
2 changed files with 22 additions and 0 deletions

View File

@@ -52,6 +52,26 @@ void CPictureViewer::add_format (int (*picsize) (const char *, int *, int *, int
fh_root = fhn;
}
void CPictureViewer::getSupportedImageFormats(std::vector<std::string>& exts)
{
#ifdef FBV_SUPPORT_PNG
exts.push_back(".png");
#endif
#ifdef FBV_SUPPORT_GIF
exts.push_back(".gif");
#endif
#ifdef FBV_SUPPORT_JPEG
exts.push_back(".jpg");
exts.push_back(".jpeg");
#endif
#ifdef FBV_SUPPORT_BMP
exts.push_back(".bmp");
#endif
#ifdef FBV_SUPPORT_CRW
exts.push_back(".crw");
#endif
}
void CPictureViewer::init_handlers (void)
{
#ifdef FBV_SUPPORT_PNG