MPEG_PUT
Syntax | Arguments | Keywords | Examples | Version History | See Also
The MPEG_PUT procedure stores the specified image array at the specified frame index in an MPEG sequence.
This routine is written in the IDL language. Its source code can be found in the file mpeg_put.pro in the lib subdirectory of the IDL distribution.
Note
The IDLffMJPEG2000 object creates and reads Motion JPEG2000 (MJ2) files, and provides more functionality than the MPEG_* routines. Animations can consist of monochrome, RGB or multi-component frames that display individual components, tiles or regions. See Overview of Motion JPEG2000 (Using IDL) for more information.
Syntax
MPEG_PUT, mpegID [, /COLOR] [, FRAME=frame_number] [, IMAGE=array | , WINDOW=index] [, /ORDER]
Arguments
mpegID
The unique identifier of the MPEG sequence into which the image will be inserted. (MPEG sequence identifiers are returned by the MPEG_OPEN routine.)
Keywords
COLOR
Set this keyword to read off an 8-bit display and pass the information through the current color table to create a 24-bit image.
FRAME
Set this keyword equal to an integer specifying the frame at which the image is to be loaded. If the frame number matches a previously loaded frame, the previous frame is overwritten. The default is 0.
IMAGE
Set this keyword equal to an m x n image array or a 3 x m x n True Color image array representing the image to be loaded at the specified frame. This keyword is ignored if the WINDOW keyword is specified.
ORDER
Set this keyword to indicate that the rows of the image should be drawn from top to bottom. By default, the rows are drawn from bottom to top.
WINDOW
Set this keyword to the index of a Direct Graphics Window (or to an object reference to an IDLgrWindow or IDLgrBuffer object) to indicate that the image to be loaded is to be read from the given window or buffer. If this keyword is specified, it overrides the value of the IMAGE keyword.
Examples
See MPEG_OPEN for an example using this routine.
Version History
See Also
MPEG_CLOSE, MPEG_OPEN, MPEG_SAVE, XINTERANIMATE