Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1327 closed enhancement (fixed)

Simple GUI for video API testing

Reported by: bennylp Owned by: nanang
Priority: major Milestone: release-2.0-alpha
Component: applications Version: 2.0-dev-branch
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Develop a really simple GUI app as proof of concept that the video API works

Change History (15)

comment:1 Changed 8 years ago by bennylp

  • Owner changed from bennylp to ming
  • Status changed from new to assigned

comment:2 Changed 8 years ago by bennylp

  • Owner changed from ming to bennylp

comment:3 Changed 8 years ago by bennylp

  • Owner changed from bennylp to nanang

comment:4 Changed 8 years ago by bennylp

  • Priority changed from normal to major

comment:5 Changed 8 years ago by nanang

(In [3686]) Re #1327: Very early version of simple video GUI, built on Qt, should run on win/lin/mac.

comment:6 Changed 8 years ago by bennylp

(In [3687]) More re #1327 (vidgui): added vidgui.pro and removed generated files from svn

comment:7 Changed 8 years ago by bennylp

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:8 Changed 8 years ago by bennylp

(In [3695]) Re #1327 (vidgui): fixed crash on Linux because SDL_Init() needs to be called prior to creating QApplication

comment:9 Changed 8 years ago by bennylp

(In [3697]) Re #1327 (vidgui):

  • fixed wrong default capture device (was 1)
  • fixed assertion if unable to open capture device
  • in qmake project file (vidgui.pro):
    • fixed INCLUDEPATH
    • added debug and release setting
    • added (disabled) static linking setting

comment:10 Changed 8 years ago by nanang

(In [3699]) Re #1327, some fixes on the simple GUI app:

  • Removed timer usage in resizing window, window resizing can be done real-time now (see r3698).
  • Fixed linking problem on Windows platform: undefined 'main' function.
  • Fixed build problem on Mac, compiling .cpp file containing objective C/C++ codes with g++ needs '-ObjC++' flag.
  • Minor changes in vidgui, e.g: function/variable rename, cleaning up unused/junk lines.

comment:11 Changed 8 years ago by bennylp

(In [3719]) Re #1327 (vidgui): added --silent option when invoking make otherwise it will capture gibberish when running make to regenerate the files

comment:12 Changed 8 years ago by nanang

(In [3721]) Re #1327 (vidgui): Fix stuck/hang when quiting vidgui without stopping video preview. Somehow the SDL will stuck (wait forever) in destroying its render window when the render window parent (VidWin?) hasn't been destroyed.

comment:13 Changed 8 years ago by nanang

(In [3726]) Re #1327:

  • Vidgui UI updates on Qt must be done in the UI thread, implemented this with Qt signal-slot mechanism.
  • VidWin::show() better be called internally by VidWin? class instead of MainWin?.
  • Fix QString to const char* issue, keeping the pointer returned by "QString::to*()::data()" won't work, the pointer actually points to a temporary data (lifetime issue).
  • Minor: cleaning up unused lines in vidgui.

comment:14 Changed 8 years ago by nanang

(In [3727]) Re #1327 (vidgui): Minor fix on windows VidWin::attach(), applying window style WS_CHILD to unattached/unparented SDL window causes strange behavior: after parented to a QWidget, it doesn't follow the parent/QWidget movement but its coordinate is relative to the parent/QWidget.

comment:15 Changed 8 years ago by bennylp

(In [3729]) Added build instruction to vidgui sample (re #1327)

Note: See TracTickets for help on using tickets.