This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Qimage trouble mlt revision 1218

Tags: None
(comma "," separated)
mridkash
Registered Member
Posts
15
Karma
0

Qimage trouble mlt revision 1218

Sat Nov 01, 2008 5:35 pm

I'm trying to compile mlt from latest svn revision 1218

The configure script says,

Configuring framework:
Configuring modules:
Configuring modules/avformat:
Configuring modules/core:
Configuring modules/dgraft:
Configuring modules/dv:
Configuring modules/effectv:
Configuring modules/feeds:
Configuring modules/fezzik:
Configuring modules/frei0r:
- frei0r plugin disabled. Install frei0r-plugins and make sure frei0r.h is available.
Configuring modules/gtk2:
Configuring modules/inigo:
Configuring modules/jackrack:
Configuring modules/kdenlive:
Configuring modules/kino:
Configuring modules/lumas:
Configuring modules/motion_est:
Configuring modules/normalize:
Configuring modules/oldfilm:
Configuring modules/plus:
Configuring modules/qimage:
Qt version 4.x detected, will compile Qt4 qimage producer
Include directory: /usr/include/qt4
Configuring modules/resample:
Configuring modules/sdl:
Configuring modules/sox:
Configuring modules/valerie:
Configuring modules/vmfx:
Configuring modules/vorbis:
Configuring modules/westley:
Configuring modules/xine:
Configuring inigo:
Configuring valerie:
Configuring miracle:
GPL License Used


And I get an error

make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mridul/Public/Software/Kdenlive/mlt/src/modules/inigo'
make[2]: Entering directory `/home/mridul/Public/Software/Kdenlive/mlt/src/modules/qimage'
cc -Wall -fPIC -DPIC -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I../../ -c -o producer_qimage.o producer_qimage.c
g++ -Wall -fPIC -DPIC -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I../../ -I/usr/include/qt4 -Wno-deprecated -c -o qimage_wrapper.o qimage_wrapper.cpp
qimage_wrapper.cpp: In function ‘void refresh_qimage(mlt_frame_s*, int, int)’:
qimage_wrapper.cpp:222: error: ‘Format_RGB888’ is not a member of ‘QImage’
make[2]: *** [qimage_wrapper.o] Error 1
make[2]: Leaving directory `/home/mridul/Public/Software/Kdenlive/mlt/src/modules/qimage'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/mridul/Public/Software/Kdenlive/mlt/src/modules'
make: *** [all] Error 1


Is this a coding error or I'm missing something? Please help



Thanks



mridkash
Registered Member
Posts
15
Karma
0

In the file https://mlt.svn.sourceforge.net/svnroot ... rapper.cpp I found this code, please check if this is correct

#ifdef USE_QT4
// Note - the original qimage is already safe and ready for destruction
QImage scaled = interp == 0 ? qimage->scaled( QSize( width, height)) : qimage->scaled( QSize(width, height), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
QImage temp;
bool hasAlpha = scaled.hasAlphaChannel();
if (hasAlpha)
temp = scaled.convertToFormat(QImage::Format_ARGB32);
else
temp = scaled.convertToFormat(QImage::Format_RGB888);
#endif


I've also checked the qimage.h file on my system and it does not have any reference to RGB888

public:
enum InvertMode { InvertRgb, InvertRgba };
enum Format {
Format_Invalid,
Format_Mono,
Format_MonoLSB,
Format_Indexed8,
Format_RGB32,
Format_ARGB32,
Format_ARGB32_Premultiplied,
Format_RGB16,


mridkash
Registered Member
Posts
15
Karma
0

I modified the original file and changed the RGB888 to RGB32 and it worked all right.





Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]