private:\r
VMediaView *_parent;\r
VPreader * _reader;\r
- WJpeg::JpegControl *_ctl;\r
+ WJpegComplex::JpegControl *_ctl;\r
Surface *_sfc;\r
Colour _colour;\r
bool _interrupted;\r
\r
//picture settings\r
showtime=INITIAL_SHOWTIME;\r
- rotate=WJpeg::ROT_0;\r
+ rotate=WJpegComplex::ROT_0;\r
currentScale=1;\r
options=MediaOptions::getInstance();\r
VColourTuner::initFactors();\r
ctl.enlarge=false;\r
ctl.scaleafter=options->getIntOption("ScaleFactor");\r
const char * mode=options->getStringOption("PictureMode");\r
- if (strcmp(mode,"clip") == 0) ctl.mode=WJpeg::CROP;\r
- else if (strcmp(mode,"letter") == 0) ctl.mode=WJpeg::LETTER;\r
- else if (strcmp(mode,"clipfactor") == 0) ctl.mode=WJpeg::CROPPERCENT;\r
+ if (strcmp(mode,"clip") == 0) ctl.mode=WJpegComplex::CROP;\r
+ else if (strcmp(mode,"letter") == 0) ctl.mode=WJpegComplex::LETTER;\r
+ else if (strcmp(mode,"clipfactor") == 0) ctl.mode=WJpegComplex::CROPPERCENT;\r
ctl.scaleAmount=options->getIntOption("PictureSize");\r
if (ctl.scaleAmount < 10) ctl.scaleAmount=10;\r
if (ctl.scaleAmount > 200) ctl.scaleAmount=200;\r
case Remote::DF_UP:\r
case Remote::UP:\r
case Remote::SKIPBACK:\r
- rotate=WJpeg::ROT_0;\r
+ rotate=WJpegCmplex::ROT_0;\r
showPicture(VMediaList::MV_PREV,slideshow,true);\r
rt= 2;\r
break;\r
case Remote::DF_DOWN:\r
case Remote::DOWN:\r
case Remote::SKIPFORWARD:\r
- rotate=WJpeg::ROT_0;\r
+ rotate=WJpegComplex::ROT_0;\r
showPicture(VMediaList::MV_NEXT,slideshow,true);\r
rt= 2;\r
break;\r
case Remote::PLAY:\r
{\r
slideshow=true;\r
- rotate=WJpeg::ROT_0;\r
+ rotate=WJpegComplex::ROT_0;\r
showPicture(VMediaList::MV_NEXT,slideshow,true);\r
rt= 2;\r
}\r
}\r
else {\r
slideshow=true;\r
- rotate=WJpeg::ROT_0;\r
+ rotate=WJpegComplex::ROT_0;\r
showPicture(VMediaList::MV_NEXT,slideshow,true);\r
}\r
rt= 2;\r
break;\r
case Remote::RED:\r
switch(rotate) {\r
- case WJpeg::ROT_0:\r
+ case WJpegComplex::ROT_0:\r
rotate=WJpeg::ROT_90;\r
break;\r
- case WJpeg::ROT_90:\r
- rotate=WJpeg::ROT_180;\r
+ case WJpegComplex::ROT_90:\r
+ rotate=WJpegComplex::ROT_180;\r
break;\r
- case WJpeg::ROT_180:\r
- rotate=WJpeg::ROT_270;\r
+ case WJpegComplex::ROT_180:\r
+ rotate=WJpegComplex::ROT_270;\r
break;\r
- case WJpeg::ROT_270:\r
- rotate=WJpeg::ROT_0;\r
+ case WJpegComplex::ROT_270:\r
+ rotate=WJpegComplex::ROT_0;\r
break;\r
}\r
showPicture(VMediaList::MV_NONE,slideshow,true);\r
break;\r
case Remote::BLUE:\r
switch (cropmode) {\r
- case WJpeg::CROP:\r
+ case WJpegComplex::CROP:\r
cropmode=WJpeg::LETTER;\r
break;\r
- case WJpeg::LETTER:\r
+ case WJpegComplex::LETTER:\r
cropmode=WJpeg::CROPPERCENT;\r
break;\r
default:\r
- cropmode=WJpeg::CROP;\r
+ cropmode=WJpegComplex::CROP;\r
break;\r
}\r
showPicture(VMediaList::MV_NONE,slideshow,true);\r
//if (! audioEnabled) {\r
if (true) {\r
if (slideshow) {\r
- rotate=WJpeg::ROT_0;\r
+ rotate=WJpegComplex::ROT_0;\r
showPicture(VMediaList::MV_NEXT,true,false);\r
startSlideshow();\r
}\r
//now we can really draw\r
//get the surface for drawing\r
Surface * drawSurface=NULL;\r
- WJpeg::JpegControl *drawCtl=NULL;\r
+ WJpegComplex::JpegControl *drawCtl=NULL;\r
getDrawingParam(drawSurface,drawCtl);\r
drawCtl->error[0]=0;\r
drawCtl->rotation=rotate;\r
return 0;\r
#else\r
//here we could hand this over to the drawing thread\r
- bool ok=WJpeg::drawJpeg(drawCtl,drawSurface,reader,pictureBack);\r
+ bool ok=WJpegComplex::drawJpeg(drawCtl,drawSurface,reader,pictureBack);\r
drawingDone(!ok);\r
return ok?0:1;\r
#endif\r
//modes should come from mediaoptions...\r
const char *mode=NULL;\r
switch (currentControl->mode) {\r
- case WJpeg::CROPPERCENT:\r
+ case WJpegComplex::CROPPERCENT:\r
mode="clipfactor";\r
break;\r
- case WJpeg::LETTER:\r
+ case WJpegComplex::LETTER:\r
mode="letter";\r
break;\r
default:\r
updatePictureBanner();\r
}\r
\r
-void VMediaView::getDrawingParam(Surface *&sfc,WJpeg::JpegControl *&c){\r
+void VMediaView::getDrawingParam(Surface *&sfc,WJpegComplex::JpegControl *&c){\r
if (secondSurface()) {\r
//we currently display on sfc2\r
sfc=sfc1;\r
{
friend class VPReader;
public:
- ~VMediaView();
+ virtual ~VMediaView();
void processMessage(Message* m);
int handleCommand(int command);
void updatePictureInfo();
void destroyInfo(bool fromTimer=false);
int loadPicture(Media *m,bool forceBanner);
- void getDrawingParam(Surface *&sfc,WJpeg::JpegControl *&ctl);
+ void getDrawingParam(Surface *&sfc,WJpegComplex::JpegControl *&ctl);
void switchSurface(); //will switch surface and currentControl
void drawingDone(bool hasError);
const char * pictureError;
Media * currentPicture;
const static int INITIAL_SHOWTIME=5;
- WJpeg::Rotation rotate;
- WJpeg::ScaleMode cropmode;
+ WJpegComplex::Rotation rotate;
+ WJpegComplex::ScaleMode cropmode;
VInfo * info;
static Colour pictureBack;
static Colour infoBack;
static Colour audioBannerBack;
int currentScale;
MediaOptions *options;
- WJpeg::JpegControl ctl;
- WJpeg::JpegControl ctl2;
- WJpeg::JpegControl *currentControl;
+ WJpegComplex::JpegControl ctl;
+ WJpegComplex::JpegControl ctl2;
+ WJpegComplex::JpegControl *currentControl;
Surface *sfc1;
Surface *sfc2;
//which is the active surface