Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: timvideos/gst-switch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 127a5e510e35
Choose a base ref
...
head repository: timvideos/gst-switch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fe53a5a4dc02
Choose a head ref

Commits on May 4, 2013

  1. add more dependencies apt-get for staging

    Duzy Chan committed May 4, 2013
    Copy the full SHA
    0cac748 View commit details

Commits on May 6, 2013

  1. add gst-switch-ptz program for local PTZ control

    Duzy Chan committed May 6, 2013

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    08e8c93 View commit details
  2. add missing file

    Duzy Chan committed May 6, 2013
    Copy the full SHA
    c3c0723 View commit details

Commits on May 7, 2013

  1. make the control buttons bigger; open device

    Duzy Chan committed May 7, 2013
    Copy the full SHA
    5666088 View commit details
  2. apply protocol from command line

    Duzy Chan committed May 7, 2013
    Copy the full SHA
    7d65573 View commit details
  3. fix segfault when unsupported protocol provided

    Duzy Chan committed May 7, 2013
    Copy the full SHA
    7f16cde View commit details
  4. add libv4l-dev to the stage script

    Duzy Chan committed May 7, 2013
    Copy the full SHA
    1d9504b View commit details
  5. allow specifying video capture from command line

    Duzy Chan committed May 7, 2013
    Copy the full SHA
    c6054cc View commit details

Commits on May 8, 2013

  1. fix conflict options -p and -video

    Duzy Chan committed May 8, 2013
    Copy the full SHA
    76bd07e View commit details
  2. set PTZ range [0,99], 50 for centering

    Duzy Chan committed May 8, 2013
    Copy the full SHA
    20ed56f View commit details
  3. fix mistaking zoom action

    Duzy Chan committed May 8, 2013
    Copy the full SHA
    552dcb4 View commit details
  4. make step of 10

    Duzy Chan committed May 8, 2013
    Copy the full SHA
    b716f37 View commit details
  5. using zooming buttons

    Duzy Chan committed May 8, 2013
    Copy the full SHA
    853fd68 View commit details

Commits on May 9, 2013

  1. disable the speed sliders for visca-sony

    Duzy Chan committed May 9, 2013
    Copy the full SHA
    6b63ed5 View commit details
  2. call _move for pan/tilt instead of _pan and _tilt

    Duzy Chan committed May 9, 2013
    Copy the full SHA
    d5fd5ca View commit details
  3. using range [0,1]

    Duzy Chan committed May 9, 2013
    Copy the full SHA
    9915bca View commit details
  4. convert 50 into 0.5

    Duzy Chan committed May 9, 2013
    Copy the full SHA
    e6ecf15 View commit details

Commits on Jul 18, 2013

  1. gst-switch-ptz: apply to the new _move api

    Duzy Chan committed Jul 18, 2013
    Copy the full SHA
    3384f18 View commit details
  2. stepping 0.05

    Duzy Chan committed Jul 18, 2013
    Copy the full SHA
    9580535 View commit details

Commits on Jul 23, 2013

  1. using ranges of [-120,120]

    Duzy Chan committed Jul 23, 2013
    Copy the full SHA
    fa1f19c View commit details
  2. Copy the full SHA
    c8ea797 View commit details

Commits on Jul 24, 2013

  1. improved camera updating

    Duzy Chan committed Jul 24, 2013
    Copy the full SHA
    aa796c1 View commit details
  2. continuing running while pressing buttons

    Duzy Chan committed Jul 24, 2013
    Copy the full SHA
    97c5571 View commit details

Commits on Jul 25, 2013

  1. changed layout and add slider ticks

    Duzy Chan committed Jul 25, 2013
    Copy the full SHA
    f238cb2 View commit details
  2. ptzcontrol: using double buffered drawing area

    Duzy Chan committed Jul 25, 2013
    Copy the full SHA
    9e67443 View commit details
  3. auto scale video size

    Duzy Chan committed Jul 25, 2013
    Copy the full SHA
    ad42d3d View commit details

Commits on Jul 26, 2013

  1. invert vertical tilt scaler

    Duzy Chan committed Jul 26, 2013
    Copy the full SHA
    d007c03 View commit details
  2. add icons and adjust ui

    Duzy Chan committed Jul 26, 2013
    Copy the full SHA
    b626ec7 View commit details

Commits on Jul 27, 2013

  1. use device name as title

    Duzy Chan committed Jul 27, 2013
    Copy the full SHA
    0d18da3 View commit details

Commits on Jul 28, 2013

  1. use ranges from camera

    Duzy Chan committed Jul 28, 2013
    Copy the full SHA
    8a1142c View commit details

Commits on Jul 29, 2013

  1. add start/stop running controlling

    Duzy Chan committed Jul 29, 2013
    Copy the full SHA
    e7d58a8 View commit details

Commits on Jul 30, 2013

  1. sync camera PT to the UI

    Duzy Chan committed Jul 30, 2013
    Copy the full SHA
    1eb9599 View commit details
  2. Copy the full SHA
    bea4b99 View commit details

Commits on Jul 31, 2013

  1. refactoring, improving

    Duzy Chan committed Jul 31, 2013
    Copy the full SHA
    9582a09 View commit details

