mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user