Commit Graph

169 Commits

Author SHA1 Message Date
Guido van Rossum f48b419a07 Fix syntax error (sorry!) 1993-03-02 12:16:56 +00:00
Guido van Rossum 2d413788ca Remove debug print statement 1993-03-02 12:09:18 +00:00
Guido van Rossum 0caf46b6cc VFile: fix c0bits etc. after setformat; Vrec.py: use setformat; rm Makefile. 1993-03-02 12:07:34 +00:00
Guido van Rossum 85f7bd5251 Vrec.py, Vrecb.py:
- call v.SetParam() after v.BindGLWindow()
	 - turn of dithering in mono/grey mode
	 - use prefposition to place the top left corner at (150, 150)
	   (so that the video remains visible during recording)
	 - default width is 256
Vcopy.py: correct typos; more verbose output.
OldVcopy.py: new name for Jack's old grabbing Vcopy.py.
Vstat.py: print values of all video parameters.
1993-02-25 16:10:16 +00:00
Guido van Rossum c97d2eddee Change Vinfo and Vaddcache to usr /ufs/guido/bin/sgi/python.
Don't force packfactor to 1 in header when writing rgb data.
Small bugfixes in Vcopy.
1993-02-25 14:50:27 +00:00
Guido van Rossum 5e044b7009 - Separated grabbing (which isn't used much!) from VFile.
- Renamed old Vcopy.py to OldVcopy.py, some cosmetic changes to it (is
  it still needed?)
- Added new Vcopy.py which does everything that Vtime.py does but also
  format conversions, image scaling, and packfactors.
- VFile: make packfactor always a tuple; introduce set and get methods
  for pf, format, and calculate some derived values.
- Added new module GET.py to std library, use it instead of defining
  DM* in VFile.
- Get rid of C programs (new Python programs can do all that they do
  and they probably don't understand the current file format anyway).
1993-02-25 14:20:13 +00:00
Guido van Rossum b616ebe4e4 Rewrite applypackfactor() using imageop: faster and more general;
get rid of testpackfactor(): not longer necessary
1993-02-25 00:19:14 +00:00
Guido van Rossum be6d77a9b8 Fix typos in jpeg code 1993-02-25 00:17:22 +00:00
Guido van Rossum 83c81448b1 Fix terse mode for printing tuple packfactor and to avoid zero division 1993-02-25 00:16:27 +00:00
Jack Jansen 09bf3e310b Added audio recording to Vrecb 1993-02-24 16:08:21 +00:00
Guido van Rossum a557b0f34e Added jpeg conversions 1993-02-23 17:08:53 +00:00
Jack Jansen 171a55bf56 Will now generate converters that go thru intermedeate formats 1993-02-19 15:52:30 +00:00
Jack Jansen 1e0fdd8a6b Bug fixed wrt greyscale conversion 1993-02-19 10:06:52 +00:00
Jack Jansen c82cfc86df Fix to allow tightly packed films to be converted 1993-02-19 10:06:28 +00:00
Guido van Rossum 245be3a3c5 The usual cosmetic changes after Jack is done... 1993-02-18 18:09:18 +00:00
Jack Jansen b05eaf1909 DisplayVideoIn - Class similar to LiveVideoIn but sends data from
screen
Dsend - Main program analogous to Vsend to send data from display
1993-02-17 15:58:49 +00:00
Jack Jansen 1d6821f58f Added support for 24-bit rgb movies 1993-02-17 15:54:32 +00:00
Jack Jansen 7961ea7868 Moved line-size stuff to single routine 1993-02-17 15:54:06 +00:00
Jack Jansen eeec33f820 Companion to rgb2video: convert cmif film file to rgb files 1993-02-17 15:52:56 +00:00
Guido van Rossum 3ea6161bb5 Cleanup of old files, added watchcursor.py (for Vedit.py), updated README. 1993-02-16 16:49:44 +00:00
Guido van Rossum 9b86e1f5f0 VFile.py: fix bogus getrandomframe().
Vedit.py, VeditForm.fd: added scroll bar, Trunc, layout rearrangement.
Viewer.py: added random access, qinfo() function.
1993-02-16 16:10:02 +00:00
Guido van Rossum 852cc22bd3 Vrec.py: don't print Ids if no frames are captured.
Vrecb.py: use the new interfaces to imageop (fix -M, -m, -g options).
1993-02-15 17:33:36 +00:00
Guido van Rossum 3f2ef09f40 Added usage() and help() to Vrecb, and turn on -f by default.
Removed duplicate description of -r option from documentation file.
1993-02-05 15:34:22 +00:00
Jack Jansen f0384fdb97 Introductory video documentation 1993-02-05 14:56:55 +00:00
Jack Jansen 772eca639c Added options to make window bigger than video (for recording to tape) 1993-01-27 11:42:21 +00:00
Jack Jansen 41292a81a8 Added a comment about XS 4bit pixel support 1993-01-27 11:41:37 +00:00
Jack Jansen 62fda0acbd Use imgconv to try to do image type conversion 1993-01-27 11:40:16 +00:00
Jack Jansen e6f49ecfa9 Initial (skeleton) version of universal image format converter 1993-01-27 11:39:37 +00:00
Jack Jansen 2c49017279 - Added LiveVideoOutSlow class (which only updates after full pkt)
- fixed bug in setmirror
- cleaned up some common code
1993-01-27 11:38:03 +00:00
Jack Jansen 9672e44842 Create CMIF-video file from SGI rgb images 1993-01-20 15:10:05 +00:00
Guido van Rossum 349f2b516b Renamed vcopy to Vcopy (it is the only old tool that's still in use) 1992-12-24 11:41:14 +00:00
Guido van Rossum 3f3c099e9f Get rid of C and out-of-date files 1992-12-24 11:39:36 +00:00
Guido van Rossum ec706ada62 Added usage message, minor cosmetic changes 1992-12-24 11:39:00 +00:00
Guido van Rossum 42e9be4559 Fix typo in print message 1992-12-24 11:38:29 +00:00
Guido van Rossum 5b40761856 Use plain python. 1992-12-24 11:37:53 +00:00
Guido van Rossum f1ceba61a4 setsize has two arguments: width, height. 1992-12-24 11:37:21 +00:00
Guido van Rossum 6e0e668d1c Renamed Vrecc to Vrecb (*b*urst mode capture). 1992-12-23 15:41:38 +00:00
Jack Jansen 6bc8c7f3e2 Added mono, grey2 and grey4 formats 1992-12-23 15:37:20 +00:00
Guido van Rossum a8993cfe16 Fix for new argument passing rules. 1992-12-14 12:43:19 +00:00
Guido van Rossum 9533ebe857 Band-aid to fix it for new argument passing rules. 1992-12-14 12:29:43 +00:00
Jack Jansen 3b25371ef1 Changes for supporting monochrome and greyscale video (not yet fully
functional)
1992-12-14 12:25:21 +00:00
Guido van Rossum ff3da0502f Microscopic changes, comments/messages changed.
Real important: turn off FIELDDROP in Vrec.
1992-12-09 22:16:35 +00:00
Guido van Rossum 4df20fa80f New tool Vfix: truncate the right edge of 'grey' type images to make
the scanline width a multiple of 4.

VFile: use gl.gversion() to distinguish 4.0.1 and 4.0.5 Indigos;
truncate width and height to multiples of packfactor.

Vinfo: add -t to descriptive comment; print '!' after packfactor for
files that should be fixed with Vfix.
1992-09-29 17:07:10 +00:00
Guido van Rossum 9e3f335bea VFile: added new formats 'jpeg' and 'jpeggrey'. Decompression is done
using module 'jpeg' by the Displayer class.  (Unfortunately it's too
slow for real time.)  Print file size in printinfo() method.

Vinfo: added -t option (terse -- one line per file) and usage message.

Vtime: use BasicV{in,out}File classes -- the minimum needed.

Vmkjpeg, Vunjpeg: new utilities for jpeg (de)compression.
1992-09-29 13:40:47 +00:00
Guido van Rossum f8848acca3 Added resizevideo() interface to LiveVideoIn and rationalized size
adjustments (somewhat).  Adapted Vsend to use it.
1992-09-24 16:55:31 +00:00
Guido van Rossum d65f45da26 Added resizevideo() interface to LiveVideoIn and rationalized size
adjustments (somewhat).  Adapted Vsend to use it.
1992-09-24 16:53:51 +00:00
Guido van Rossum cfb6bb2a30 Changed the init() interface of LiveVideoOut to read out the window
size automatically -- the video is always centered.  Added
resizevideo() and reshapewindow() interfaces.  Documented all methods.
Changed Vsend/Vreceive to use the new interface.  Allow window
resizing by the user in Vreceive.
1992-09-24 16:03:56 +00:00
Guido van Rossum 691e59bcb7 Python equivalent of <netinet/in.h> (SGI specific, hence not in python/lib). 1992-09-24 15:02:46 +00:00
Guido van Rossum 7b47c79a4c Added options to Vsend and Vreceive; moved common defaults to senddefs.
Optimized LiveVideoIn quite a bit; removed print stmt from LiveVideoOut.
1992-09-24 15:01:37 +00:00
Guido van Rossum 67b4895291 Added multicast to Vsend and Vreceive. Updated README. Rediced queue
size to 1 in LiveVideoIn.
1992-09-24 12:54:35 +00:00
Guido van Rossum ba06615c9f New modules LiveVideo{In,Out} (interfaces will change!).
New programs V{send,receive} to send/receive video over UDP.
Comment typo changed in Vaddcache.
1992-09-22 17:23:17 +00:00
Guido van Rossum 42e07afe3d Vrec.py: sv now raises sv.error instead of RuntimeError.
VFile.py: support for showing partial frames.
1992-09-22 15:01:43 +00:00
Guido van Rossum 5c1797ac23 Utility to add a cached index to an existing movie file. 1992-09-08 15:17:02 +00:00
Guido van Rossum 269b2a2eb7 VFile: The Entry-Indigo trick doesn't work on 4.0.1 hosts.
VFile: RandomVinFile can now write the cache to the file.
Vinfo: use the cached index if present and print a message whether it's there.
1992-09-08 15:04:01 +00:00
Guido van Rossum 4526f379bc Fixed "clear()" and added "clearto(r, g, b)".
Added class RandomVinFile which supports random access and warming the cache.
Added eofseen and errorseen methods to BasicVinFile.
Use RGB mode for rgb8 data on entry level Indigo.
Minor cosmetic changes.
1992-09-07 15:28:57 +00:00
Guido van Rossum 2de9b68fea Clear the window when receiving a REDRAW event and not playing 1992-09-07 15:11:30 +00:00
Guido van Rossum 00ffea3615 Use vin/vout.clear() instead of gl.clear() 1992-09-07 15:09:31 +00:00
Guido van Rossum e1783324ab Adapted the world to the new VFile.py. Fixed bugs in Vplay.py:
missing -n in help(), bogus frame skipping; and added patch for
weird time jumps.  Removed colorsys.py (now in std library).
Fixed "sys.write" error in vcopy.py.  Restructured README.
1992-09-07 09:35:23 +00:00
Guido van Rossum 4045c2fa5b Almost completely rewritten for cleaner code. 1992-09-07 09:24:17 +00:00
Guido van Rossum 32517f9427 Remove PAL dependencies; add -w option (initial window width);
add stepunit(8, 6) call.
1992-09-04 13:26:59 +00:00
Guido van Rossum 62f6bc8e55 Adapted to new video library -- different capture interface, no bugs.
Also use locks and Queues for communication with other threads.
1992-09-03 16:56:04 +00:00
Guido van Rossum e0be2b36b6 Added a clear() method to VFile class, to be called when the window
receives a REDRAW event
1992-09-01 14:45:57 +00:00
Guido van Rossum a43111118f Cosmetic changes to Vedit and -Form. 1992-08-25 13:53:10 +00:00
Guido van Rossum 9ee7e15966 Created Vedit.py, the video editor. This uses the classes in Viewer.py.
Viewer.py in turn requires changes to VFile.py (unfortunately that file
is now a complete mess...).
1992-08-25 12:29:30 +00:00
Guido van Rossum 33a8d428db Clear the window to rather light grey when switching to RGB mode. 1992-08-21 12:41:23 +00:00
Guido van Rossum e755aa50e2 Redesigned option processing and added several new options.
Added optional read-ahead thread.
Changed mouse interface.
1992-08-21 12:34:55 +00:00
Guido van Rossum 8a861be7f3 Add audio recording 1992-08-20 14:46:46 +00:00
Guido van Rossum 815adc9870 New files. 1992-08-20 11:54:00 +00:00
Guido van Rossum 99e237f809 new Vtime.py: manipulate time codes. 1992-08-20 11:53:14 +00:00
Guido van Rossum 78aab86201 Lots of changes, options (from Vtime.py) etc.
Cleverer skipping of frames.
1992-08-20 11:52:42 +00:00
Guido van Rossum 9a35d57ab2 Added reopen() to VinFile with semantics of old rewind(); rewind() now
saves the cache.
Added getinfo() to VoutFile.
Fixed writing of 'grey' file header.
Added quiet parameter.
Adapted to new syntax.
1992-08-20 11:51:47 +00:00
Guido van Rossum dfb61fa2cb Minor improvements: exit status, data size stats. 1992-08-20 11:49:58 +00:00
Guido van Rossum 180924d575 Initial revision 1992-08-20 11:46:28 +00:00
Guido van Rossum 7268c93c55 Minor improvements, comments; fix Vinfo -d. 1992-08-18 21:11:18 +00:00
Guido van Rossum 8b9c734e12 Add comments 1992-08-18 17:01:13 +00:00
Guido van Rossum 82534fd828 Add comments and options 1992-08-18 17:01:02 +00:00
Guido van Rossum bc0eb9967d Add close() method to VinFile 1992-08-18 17:00:51 +00:00
Guido van Rossum b2e822849b Added some new comments and files 1992-08-18 16:01:19 +00:00
Guido van Rossum 66beddb844 Hacked in audio support. 1992-08-18 16:01:07 +00:00
Guido van Rossum 74a3f8b6c0 Initial revision 1992-08-18 14:47:41 +00:00
Guido van Rossum 44b8e81c42 Change window title: prefix '* ' means playing. 1992-08-18 14:47:20 +00:00
Guido van Rossum 7ff90ef714 Adapt to new syntax and don't print garbage on self.close(). 1992-08-18 14:16:21 +00:00
Guido van Rossum 843d153f99 Initial revision 1992-08-18 14:16:12 +00:00
Guido van Rossum 37fa454c11 Initial revision 1992-05-14 14:24:57 +00:00
Guido van Rossum 4476670761 Append /ufs/guido/src/video to sys.path. 1992-05-12 12:33:44 +00:00
Guido van Rossum fa3de516f5 Print real width and warn for stride not a multiple of 4 bytes 1992-05-07 15:21:52 +00:00
Guido van Rossum 864cde2831 Warn if stride not a multiple of 4 bytes; use PM_SIZE instead of 5. 1992-05-07 15:21:25 +00:00
Guido van Rossum edb3a5fcf2 Standardize indentation to 8 chars; remove redundant "saveframe";
add -s (short listing) option; don't print space after tab;
print data size in bytes and whether it
is a color image.
1992-05-06 17:58:34 +00:00
Guido van Rossum 2c8bf9d400 Define colorinfo even if no header line found 1992-05-06 17:58:18 +00:00
Guido van Rossum cbc1d90cda More functionality by Jack (untested by me) 1992-03-18 13:04:25 +00:00
Guido van Rossum dbd83aa4df Initial revision 1992-02-28 16:19:15 +00:00
Guido van Rossum 2080b347f4 Added class VoutFile.
Added rgb8 support.
Added cache of frame offsets to VinFile.
Misc hacks to grab rgb8 data.
1992-02-28 15:59:23 +00:00
Guido van Rossum 19f2aec581 Initial revision 1992-02-11 14:50:54 +00:00
Guido van Rossum f47d0485a0 new syntax 1992-02-11 14:50:22 +00:00
Guido van Rossum d61bbb33f7 Better check of input data? 1992-02-11 14:47:11 +00:00
Guido van Rossum 58b38ccc9d standardized lay-out; new syntax. 1992-02-11 14:45:43 +00:00
Guido van Rossum 696f91151c Fix division by zero in some cases. 1991-12-03 17:25:52 +00:00
Guido van Rossum 444339d463 Support for CMIF video 3.0 files (more color systems). 1991-12-03 16:52:40 +00:00
Guido van Rossum 8f72bbb2c8 Jack added new color systems (unfortunately using old lay-out). 1991-12-03 16:52:21 +00:00
Guido van Rossum 3e0d556221 Improved lay-out. 1991-12-03 16:51:06 +00:00