Commits on Aug 6, 2013

  1. bug fixes

    Duzy Chan committed Aug 6, 2013
    Copy the full SHA
    3b80451 View commit details

Commits on Aug 15, 2013

  1. replace error message dialog with prompt message

    Duzy Chan committed Aug 15, 2013
    Copy the full SHA
    fe53a5a View commit details
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -48,3 +48,4 @@
/record*.dat
*.data
*.log
/tools/gst-switch-ptz
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ AM_MAINTAINER_MODE([enable])
dnl check for tools (compiler etc.)
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX

dnl required version of libtool
LT_PREREQ([2.2.6])
1 change: 1 addition & 0 deletions icons
8 changes: 8 additions & 0 deletions scripts/apps/app_stage.sh
Original file line number Diff line number Diff line change
@@ -54,10 +54,18 @@ function prepare-prerequisites()
libgtk-3-dev \
libmjpegtools-dev \
libtag1-dev \
libasound2-dev \
libtool \
libtoolize \
libvpx-dev \
libxv-dev \
libx11-dev \
libogg-dev \
libvorbis-dev \
libopencv-dev \
libcv-dev \
libhighgui-dev \
libv4l-dev \
pkg-config \
zlib1g-dev \
gtk-doc-tools \
16 changes: 14 additions & 2 deletions tools/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bin_PROGRAMS = gst-switch-srv gst-switch-ui gst-switch-cap
bin_PROGRAMS = gst-switch-srv gst-switch-ui gst-switch-cap gst-switch-ptz

if GCOV_ENABLED
# --coverage
@@ -34,9 +34,21 @@ gst_switch_cap_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GCOV_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) $(X_CFLAGS) $(GTK_CFLAGS) \
-DLOG_PREFIX="\"./tools\""
gst_switch_cap_LDFLAGS = $(GCOV_LFLAGS) $(GST_LIBS) $(GST_BASE_LIBS) \
$(GST_PLUGINS_BASE_LIBS) $(GSTPB_BASE_LIBS)
$(GST_PLUGINS_BASE_LIBS) $(GSTPB_BASE_LIBS) -lm
gst_switch_cap_LDADD = $(GST_LIBS) $(X_LIBS) $(LIBM) $(GTK_LIBS) $(GLIB_LIBS)

gst_switch_ptz_SOURCES = gstworker.c gstvideodisp.c gstswitchptz.c
gst_switch_ptz_CFLAGS = -g -ggdb $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GCOV_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) $(X_CFLAGS) $(GTK_CFLAGS) \
-DLOG_PREFIX="\".\""
gst_switch_ptz_LDFLAGS = $(GCOV_LFLAGS) $(GST_LIBS) $(GST_BASE_LIBS) \
$(GST_PLUGINS_BASE_LIBS) $(GST_PLUGINS_BAD_LIBS) $(GSTPB_BASE_LIBS)
gst_switch_ptz_LDADD = $(GST_LIBS) $(X_LIBS) $(LIBM) $(GTK_LIBS) \
$(GLIB_LIBS) -lm \
$(HOME)/gst/stage/lib/libgstcamcontrol-1.0.so

# -lgstcamcontrol

if GCOV_ENABLED
coverage:
gcov gst_switch_srv-*.o
897 changes: 897 additions & 0 deletions tools/gstswitchptz.c

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions tools/gstswitchptz.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* GstSwitch -*- c -*-
* Copyright (C) 2013 Duzy Chan <code@duzy.info>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

extern "C" gboolean verbose;

int main(int argc, char**argv)
{
return 0;
}
61 changes: 61 additions & 0 deletions tools/gstswitchptz.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* GstSwitch -*- c -*-
* Copyright (C) 2013 Duzy Chan <code@duzy.info>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __GST_SWITCH_PTZ_H____by_Duzy_Chan__
#define __GST_SWITCH_PTZ_H____by_Duzy_Chan__ 1
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include "gstworker.h"

#define GST_TYPE_SWITCH_PTZ (gst_switch_ptz_get_type ())
#define GST_SWITCH_PTZ(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GST_TYPE_SWITCH_PTZ, GstSwitchPTZ))
#define GST_SWITCH_PTZ_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), GST_TYPE_SWITCH_PTZ, GstSwitchPTZClass))
#define GST_IS_SWITCH_PTZ(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GST_TYPE_SWITCH_PTZ))
#define GST_IS_SWITCH_PTZ_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), GST_TYPE_SWITCH_PTZ))

typedef struct _GstSwitchPTZ
{
GstWorker base;

GtkWidget *window;
GtkWidget *video_view;
GtkAdjustment *adjust_pan_speed;
GtkAdjustment *adjust_pan;
GtkAdjustment *adjust_tilt_speed;
GtkAdjustment *adjust_tilt;
GtkAdjustment *adjust_zoom_speed;
GtkAdjustment *adjust_zoom;

GstCamController *controller;
} GstSwitchPTZ;

typedef struct _GstSwitchPTZClass
{
GstWorkerClass base_class;
} GstSwitchPTZClass;

GType gst_switch_ptz_get_type (void);

#endif//__GST_SWITCH_PTZ_H____by_Duzy_Chan__
Binary file added tools/icons/center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/down_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/down_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/up_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/up_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/zoom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/zoom_in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/icons/zoom_out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.