This HTML automatically generated with rman for NEMO
Table of Contents

Name

movie, movie_sv - realtime playback of SUN rasterfiles

Synopsis

movie [-p r c] [-s file]

movie_sv

Description

movie reads a set of rasterfiles (see rasterfile(5) ) and stores them in memory. It provides a number of functions for animating the sequence of rasters on the SUN bitmap display. These functions are described in the Playback Functions section below.

movie does not run under SUN-Windows. It uses the mouse for frame and speed control, as well as menu selection of playback functions.

movie_sv is a special version which can run under SUN-windows, but is really intended for small (say 256 pixels square) images because of memory limitations. It’s user interface is also rather limited: a keyboard command interface instead of mouse control.

In movie the screen is divided into 5 areas. The left square part of the screen (900 * 900 pixels) is the frame area. All rasters are displayed here. The right part of the screen comprises a single information line at the top of the screen, a mouse button line, a menu area, and a menu page selection area.

The information line displays the currently displayed frame number, the number of the last frame, and a speed indicator. The speed controls the frame presentation rate during playback. The speed is shown as a number between 0 and 100. A speed of 0 indicates no motion. A speed of 100 indicates the maximum possible redisplay rate. When frames are being presented in reverse sequence, as in a Backward Loop, the speed is shown as a negative number.

The mouse button line shows the status of the three mouse buttons. The line is divided into 3 areas, corresponding to the left, centre, and right mouse buttons. The effect of pressing one of the buttons is indicated in the appropriate area.

The menu is displayed below the mouse button line. Each menu item is shown in a reverse video line. The menu cursor moves up and down through the menu, and reverses the bits in the line under the cursor.

The menu page selection area is at the bottom of the menu. It has two areas, labeled ‘+’ and ‘-’, which will switch to the next or previous menu page. This feature unnecessary for movie, as only the first menu page has any ‘live’ entries, but is there for future expansion. The menu contains 16 pages, each of 32 menu items. The current page number is displayed to the right of the ‘-’ selector.

Mouse motion is up/down to select menu items. Playback functions generally take up/down motions to cause increase/decrease in playback speed, and left/right motions to indicate previous/next frame selection.

The position of the upper left corner of displayed frames may be set by the command line -p option. The following two integers are taken as row and column offsets.

By default movie will read rasterfiles from the current directory. Files with names of the form frame.# (where # is a number) are read into memory. The files must be numbered sequentially, beginning with frame.0. This is similar to the convention used by the SUN demo program framedemo, but note that in this case the files are in rasterfile format. The -s option overrides the reading of the ‘frame.#’ files. The argument following the -s option indicates a file to be read, which contains a list of rasterfiles to read in sequence.

Playback Functions

First Frame
Displays the first frame

Next Frame
Displays the next frame in the sequence, without wrap-around.

Previous Frame
Displays the previous frame in the sequence, without wrap-around.

Last Frame
Displays the last frame in the sequence.

Single Frame
Single frame playback. The left and right mouse buttons select the previous and next frames.

Forward Play Once
Plays the sequence from first to last frame once, at the current frame speed.

Backward Play Once
Plays the sequence from last to first frame once, at the current frame speed.

Forward Loop
Play the sequence continually, from first to last frame. The playback speed may be adjusted with up/down mouse motion, or with the left and right mouse buttons.

Backward Loop
Play the sequence continually, from last to first frame. The playback speed may be adjusted with up/down mouse motion, or with the left and right mouse buttons.

Back and Forth Loop
Play the sequence continually, from first to last, then last to first frame. The playback speed may be adjusted with up/down mouse motion, or with the left and right mouse buttons.

Variable Speed Loop
Play the sequence continually, The playback speed may be adjusted with up/down mouse motion, or with the left and right mouse buttons. The playback direction may be changed by moving the speed through 0. Negative speed indicates reverse playback.

Scroll With Mouse
Frames are displayed one at a time. Left/right mouse motion displays previous/next frames.

Position Frame
Allows the upper left starting position of displayed frames to be adjusted interactively. A box is drawn around the frame, and moved within the frame area with mouse motion. Pressing the left mouse button causes frame display to take place at the new position.

Reverse Frame Video
Reverses the black/white sense of displayed frames.

Quit
Exits the movie program.

Acknowledgement

The playback functions in movie are similar to the S-Dynamics animation playback program on our Symbolics 3650. I thank the authors of that software for giving me the idea to write this one. This program is, however, in no way copied or translated from that code.

Bugs

movie_sv does not work well on colour monitors, however by closing to movie window into an icon and opening it again, it seems to work... This is a native suntools bug.

See Also

movie(8NEM0) , rasterfile(5)

Author

Marc Majka, Peter Teuben

Update History


xx-xxx-87    MOVIE Program added to NEMO                         Majka
xx-xxx-87    some bugs removed                                   JEB
16-dec-88    suntools version as movie_sv tryout-simple menu      PJT


Table of Contents