--background--
HISTORY
51.1 (10.10.2012) - Initial release. 52.2 (30.11.2013) - Metadata API support, DPI saving 52.3 (11.09.2014) - Setting compression added
DESCRIPTION
The class converts Reggae common video formats into PNG stream. On input port it accepts Reggae video format: - MMFC_VIDEO_ARGB32, MMF_VIDEO_RGB24, MMF_VIDEO_GRAY8, Video data may be converted to following formats: - MMF_VIDEO_PNG.
NEW METHODS
OM_NEW OM_DISPOSE MMM_Pull
MMM_Pull
Converts block of PCM video data (V51)
SYNOPSIS
LONG DoMethod(obj, MMM_Pull, buffer, bytes);
DESCRIPTION
Gets video data in one of Reggae base formats from its input. Converts it, then stores in a buffer specified
INPUTS
buffer - buffer to store data. It must be aligned for AltiVec
(preferrably allocated with MediaAllocVec()).
bytes - number of bytes requested on output. It will be rounded down to
nearest pixel boundary
OM_DISPOSE
Disposes png.encoder object (V51)
SYNOPSIS
DisposeObject(obj);
DESCRIPTION
Frees processing buffer, disposes object
OM_NEW
Creates new png.encoder object (V51)
SYNOPSIS
obj = NewObject(NULL, "png.encoder", ...);
DESCRIPTION
Creates a new object with default settings. The default input format is MMFC_VIDEO_ARGB32. The default output format is MMF_VIDEO_PNG. Usually input format is later set when object's input is connected to the data source. Output format is either set when object's output is connected to data receiver, or set explicitly by application
RESULT
Object pointer or NULL when construction fails. MMA_ErrorCode may be used to get reason of failure. The only reason for fail may be out of memory