Merge lp:~ubuntu-branches/ubuntu/natty/gem/natty-201104220303 into lp:ubuntu/natty/gem

Proposed by James Westby
Status: Rejected
Rejected by: Colin Watson
Proposed branch: lp:~ubuntu-branches/ubuntu/natty/gem/natty-201104220303
Merge into: lp:ubuntu/natty/gem
Diff against target: 212 lines (+182/-0) (has conflicts)
4 files modified
.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/04_v4l1.patch/src/Pixes/videoV4L.h (+162/-0)
debian/patches/04_v4l1.patch (+18/-0)
Conflict adding file .pc/04_v4l1.patch.  Moved existing file to .pc/04_v4l1.patch.moved.
Conflict adding file debian/patches/04_v4l1.patch.  Moved existing file to debian/patches/04_v4l1.patch.moved.
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/natty/gem/natty-201104220303
Reviewer Review Type Date Requested Status
Colin Watson Disapprove
Review via email: mp+58782@code.launchpad.net

Description of the change

The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/natty/gem now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/natty/gem/natty-201104220303. A merge should be performed if necessary.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

The importer already imported this revision. I'm not sure why it's trying to do so again in a slightly different way, but it isn't necessary.

review: Disapprove

Unmerged revisions

15. By Andreas Moog

