mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +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
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