diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9author/k9avidecode.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9author/k9avidecode.cpp')
-rw-r--r-- | k9author/k9avidecode.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp index b89acc1..22019b4 100644 --- a/k9author/k9avidecode.cpp +++ b/k9author/k9avidecode.cpp @@ -19,7 +19,7 @@ #include <libavformat/avformat.h> #endif -#include <qimage.h> +#include <tqimage.h> #include <dlfcn.h> #include <klocale.h> #include <cstdlib> @@ -41,18 +41,18 @@ void av_free_packet(AVPacket *pkt) #endif #endif -k9AviDecode::k9AviDecode(QObject *parent, const char *name) - : QObject(parent, name) { +k9AviDecode::k9AviDecode(TQObject *tqparent, const char *name) + : TQObject(tqparent, name) { if (glibref==0) { CodecHandle=dlopen("libavcodec.so",RTLD_LAZY | RTLD_GLOBAL); FormatHandle=dlopen("libavformat.so",RTLD_LAZY | RTLD_GLOBAL); } if (!CodecHandle) { - m_error =i18n("Cannot open then library %1").arg("libavcodec"); + m_error =i18n("Cannot open then library %1").tqarg("libavcodec"); return; } if (!FormatHandle) { - m_error =i18n("Cannot open then library %1").arg("libavformat"); + m_error =i18n("Cannot open then library %1").tqarg("libavformat"); return; } m_error=""; @@ -98,14 +98,14 @@ k9AviDecode::~k9AviDecode() { #include "k9avidecode.moc" -bool k9AviDecode::open(const QString & _fileName) { +bool k9AviDecode::open(const TQString & _fileName) { m_error=""; if (m_opened) close(); // Open video file if (av_open_input_file(&m_FormatCtx, _fileName.utf8(), NULL, 0, NULL)!=0) { - m_error=i18n("Couldn't open the file %1").arg(_fileName); + m_error=i18n("Couldn't open the file %1").tqarg(_fileName); return false; // Couldn't open file} } // Retrieve stream information @@ -211,7 +211,7 @@ void k9AviDecode::readFrame(double _seconds) { (AVPicture*)m_Frame, m_CodecCtx->pix_fmt, m_CodecCtx->width, m_CodecCtx->height); - // convert frame to QImage + // convert frame to TQImage SaveFrame(m_FrameRGB, m_CodecCtx->width, m_CodecCtx->height); } @@ -225,7 +225,7 @@ void k9AviDecode::readFrame(double _seconds) { } void k9AviDecode::SaveFrame(AVFrame *pFrame, int width, int height) { - QImage pix; + TQImage pix; int len =(int) (3*width*height); char c[255]; // Write header @@ -268,11 +268,11 @@ bool k9AviDecode::opened() const { } -QString k9AviDecode::getFileName() const { +TQString k9AviDecode::getFileName() const { return m_fileName; } -QString k9AviDecode::getError() const { +TQString k9AviDecode::getError() const { return m_error; } |