* debian/rules, debian/patches/04_v4l1.patch:
  - disable v4l1 as it has been removed from the kernel
  (LP: #756070) (Closes: #621956)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.pc/.quilt_patches'
2--- .pc/.quilt_patches 1970-01-01 00:00:00 +0000
3+++ .pc/.quilt_patches 2011-04-22 03:07:25 +0000
4@@ -0,0 +1,1 @@
5+debian/patches
6
7=== added file '.pc/.quilt_series'
8--- .pc/.quilt_series 1970-01-01 00:00:00 +0000
9+++ .pc/.quilt_series 2011-04-22 03:07:25 +0000
10@@ -0,0 +1,1 @@
11+series
12
13=== added file '.pc/01_change_defaultfont.patch/.timestamp'
14=== added file '.pc/02_manual_examples_install.patch/.timestamp'
15=== added file '.pc/03_falign_default.patch/.timestamp'
16=== added directory '.pc/04_v4l1.patch'
17=== renamed directory '.pc/04_v4l1.patch' => '.pc/04_v4l1.patch.moved'
18=== added file '.pc/04_v4l1.patch/.timestamp'
19=== added directory '.pc/04_v4l1.patch/src'
20=== added directory '.pc/04_v4l1.patch/src/Pixes'
21=== added file '.pc/04_v4l1.patch/src/Pixes/videoV4L.h'
22--- .pc/04_v4l1.patch/src/Pixes/videoV4L.h 1970-01-01 00:00:00 +0000
23+++ .pc/04_v4l1.patch/src/Pixes/videoV4L.h 2011-04-22 03:07:25 +0000
24@@ -0,0 +1,162 @@
25+/*-----------------------------------------------------------------
26+
27+ GEM - Graphics Environment for Multimedia
28+
29+ Load an video into a pix block
30+
31+ Copyright (c) 1997-1999 Mark Danks. mark@danks.org
32+ Copyright (c) Günther Geiger. geiger@epy.co.at
33+ Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. zmoelnig@iem.kug.ac.at
34+ For information on usage and redistribution, and for a DISCLAIMER OF ALL
35+ WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
36+
37+ Linux version by Miller Puckette. msp@ucsd.edu
38+
39+-----------------------------------------------------------------*/
40+
41+#ifndef INCLUDE_VIDEOV4L_H_
42+#define INCLUDE_VIDEOV4L_H_
43+
44+#include "Pixes/video.h"
45+
46+#if defined HAVE_LIBV4L1 && !defined HAVE_VIDEO4LINUX
47+# define HAVE_VIDEO4LINUX
48+#endif
49+
50+#ifdef HAVE_VIDEO4LINUX
51+# ifdef HAVE_LIBV4L1
52+# include <libv4l1.h>
53+# endif /* HAVE_LIBV4L1 */
54+
55+# include <stdio.h>
56+# include <stdlib.h>
57+# include <stdarg.h>
58+# include <unistd.h>
59+# include <string.h>
60+# include <ctype.h>
61+# include <fcntl.h>
62+# include <errno.h>
63+# include <sys/ioctl.h>
64+# include <sys/types.h>
65+# include <sys/time.h>
66+# include <linux/types.h>
67+# include <linux/videodev.h>
68+# include <sys/mman.h>
69+//#ifdef HAVE_PTHREADS
70+# include <pthread.h>
71+//#endif
72+# define V4L_DEVICENO 0
73+# define V4L_NBUF 2
74+# define V4L_COMPOSITEIN 1
75+#endif
76+/*-----------------------------------------------------------------
77+-------------------------------------------------------------------
78+CLASS
79+ pix_video
80+
81+ Loads in a video
82+
83+KEYWORDS
84+ pix
85+
86+DESCRIPTION
87+
88+ "dimen" (int, int) - set the x,y dimensions
89+ "zoom" (int, int) - the zoom factor (1.0 is nominal) (num / denom)
90+ "bright" (int) - the brightnes
91+ "contrast" (int) - the contrast
92+ "hue" (int) - the hue
93+ "sat" (int) - the saturation
94+
95+-----------------------------------------------------------------*/
96+class GEM_EXTERN videoV4L : public video {
97+ public:
98+ //////////
99+ // Constructor
100+ videoV4L(int format=0);
101+
102+ //////////
103+ // Destructor
104+ virtual ~videoV4L();
105+
106+#ifdef HAVE_VIDEO4LINUX
107+ ////////
108+ // open the video-device
109+ virtual int openDevice(int devnum, int format=0){return 1;}
110+ virtual void closeDevice(void){}
111+ virtual int resetDevice(void){return 1;}
112+
113+ //////////
114+ // Start up the video device
115+ // [out] int - returns 0 if bad
116+ int startTransfer(int format=0);
117+ //////////
118+ // Stop the video device
119+ // [out] int - returns 0 if bad
120+ int stopTransfer();
121+
122+ //////////
123+ // get the next frame
124+ pixBlock *getFrame();
125+
126+ //////////
127+ // Set the video dimensions
128+ virtual int setDimen(int x, int y, int leftmargin, int rightmargin,
129+ int topmargin, int bottommargin);
130+ virtual int setChannel(int c, float f);
131+ virtual int setNorm(char*);
132+ virtual int setDevice(int);
133+ virtual int setDevice(char*);
134+ virtual int setColor(int);
135+
136+
137+ protected:
138+
139+ //-----------------------------------
140+ // GROUP: Linux specific video data
141+ //-----------------------------------
142+
143+ struct video_tuner vtuner;
144+ struct video_picture vpicture;
145+ struct video_buffer vbuffer;
146+ struct video_capability vcap;
147+ struct video_channel vchannel;
148+ struct video_audio vaudio;
149+ struct video_mbuf vmbuf;
150+ struct video_mmap vmmap[V4L_NBUF];
151+ int tvfd;
152+ int frame, last_frame;
153+ unsigned char *videobuf;
154+ int skipnext;
155+ int mytopmargin, mybottommargin;
156+ int myleftmargin, myrightmargin;
157+
158+ int m_gotFormat; // the format returned by the v4l-device (not an openGL-format!)
159+ bool m_colorConvert; // do we have to convert the colour-space manually ?
160+
161+ //////////
162+ // the capturing thread
163+ pthread_t m_thread_id;
164+ bool m_continue_thread;
165+ bool m_frame_ready;
166+
167+ /* capture frames (in a separate thread! */
168+ void*capturing(void);
169+ /* static callback for pthread_create: calls capturing() */
170+ static void*capturing_(void*);
171+
172+ // rendering might be needed when we are currently not capturing because we cannot (e.g: couldn't open device)
173+ // although we should. when reopening another device, we might be able to render again...
174+ // example: we have only 1 video-device /dev/video0;
175+ // when we try to open /dev/video1 we fail, and m_capturing is set to 0
176+ // now when rendering is turned on and we want to switch back to /dev/video0 we should reconnect to the good device
177+ bool m_rendering; // "true" when rendering is on, false otherwise
178+
179+
180+ /* use this in the capture-thread to cleanup */
181+ bool m_stopTransfer;
182+#endif /* HAVE_VIDEO4LINUX */
183+
184+};
185+
186+#endif // for header file
187
188=== added file '.pc/99_gcc_4-4.patch/.timestamp'
189=== added file 'debian/patches/04_v4l1.patch'
190--- debian/patches/04_v4l1.patch 1970-01-01 00:00:00 +0000
191+++ debian/patches/04_v4l1.patch 2011-04-22 03:07:25 +0000
192@@ -0,0 +1,18 @@
193+## Description: don't include obsolete v4l1 headers
194+## Origin/Author: Andreas Moog <amoog@ubuntu.com>
195+## Bug-Ubuntu: https://launchpad.net/bugs/756070
196+## Bug-Debian: http://bugs.debian.org/621956
197+## Bug: http://sourceforge.net/support/tracker.php?aid=3290926
198+Index: gem/src/Pixes/videoV4L.h
199+===================================================================
200+--- gem.orig/src/Pixes/videoV4L.h 2011-04-21 14:23:23.683662525 +0200
201++++ gem/src/Pixes/videoV4L.h 2011-04-21 14:23:19.823859321 +0200
202+@@ -40,7 +40,7 @@
203+ # include <sys/types.h>
204+ # include <sys/time.h>
205+ # include <linux/types.h>
206+-# include <linux/videodev.h>
207++//# include <linux/videodev.h>
208+ # include <sys/mman.h>
209+ //#ifdef HAVE_PTHREADS
210+ # include <pthread.h>
211
212=== renamed file 'debian/patches/04_v4l1.patch' => 'debian/patches/04_v4l1.patch.moved'

Subscribers

People subscribed via source and target branches

to all changes: