svn path=/trunk/kdenlive/; revision=4976
HRESULT CDeckLinkGLWidget::QueryInterface (REFIID iid, LPVOID *ppv)
{
HRESULT CDeckLinkGLWidget::QueryInterface (REFIID iid, LPVOID *ppv)
{
*ppv = NULL;
return E_NOINTERFACE;
}
*ppv = NULL;
return E_NOINTERFACE;
}
HRESULT DeckLinkCaptureDelegate::VideoInputFormatChanged(BMDVideoInputFormatChangedEvents events, IDeckLinkDisplayMode *mode, BMDDetectedVideoInputFormatFlags)
{
HRESULT DeckLinkCaptureDelegate::VideoInputFormatChanged(BMDVideoInputFormatChangedEvents events, IDeckLinkDisplayMode *mode, BMDDetectedVideoInputFormatFlags)
{
+ Q_UNUSED(events);
+ Q_UNUSED(mode);
CaptureHandler::CaptureHandler(QVBoxLayout *lay, QWidget *parent):
CaptureHandler::CaptureHandler(QVBoxLayout *lay, QWidget *parent):
- m_layout(lay)
- , m_parent(parent)
- , previewView(NULL)
- , deckLinkInput(NULL)
- , displayModeIterator(NULL)
- , deckLink(NULL)
- , displayMode(NULL)
- , delegate(NULL)
- , deckLinkIterator(NULL)
+ previewView(NULL),
+ deckLinkIterator(NULL),
+ delegate(NULL),
+ displayMode(NULL),
+ deckLink(NULL),
+ deckLinkInput(NULL),
+ displayModeIterator(NULL),
+ m_layout(lay),
+ m_parent(parent)
BMDPixelFormat pixelFormat = bmdFormat8BitYUV;
int displayModeCount = 0;
int exitStatus = 1;
BMDPixelFormat pixelFormat = bmdFormat8BitYUV;
int displayModeCount = 0;
int exitStatus = 1;
bool foundDisplayMode = false;
bool foundDisplayMode = false;
/*pthread_mutex_init(&sleepMutex, NULL);
pthread_cond_init(&sleepCond, NULL);*/
/*pthread_mutex_init(&sleepMutex, NULL);
pthread_cond_init(&sleepCond, NULL);*/
{
public:
DeckLinkCaptureDelegate();
{
public:
DeckLinkCaptureDelegate();
- ~DeckLinkCaptureDelegate();
+ virtual ~DeckLinkCaptureDelegate();
- virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; }
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID /*iid*/, LPVOID */*ppv*/) { return E_NOINTERFACE; }
virtual ULONG STDMETHODCALLTYPE AddRef(void);
virtual ULONG STDMETHODCALLTYPE Release(void);
virtual HRESULT STDMETHODCALLTYPE VideoInputFormatChanged(BMDVideoInputFormatChangedEvents, IDeckLinkDisplayMode*, BMDDetectedVideoInputFormatFlags);
virtual ULONG STDMETHODCALLTYPE AddRef(void);
virtual ULONG STDMETHODCALLTYPE Release(void);
virtual HRESULT STDMETHODCALLTYPE VideoInputFormatChanged(BMDVideoInputFormatChangedEvents, IDeckLinkDisplayMode*, BMDDetectedVideoInputFormatFlags);
result = displayMode->GetName((const char **) &displayModeString);
if (result == S_OK)
{
result = displayMode->GetName((const char **) &displayModeString);
if (result == S_OK)
{
int modeWidth;
int modeHeight;
BMDTimeValue frameRateDuration;
BMDTimeScale frameRateScale;
int modeWidth;
int modeHeight;
BMDTimeValue frameRateDuration;
BMDTimeScale frameRateScale;
- int pixelFormatIndex = 0; // index into the gKnownPixelFormats / gKnownFormatNames arrays
- BMDDisplayModeSupport displayModeSupport;
+ //int pixelFormatIndex = 0; // index into the gKnownPixelFormats / gKnownFormatNames arrays
+ //BMDDisplayModeSupport displayModeSupport;
// Obtain the display mode's properties
// Obtain the display mode's properties
+ virtual ~IUnknown() {};
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) = 0;
virtual ULONG STDMETHODCALLTYPE AddRef(void) = 0;
virtual ULONG STDMETHODCALLTYPE Release(void) = 0;
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) = 0;
virtual ULONG STDMETHODCALLTYPE AddRef(void) = 0;
virtual ULONG STDMETHODCALLTYPE Release(void) = 0;
QRectF r = rect().normalized();
QPointF p = pos();
QPointF mousePosInRect = mapFromScene(mousePos);
QRectF r = rect().normalized();
QPointF p = pos();
QPointF mousePosInRect = mapFromScene(mousePos);
+ QPointF diff = mousePos - m_clickPoint;
+ m_clickPoint = mousePos;
switch (m_mode) {
case ResizeTopLeft:
if (mousePos.x() < p.x() + r.height() && mousePos.y() < p.y() + r.height()) {
switch (m_mode) {
case ResizeTopLeft:
if (mousePos.x() < p.x() + r.height() && mousePos.y() < p.y() + r.height()) {
- QPointF diff = mousePos - m_clickPoint;
- m_clickPoint = mousePos;
moveBy(diff.x(), diff.y());
m_modified = true;
break;
moveBy(diff.x(), diff.y());
m_modified = true;
break;
}
} else {
switch (getMode(event->scenePos().toPoint())) {
}
} else {
switch (getMode(event->scenePos().toPoint())) {
void OnMonitorRectItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
void OnMonitorRectItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
painter->setPen(pen());
painter->drawRect(option->rect);
painter->setPen(pen());
painter->drawRect(option->rect);
if (!existing.isEmpty()) {
// Sequence already exists, update
QString id = existing.at(0)->getId();
if (!existing.isEmpty()) {
// Sequence already exists, update
QString id = existing.at(0)->getId();
- ProjectItem *item = getItemById(id);
+ //ProjectItem *item = getItemById(id);
QMap <QString, QString> oldprops;
QMap <QString, QString> newprops;
int ttl = existing.at(0)->getProperty("ttl").toInt();
QMap <QString, QString> oldprops;
QMap <QString, QString> newprops;
int ttl = existing.at(0)->getProperty("ttl").toInt();
#include <QAction>
#include <QWheelEvent>
#include <QAction>
#include <QWheelEvent>
-MyLabel::MyLabel(QWidget *parent)
+MyLabel::MyLabel(QWidget *parent) :
+ QLabel(parent)
//virtual
void MyLabel::paintEvent( QPaintEvent * event)
{
//virtual
void MyLabel::paintEvent( QPaintEvent * event)
{
QRect r(0, 0, width(), height());
QPainter p(this);
p.fillRect(r, QColor(KdenliveSettings::window_background()));
QRect r(0, 0, width(), height());
QPainter p(this);
p.fillRect(r, QColor(KdenliveSettings::window_background()));