ADTF  3.18.3
video_widget.h
Go to the documentation of this file.
1 
8 /*
9  * This file depends on Qt which is licensed under LGPLv3.
10  * See ADTF_DIR/3rdparty/qt5 and doc/license for detailed information.
11  */
12 
13 #pragma once
14 #include <adtfucom3/adtf_ucom3.h>
17 
18 #include <QWidget>
19 
20 namespace adtf
21 {
22 namespace ui
23 {
24 namespace widget
25 {
26 namespace osborn
27 {
28 
29 class cVideoWidget : public QWidget
30 {
31  public:
32  cVideoWidget(QWidget* pParent);
33  virtual ~cVideoWidget();
34 
35  void UpdateSample(adtf::streaming::tStreamImageFormat& sFormat,
37  void Clear();
38  void SetFitToScreen(bool bEnabled);
39  void SetKeepRatio(bool bEnabled);
40 
41  protected:
42 
43  void paintEvent(QPaintEvent* pPaintEvent);
44 
45  private:
46  adtf::streaming::tStreamImageFormat m_sCurrentFormat;
47  bool m_bFitToScreen;
48  bool m_bKeepRatio;
49 
50  QImage::Format m_eFormat;
51  bool m_bNeedFlip;
52 
53  QImage m_oCurrentImage;
54  QString m_strError;
55 
56 };
57 
58 }
60 }
61 }
62 }
Copyright © Audi Electronics Venture GmbH.
Base object pointer to realize binary compatible reference counting in interface methods.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Simple Stream Type and Stream Meta Type definition for video frames or an image sequence as a conveni...