For a specified video format, returns the default color mode, and whether each of the various color modes is supported for export. More...
Functions | |
VIDEOLIB_EXPORT int | mdlVideo_getExportSupport (int *defaultModeP, int *rgbSupportP, int *palette256SupportP, int *palette16SupportP, int *greyScaleSupportP, int *monochromeSupportP, int videoType) |
VIDEOLIB_EXPORT int | mdlVideo_getExtension (WCharP ext, int type) |
Returns the default three character file extension for the specified image format. More... | |
VIDEOLIB_EXPORT int | mdlVideo_createFileFromBitMap (WCharCP nameP, int type, Point2d *sizeP, byte *bitMapP, bool runLengthEncode, RgbColorDef *foregroundColorP, RgbColorDef *backgroundColorP) |
creates an image file from a memory bitmap. More... | |
VIDEOLIB_EXPORT int | mdlVideo_createFileFromBuffer (WCharCP saveAsFileNameP, int fileType, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageDataP, int imageFormat, void *param1P, void *param2P, void *param3P, int paletteSize, int compressType) |
Creates a video file from an image buffer by using the imageFormat to determine how to best write the file. More... | |
VIDEOLIB_EXPORT int | mdlVideo_createFileFromMap (WCharCP name, int type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageMapP, byte *redPaletteP, byte *grnPaletteP, byte *bluPaletteP, int paletteSize) |
Creates the video file specified by fileName, fileType and colorMode from a mapped image. More... | |
VIDEOLIB_EXPORT int | mdlVideo_createFileFromRGB (WCharCP name, int type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageBufferP) |
Creates the video file specified by fileName, fileType and colorMode from an RGB image. More... | |
VIDEOLIB_EXPORT int | mdlVideo_extCreateFileFromMap (WCharCP name, int type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageMapP, byte *redPaletteP, byte *grnPaletteP, byte *bluPaletteP, int paletteSize, int compressType, byte *transparencyP) |
Creates the video file specified by fileName, fileType and colorMode from a mapped image, allowing compression and transparency to be set. More... | |
VIDEOLIB_EXPORT int | mdlVideo_extCreateFileFromRGB (WCharCP name, int type, DgnPlatform::ImageColorMode colorMode, Point2d *sizeP, byte *imageBufferP, int compressType, byte *transparencyP) |
Creates the video file specified by fileName, fileType and colorMode from an RGB image, allowing compression type and transparency to be set. More... | |
VIDEOLIB_EXPORT int | mdlVideo_saveMovie (WCharP fileName, int fileType, DgnPlatform::ImageColorMode colorMode, DgnPlatform::MSMovie *movieP) |
Saves a movie sequence to a single animation file or series of single image files. More... | |
VIDEOLIB_EXPORT int | mdlVideo_extendedSaveMovie (WCharCP fileName, int fileType, DgnPlatform::ImageColorMode colorMode, DgnPlatform::MSMovie *movieP, int compression) |
Saves a movie sequence to a single animation file or series of single image files. More... | |
VIDEOLIB_EXPORT int | mdlVideo_readMovie (DgnPlatform::MSMovie *movieP, WCharP fileName, int fileType, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, double gammaCorrection) |
Reads a sequence of images from a single animation file or a series of single image files and stores them in the DgnPlatform::MSMovie structure movieP. More... | |
VIDEOLIB_EXPORT int | mdlVideo_readMovieWithBuffering (DgnPlatform::MSMovie *movieP, WCharCP fileName, int fileType, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, double gammaCorrection, bool firstFrameOnly) |
Reads a sequence of images from a single animation file or a series of single image files and stores them in the DgnPlatform::MSMovie structure movieP. More... | |
VIDEOLIB_EXPORT int | mdlVideo_insertMovie (DgnPlatform::MSMovie *movieP, DgnPlatform::MSMovieFrame *insertFrameP, DgnPlatform::MSMovie *insertMovieP, int transitionType, int transitionFrames, bool stillTransition) |
Inserts the movie specified by insertMovieP into the movie movieP at insertFrameP. More... | |
VIDEOLIB_EXPORT int | mdlVideo_insertMovieFrame (DgnPlatform::MSMovie *movieP, DgnPlatform::MSMovieFrame *insertFrameP, byte *rgbFrameP) |
Inserts a single frame from an RGB buffer into a movie sequence. More... | |
VIDEOLIB_EXPORT int | mdlVideo_deleteMovieFrame (DgnPlatform::MSMovie *movieP, DgnPlatform::MSMovieFrame **framePP) |
mdlVideo_deleteMovieFrame deletes the frame framePP from the movie movieP. More... | |
VIDEOLIB_EXPORT void | mdlVideo_freeMovie (DgnPlatform::MSMovie *movieP) |
mdlVideo_freeMovie frees the memory associated with a movie. More... | |
VIDEOLIB_EXPORT int | mdlVideo_createFli (void **fliFilePP, Point2d *sizeP, int speed, WCharCP fileName, bool flcFormat) |
Creates an AutoDesk Animator FLI or FLC file. More... | |
VIDEOLIB_EXPORT int | mdlVideo_appendFliFromMap (void *fliP, byte *mapP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize) |
Appends a movie frame to an AutoDesk Animator FLI or FLC file. More... | |
VIDEOLIB_EXPORT int | mdlVideo_appendFliFromRGB (void *fliP, byte *redMapP, byte *grnMapP, byte *bluMapP, int paletteSize, byte *imageBuffer) |
Appends a movie frame to an AutoDesk Animator FLI or FLC file. More... | |
VIDEOLIB_EXPORT void | mdlVideo_completeFli (void *fliP) |
Closes an AutoDesk Animator FLI or FLC file and frees the internal buffers. More... | |
VIDEOLIB_EXPORT bool | mdlVideo_isAVIAvailable () |
Determine whether the AVI file format is supported on the current MicroStation platform. More... | |
VIDEOLIB_EXPORT int | mdlVideo_createMovie (void **movieContextPP, DgnPlatform::MSMovie *movieP, WCharCP fileName, int fileType) |
Begins the process of saving a sequence of images to disk. More... | |
VIDEOLIB_EXPORT int | mdlVideo_addMovieFrame (void *movieContextP, DgnPlatform::MSMovie *movieP, byte *imageP, BeFileNameR fileNameP, int fileType, DgnPlatform::ImageColorMode colorMode, int compression) |
Adds a single frame to the movie sequence initialized with mdlVideo_createMovie. More... | |
VIDEOLIB_EXPORT int | mdlVideo_completeMovie (void *movieContextP, DgnPlatform::MSMovie *movieP, WCharCP fileName, int fileType, DgnPlatform::ImageColorMode colorMode, int compression) |
Completes the process of saving an animation file. More... | |
For a specified video format, returns the default color mode, and whether each of the various color modes is supported for export.
[out] | defaultModeP | default color mode. |
[out] | rgbSupportP | support for 24 bit RGB. |
[out] | palette256SupportP | support for 256 color palette. |
[out] | palette16SupportP | support for 16 color palette. |
[out] | greyScaleSupportP | support for grey scale. |
[out] | monochromeSupportP | support for monochrome. |
[in] | videoType | video type (from image.h). |
VIDEOLIB_EXPORT int mdlVideo_addMovieFrame | ( | void * | movieContextP, |
DgnPlatform::MSMovie * | movieP, | ||
byte * | imageP, | ||
BeFileNameR | fileNameP, | ||
int | fileType, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
int | compression | ||
) |
Adds a single frame to the movie sequence initialized with mdlVideo_createMovie.
For the FLI and FLC single image formats, the frame is appended to the movie movieP.
When all frames have been added, mdlVideo_completeMovie should be called. mdlVideo_freeMovie should then be called to free the buffers allocated for the movie.
[in] | movieContextP | pointer to the buffer allocated by the call to mdlVideo_createMovie. |
[in] | movieP | pointer to a DgnPlatform::MSMovie structure |
[in] | imageP | an RGB image buffer of the movie frame to add. |
[in,out] | fileNameP | for formats that save to a series of single images, the file name for the single image file to be created. The fileNameP returned will be that for the next frame in the series. For the single file formats, fileNameP is the name of the animation file. |
[in] | fileType | specifies the image format for the animation sequence. Image formats are defined in image.h and begin with IMAGEFILE_. |
[in] | colorMode | specifies whether a imageP is to be saved as a true-color or mapped image. Color modes are defined in image.h and begin with COLORMODE_. |
[in] | compression | specifies the type of compression to be used (from image.h), for those formats that support it. |
VIDEOLIB_EXPORT int mdlVideo_appendFliFromMap | ( | void * | fliP, |
byte * | mapP, | ||
byte * | redMapP, | ||
byte * | grnMapP, | ||
byte * | bluMapP, | ||
int | paletteSize | ||
) |
Appends a movie frame to an AutoDesk Animator FLI or FLC file.
These files contain an entire sequence of images, with each frame defined by the screen changes from the previous frame. MicroStation supports only mapped, 256 color FLI files. The palette for each frame can be different, although on most players this causes distracting flicker.
[in] | fliP | pointer to an internal structure created by mdlVideo_createFli. The contents of this structure are not published or required. |
[in] | mapP | image to append to FLI file. |
[in] | redMapP | red palette entries. |
[in] | grnMapP | green palette entries. |
[in] | bluMapP | blue palette entries. |
[in] | paletteSize | number of palette entries. |
VIDEOLIB_EXPORT int mdlVideo_appendFliFromRGB | ( | void * | fliP, |
byte * | redMapP, | ||
byte * | grnMapP, | ||
byte * | bluMapP, | ||
int | paletteSize, | ||
byte * | imageBuffer | ||
) |
Appends a movie frame to an AutoDesk Animator FLI or FLC file.
These files contain an entire sequence of images, with each frame defined by the screen changes from the previous frame. MicroStation supports only mapped, 256 color FLI files. The palette for each frame can be different, although on most players this causes distracting flicker.
[in] | fliP | pointer to an internal structure created by mdlVideo_createFli. The contents of this structure are not published or required. |
[in] | redMapP | red palette entries. |
[in] | grnMapP | green palette entries. |
[in] | bluMapP | blue palette entries. |
[in] | paletteSize | number of palette entries. |
[in] | imageBuffer | RGB buffer to append to FLI file. |
VIDEOLIB_EXPORT void mdlVideo_completeFli | ( | void * | fliP | ) |
Closes an AutoDesk Animator FLI or FLC file and frees the internal buffers.
[in] | fliP | pointer to an internal structure created by mdlVideo_createFli. The contents of this structure are not published or required. |
VIDEOLIB_EXPORT int mdlVideo_completeMovie | ( | void * | movieContextP, |
DgnPlatform::MSMovie * | movieP, | ||
WCharCP | fileName, | ||
int | fileType, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
int | compression | ||
) |
Completes the process of saving an animation file.
In the case of FLI and FLC, movieP is processed at this time and the animation file is created. For AVI files, the file handle for the open animation file is closed.
Used in conjunction with mdlVideo_addMovieFrame and mdlVideo_createMovie
After processing is complete, mdlVideo_freeMovie should be called to free the buffers allocated for the movie.
[in] | movieContextP | pointer to the buffer allocated by the call to mdlVideo_createMovie. |
[in] | movieP | pointer to a DgnPlatform::MSMovie structure |
[in] | fileName | name of the animation file (only required for FLI and FLC). |
[in] | fileType | image format for the animation sequence. Image formats are defined in image.h and begin with IMAGEFILE_. |
[in] | colorMode | specifies whether a movieP is to be saved as a true-color or mapped image. Color modes are defined in image.h and begin with COLORMODE_. |
[in] | compression | specifies the type of compression to be used (from image.h), for those formats that support it. |
VIDEOLIB_EXPORT int mdlVideo_createFileFromBitMap | ( | WCharCP | nameP, |
int | type, | ||
Point2d * | sizeP, | ||
byte * | bitMapP, | ||
bool | runLengthEncode, | ||
RgbColorDef * | foregroundColorP, | ||
RgbColorDef * | backgroundColorP | ||
) |
creates an image file from a memory bitmap.
[in] | nameP | full path name of the file to be written. | |||||||||
[in] | type | one of the possible VIDEOFILE_ types. | |||||||||
[in] | sizeP | size of the bitmap in X and Y pixels. | |||||||||
[in] | bitMapP | pointer to the bitmap image data. Data must be in either IMAGEFORMAT_BitMap or IMAGEFORMAT_RLEBitMap formats. | |||||||||
[in] | runLengthEncode | indicates whether the data has been compressed or not. The following data formats are assumed depending on the value of runLengthEncode:
| |||||||||
[in] | foregroundColorP | RGB value for the foreground color. This value is used only if type is not one of the monochrome types listed above. | |||||||||
[in] | backgroundColorP | RGB value for the background color. This value is used only if type is not one of the monochrome types listed above. |
VIDEOLIB_EXPORT int mdlVideo_createFileFromBuffer | ( | WCharCP | saveAsFileNameP, |
int | fileType, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
Point2d * | sizeP, | ||
byte * | imageDataP, | ||
int | imageFormat, | ||
void * | param1P, | ||
void * | param2P, | ||
void * | param3P, | ||
int | paletteSize, | ||
int | compressType | ||
) |
Creates a video file from an image buffer by using the imageFormat to determine how to best write the file.
[in] | saveAsFileNameP | full path name of the file to be created by this function. |
[in] | fileType | one of the VIDEOFILE_ constants in image.h identifying the format. |
[in] | colorMode | one of the COLORMODE_ constants in image.h identifying the color mode of the source buffer. |
[in] | sizeP | source image size in X and Y pixels. |
[in] | imageDataP | pointer to the source data in one of the indicated formats. |
[in] | imageFormat | one of the IMAGEFORMAT_ constants in image.h identifying the memory storage format. |
[in] | param1P | a pointer that has several uses depending on the imageFormat. (see below) |
[in] | param2P | a pointer that has several uses depending on the imageFormat. (see below) |
[in] | param3P | a pointer that has several uses depending on the imageFormat. (see below) |
[in] | paletteSize | the number of palette entries if the image format is IMAGEFORMAT_ByteMap, IMAGEFORMAT_GreyScale or IMAGEFORMAT_PackByte. |
[in] | compressType | compression ratio for JPEG images. Otherwise, it is not used. |
imageFormat Value | Function Used |
---|---|
IMAGEFORMAT_BitMap IMAGEFORMAT_RLEBitMap | mdlVideo_createFileFromBitMap |
IMAGEFORMAT_ByteMap IMAGEFORMAT_GreyScale | mdlVideo_extCreateFileFromMap |
IMAGEFORMAT_PackByte | mdlVideo_createFileFromPackByte or if JPEG, then mdlImage_extCreateFileFromRGB |
IMAGEFORMAT_RGBSeparate IMAGEFORMAT_RGB IMAGEFORMAT_RGBA | mdlVideo_extCreateFileFromRGB |
imageFormat Value | param1P usage |
---|---|
IMAGEFORMAT_BitMap IMAGEFORMAT_RLEBitMap | RgbColorDef *foregroundColorP |
IMAGEFORMAT_ByteMap IMAGEFORMAT_GreyScale IMAGEFORMAT_PackByte | byte *redMapP |
Other | unused |
imageFormat Value | param2P usage |
---|---|
IMAGEFORMAT_BitMap IMAGEFORMAT_RLEBitMap | RgbColorDef *backgroundColorP |
IMAGEFORMAT_ByteMap IMAGEFORMAT_GreyScale IMAGEFORMAT_PackByte | byte *grnMapP |
Other | unused |
imageFormat Value | param3P usage |
---|---|
IMAGEFORMAT_BitMap IMAGEFORMAT_RLEBitMap | unused |
IMAGEFORMAT_ByteMap IMAGEFORMAT_GreyScale IMAGEFORMAT_PackByte | byte *bluMapP |
Other | unused |
VIDEOLIB_EXPORT int mdlVideo_createFileFromMap | ( | WCharCP | name, |
int | type, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
Point2d * | sizeP, | ||
byte * | imageMapP, | ||
byte * | redPaletteP, | ||
byte * | grnPaletteP, | ||
byte * | bluPaletteP, | ||
int | paletteSize | ||
) |
Creates the video file specified by fileName, fileType and colorMode from a mapped image.
[in] | name | name of file. |
[in] | type | type of file (from image.h). |
[in] | colorMode | color mode (from image.h). |
[in] | sizeP | pointer to size of image in X and Y pixels. |
[in] | imageMapP | address of the image map with a single-byte color palette index for each of the (sizeP->x * sizeP->y) pixels. |
[in] | redPaletteP | red palette values. |
[in] | grnPaletteP | green palette values. |
[in] | bluPaletteP | blue palette values. |
[in] | paletteSize | specifies number of color palette entries. |
VIDEOLIB_EXPORT int mdlVideo_createFileFromRGB | ( | WCharCP | name, |
int | type, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
Point2d * | sizeP, | ||
byte * | imageBufferP | ||
) |
Creates the video file specified by fileName, fileType and colorMode from an RGB image.
[in] | name | name of file. |
[in] | type | type of file (from image.h). |
[in] | colorMode | color mode (from image.h). |
[in] | sizeP | pointer to size of image in X and Y pixels. |
[in] | imageBufferP | address of the image buffer with red, green and blue rows stored separately for each scan line. The size of imageBuffer should be (3 * sizeP->x * sizeP->y). |
VIDEOLIB_EXPORT int mdlVideo_createFli | ( | void ** | fliFilePP, |
Point2d * | sizeP, | ||
int | speed, | ||
WCharCP | fileName, | ||
bool | flcFormat | ||
) |
Creates an AutoDesk Animator FLI or FLC file.
These files contain an entire sequence of images, with each frame defined by the screen changes from the previous frame. MicroStation supports only mapped, 256 color FLI files.
The palette for each frame can be different, although on most players this causes distracting flicker.
Frames can be added to the file with either mdlVideo_appendFliFromRGB or mdlVideo_appendFliFromMap. When all frames have been added, mdlVideo_completeFli should be called to close the file and free the internal buffers.
[in,out] | fliFilePP | pointer to an internal structure created by this function. The contents of this structure are not published or required. This pointer is passed to the other FLI functions. |
[in] | sizeP | pointer to size of the frame in X and Y pixels. |
[in] | speed | desired playback speed in jiffies (1/60 of a second). |
[in] | fileName | full pathname of file to create. |
[in] | flcFormat | true to create FLC file. |
VIDEOLIB_EXPORT int mdlVideo_createMovie | ( | void ** | movieContextPP, |
DgnPlatform::MSMovie * | movieP, | ||
WCharCP | fileName, | ||
int | fileType | ||
) |
Begins the process of saving a sequence of images to disk.
In the case of FLI, FLC and AVI, the images are saved to a single animation file; whereas the other supported image formats save to a series of single image files.
[in,out] | movieContextPP | pointer to a buffer which is allocated to store information that will be needed by mdlVideo_addMovieFrame and mdlVideo_completeMovie. |
[in] | movieP | pointer to a DgnPlatform::MSMovie structure. There are members of this structure to specify the palette and size of a movie frame. For FLI, FLC and AVI formats, you must also specify a playback speed. |
[in] | fileName | specifies the name of the animation file for the single image formats FLI, FLC and AVI. For other formats which create a series of single image files, fileNameP must contain an imbedded frame number (e.g., FRAME001.TIF). |
[in] | fileType | specifies the image format for the animation sequence. These constants begin with IMAGEFILE_ and are defined in image.h. |
VIDEOLIB_EXPORT int mdlVideo_deleteMovieFrame | ( | DgnPlatform::MSMovie * | movieP, |
DgnPlatform::MSMovieFrame ** | framePP | ||
) |
mdlVideo_deleteMovieFrame deletes the frame framePP from the movie movieP.
[in,out] | movieP | pointer to the DgnPlatform::MSMovie structure for the movie sequence to be modified. |
[in] | framePP | frame to delete. |
VIDEOLIB_EXPORT int mdlVideo_extCreateFileFromMap | ( | WCharCP | name, |
int | type, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
Point2d * | sizeP, | ||
byte * | imageMapP, | ||
byte * | redPaletteP, | ||
byte * | grnPaletteP, | ||
byte * | bluPaletteP, | ||
int | paletteSize, | ||
int | compressType, | ||
byte * | transparencyP | ||
) |
Creates the video file specified by fileName, fileType and colorMode from a mapped image, allowing compression and transparency to be set.
[in] | name | name of file. |
[in] | type | type of file (from image.h). |
[in] | colorMode | color mode (from image.h). |
[in] | sizeP | pointer to size of image in X and Y pixels. |
[in] | imageMapP | address of the image map with a single-byte color palette index for each of the (sizeP->x * sizeP->y) pixels. |
[in] | redPaletteP | red palette values. |
[in] | grnPaletteP | green palette values. |
[in] | bluPaletteP | blue palette values. |
[in] | paletteSize | specifies number of color palette entries. |
[in] | compressType | the type of compression to use in creating the file (from image.h) |
[in] | transparencyP | the index of the transparency value, or the RGB triple to use for the transparency value. |
VIDEOLIB_EXPORT int mdlVideo_extCreateFileFromRGB | ( | WCharCP | name, |
int | type, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
Point2d * | sizeP, | ||
byte * | imageBufferP, | ||
int | compressType, | ||
byte * | transparencyP | ||
) |
Creates the video file specified by fileName, fileType and colorMode from an RGB image, allowing compression type and transparency to be set.
[in] | name | name of file. |
[in] | type | type of file (from image.h). |
[in] | colorMode | color mode (from image.h). |
[in] | sizeP | pointer to size of image in X and Y pixels. |
[in] | imageBufferP | address of the image buffer with red, green and blue rows stored separately for each scan line. The size of imageBuffer should be (3 * sizeP->x * sizeP->y). |
[in] | compressType | the type of compression to use in creating the file (from image.h) |
[in] | transparencyP | the index of the transparency value, or the RGB tripple to use for the transparency value. |
VIDEOLIB_EXPORT int mdlVideo_extendedSaveMovie | ( | WCharCP | fileName, |
int | fileType, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
DgnPlatform::MSMovie * | movieP, | ||
int | compression | ||
) |
Saves a movie sequence to a single animation file or series of single image files.
This function is similar to mdlVideo_saveMovie, but can additionally set the file compression, for those formats that support it.
[in] | fileName | specifies the name of the animation file for the single image formats FLI, FLC and AVI. For other formats which create a series of single image files, fileNameP must contain an imbedded frame number (e.g., FRAME001.TIF). |
[in] | fileType | specifies the image format for the animation sequence. These constants begin with IMAGEFILE_ and are defined in image.h. |
[in] | colorMode | specifies whether a imageP is to be saved as a true-color or mapped image. Color modes are defined in image.h and begin with COLORMODE_. |
[in] | movieP | pointer to a DgnPlatform::MSMovie structure. There are members of this structure to specify the palette and size of a movie frame. For FLI, FLC and AVI formats, you must also specify a playback speed. |
[in] | compression | specifies the type of compression to be used (from image.h), for those formats that support it./// |
VIDEOLIB_EXPORT void mdlVideo_freeMovie | ( | DgnPlatform::MSMovie * | movieP | ) |
mdlVideo_freeMovie frees the memory associated with a movie.
[in,out] | movieP | movie to free |
VIDEOLIB_EXPORT int mdlVideo_getExportSupport | ( | int * | defaultModeP, |
int * | rgbSupportP, | ||
int * | palette256SupportP, | ||
int * | palette16SupportP, | ||
int * | greyScaleSupportP, | ||
int * | monochromeSupportP, | ||
int | videoType | ||
) |
VIDEOLIB_EXPORT int mdlVideo_getExtension | ( | WCharP | ext, |
int | type | ||
) |
Returns the default three character file extension for the specified image format.
[out] | ext | default file extension (3 characters). |
[in] | type | video type (from image.h). |
VIDEOLIB_EXPORT int mdlVideo_insertMovie | ( | DgnPlatform::MSMovie * | movieP, |
DgnPlatform::MSMovieFrame * | insertFrameP, | ||
DgnPlatform::MSMovie * | insertMovieP, | ||
int | transitionType, | ||
int | transitionFrames, | ||
bool | stillTransition | ||
) |
Inserts the movie specified by insertMovieP into the movie movieP at insertFrameP.
Use mdlVideo_insertMovieFrame to inserts only a single frame.
[in,out] | movieP | pointer to the DgnPlatform::MSMovie structure for the movie sequence to be modified. |
[in] | insertFrameP | frame in movieP to insert at. |
[in] | insertMovieP | pointer to the DgnPlatform::MSMovie structure for the movie sequence to be inserted. |
[in] | transitionType | type of transition (cut, horizontal wipe, vertical wipe, fade) from image.h. |
[in] | transitionFrames | the number of frames that span the transition. |
[in] | stillTransition | If non-zero, the transition is made from the last frame of one sequence to the first frame of the next, otherwise the two sequences are overlapped for a rolling transition. |
VIDEOLIB_EXPORT int mdlVideo_insertMovieFrame | ( | DgnPlatform::MSMovie * | movieP, |
DgnPlatform::MSMovieFrame * | insertFrameP, | ||
byte * | rgbFrameP | ||
) |
Inserts a single frame from an RGB buffer into a movie sequence.
mdlVideo_insertMovie can be used to insert an entire sequence.
[in,out] | movieP | pointer to the DgnPlatform::MSMovie structure for the movie sequence to be modified. |
[in] | insertFrameP | frame in movieP to insert at. |
[in] | rgbFrameP | rgb buffer of frame to insert. |
VIDEOLIB_EXPORT bool mdlVideo_isAVIAvailable | ( | ) |
Determine whether the AVI file format is supported on the current MicroStation platform.
Often used in conjunction with mdlImage_getExportFormat when setting up file format options.
VIDEOLIB_EXPORT int mdlVideo_readMovie | ( | DgnPlatform::MSMovie * | movieP, |
WCharP | fileName, | ||
int | fileType, | ||
byte * | redMapP, | ||
byte * | grnMapP, | ||
byte * | bluMapP, | ||
int | paletteSize, | ||
double | gammaCorrection | ||
) |
Reads a sequence of images from a single animation file or a series of single image files and stores them in the DgnPlatform::MSMovie structure movieP.
If paletteSize zero, images will be read as true-color, otherwise redMapP, grnMapP, bluMapP and paletteSize specify the movie palette. Usually these will be the palette for the graphics screen on which the movie is to be displayed.
[out] | movieP | pointer to an DgnPlatform::MSMovie structure to be populated. Members of this structure include the palette and size of a movie frame. |
[in] | fileName | specifies the name of the animation file for the single file animation format (FLI). For other formats which read a series of single image files, fileName should point to the first image with an embedded numeric string in fileName, which will be incremented to read the remaining frames. For example, if fileName is test01.rgb, then test02.rgb, test03.rgb etc. are used for the additional frames. |
Currently, the only single file animation format supported is FLI (IMAGEFILE_FLI).
[in] | fileType | specifies the image format of the animation sequence. These constants begin with IMAGEFILE_ and are defined in image.h. |
[in] | redMapP | if paletteSize > 0, red palette values. |
[in] | grnMapP | if paletteSize > 0, green palette values. |
[in] | bluMapP | if paletteSize > 0, blue palette values. |
[in] | paletteSize | size of the palette to use, or 0 for ture color. |
[in] | gammaCorrection | gamma correction (1.0 means no correction). |
VIDEOLIB_EXPORT int mdlVideo_readMovieWithBuffering | ( | DgnPlatform::MSMovie * | movieP, |
WCharCP | fileName, | ||
int | fileType, | ||
byte * | redMapP, | ||
byte * | grnMapP, | ||
byte * | bluMapP, | ||
int | paletteSize, | ||
double | gammaCorrection, | ||
bool | firstFrameOnly | ||
) |
Reads a sequence of images from a single animation file or a series of single image files and stores them in the DgnPlatform::MSMovie structure movieP.
If paletteSize zero, images will be read as true-color, otherwise redMapP, grnMapP, bluMapP and paletteSize specify the movie palette. Usually these will be the palette for the graphics screen on which the movie is to be displayed. Unlike mdlVideo_readMovie, this function does not read in the actual images for the movie when called. It populates the DgnPlatform::MSMovie structure with frames and image names that can be used with mdlVideo_getBufferedMovieFrame to keep only a certain number of movie frames in memory at any given time.
[out] | movieP | pointer to an DgnPlatform::MSMovie structure to be populated. Members of this structure include the palette and size of a movie frame. |
[in] | fileName | specifies the name of the animation file for the single file animation format (FLI). For other formats which read a series of single image files, fileName should point to the first image with an embedded numeric string in fileName, which will be incremented to read the remaining frames. For example, if fileName is test01.rgb, then test02.rgb, test03.rgb etc. are used for the additional frames. |
Currently, the only single file animation format supported is FLI (IMAGEFILE_FLI).
[in] | fileType | specifies the image format of the animation sequence. These constants begin with IMAGEFILE_ and are defined in image.h. |
[in] | redMapP | if paletteSize > 0, red palette values. |
[in] | grnMapP | if paletteSize > 0, green palette values. |
[in] | bluMapP | if paletteSize > 0, blue palette values. |
[in] | paletteSize | size of the palette to use, or 0 for ture color. |
[in] | gammaCorrection | gamma correction (1.0 means no correction). |
[in] | firstFrameOnly | true to only read the first frame of the movie. |
VIDEOLIB_EXPORT int mdlVideo_saveMovie | ( | WCharP | fileName, |
int | fileType, | ||
DgnPlatform::ImageColorMode | colorMode, | ||
DgnPlatform::MSMovie * | movieP | ||
) |
Saves a movie sequence to a single animation file or series of single image files.
[in] | fileName | specifies the name of the animation file for the single image formats FLI, FLC and AVI. For other formats which create a series of single image files, fileNameP must contain an imbedded frame number (e.g., FRAME001.TIF). |
[in] | fileType | specifies the image format for the animation sequence. These constants begin with IMAGEFILE_ and are defined in image.h. |
[in] | colorMode | specifies whether a imageP is to be saved as a true-color or mapped image. Color modes are defined in image.h and begin with COLORMODE_. |
[in] | movieP | pointer to a DgnPlatform::MSMovie structure. There are members of this structure to specify the palette and size of a movie frame. For FLI, FLC and AVI formats, you must also specify a playback speed. |