diff --git a/client/qt_gl_render/yuvgl/main.cpp b/client/qt_gl_render/yuvgl/main.cpp index 7ee205e..4f34c4a 100644 --- a/client/qt_gl_render/yuvgl/main.cpp +++ b/client/qt_gl_render/yuvgl/main.cpp @@ -2,7 +2,11 @@ #include #include "cplaywidget.h" #include +#include "CameraCapture.h" +void CameraDataCallback(double ts, BYTE *dat, LONG size){ + qDebug()<<"reieve cnt"< names = gCam->EnumAllCamera(); + for(auto itr = names.begin();itr != names.end();itr++){ + qDebug()<SetCallBack(CameraDataCallback); + if(gCam->Open(*names.begin()) ){ + qDebug("open success"); + }else{ + qDebug("open fail"); + + } return a.exec(); } diff --git a/client/qt_gl_render/yuvgl/yuvgl.pro b/client/qt_gl_render/yuvgl/yuvgl.pro index 91a25e5..b988c22 100644 --- a/client/qt_gl_render/yuvgl/yuvgl.pro +++ b/client/qt_gl_render/yuvgl/yuvgl.pro @@ -8,6 +8,7 @@ QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets QT += network +QT += multimedia TARGET = yuvgl TEMPLATE = app @@ -30,6 +31,7 @@ SOURCES += \ mainwindow.cpp \ cplaywidget.cpp \ media/AACAudioCoder.cpp \ + media/CameraCapture.cpp \ utils/Base64.cpp \ utils/Debuger.cpp \ utils/utils.cpp @@ -48,8 +50,8 @@ message($$PWD/third/libs/) LIBS += -L$$PWD/third/libs/ LIBS += -lws2_32 LIBS += -lm -LIBS += -lavformat -lavdevice -lavcodec -lavutil -lswresample -lpthread -lbz2 -lm -lfdk-aac -lx264 -lOle32 -lbcrypt -liconv -lucrtbase - +LIBS += -lavformat -lavdevice -lavcodec -lavutil -lswresample -lpthread -lbz2 -lm -lfdk-aac -lx264 -lbcrypt -liconv -lucrtbase -lstrmiids -lGdi32 +LIBS += -lole32 -loleAut32 -lquartz -ldxguid -ldxapi # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin