www.pudn.com > UVC.zip > processImage.h, change:2014-11-30,size:1125b


#ifndef PROCESSIMAGE_H
#define PROCESSIMAGE_H

#include <QThread>
#include <QtGui>
#include "videodevice.h"
#include "ui_mainwindow.h"
#define LED_LIGHT 1
#define LED_DARk  0
#include"data.h"
#include "run.h"
#include"msg_def.h"
#include"fcntl.h"
#include"data_def.h"
#include"c_socket.h"
#include"database.h"

class ProcessImage : public QMainWindow ,public Ui_MainWindow
{
     Q_OBJECT
public:

    ProcessImage(QWidget *parent=0);
    ~ProcessImage();
//private:
//    Ui::MainWindow *ui;
private:
    CRcv_thread *run;
    QPainter *painter;
    //QLabel *label;
    QImage *frame;
    //QPixmap *frame;
    QTimer *timer;
    int rs;
    uchar *pp;
    uchar * p;
    bool jpeg_exited;
    unsigned int len;
    int convert_yuv_to_rgb_pixel(int y, int u, int v);
    int convert_yuv_to_rgb_buffer(unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height);
  //  int get_picture(unsigned char *rgb, unsigned int width, unsigned int height);
    VideoDevice *vd;

private slots:
    void paintEvent(QPaintEvent *);
    void display_error(QString err);
    void play_date(QString str);


};

#endif