Crop, 24 crop, 1 detailed description – Google Flix Engine Linux Reference Manual User Manual
Page 102: Deprecated functions, Defines

96
Flix Engine Linux Module Documentation
5.24
Crop
5.24.1
Detailed Description
The crop video filter is a filter used to isolate a subsection of an input image.
Filter Parameters:
Name
|
Type
| Opt/Reqd |
Range
=============================================================================
FE2_CROP_TOP
| Numeric
| Optional | [0,video height]
FE2_CROP_BOTTOM
| Numeric
| Optional | [0,video height]
FE2_CROP_LEFT
| Numeric
| Optional | [0,video width]
FE2_CROP_RIGHT
| Numeric
| Optional | [0,video width]
Example Usage:
sc = Flix2_AddFilter(&filter, flix, FE2_FILTER_CROP);
//set crop bounding box to (0,0,240,320) (t,l,b,r)
if(sc == ON2_OK)
sc = Flix2_FilterSetParam(filter, FE2_CROP_BOTTOM, 240);
if(sc == ON2_OK)
sc = Flix2_FilterSetParam(filter, FE2_CROP_RIGHT, 320);
Deprecated functions
•
(const
flix,
∗pCrop)
Determine if the crop filter is enabled.
•
flix, const
crop)
Enable/disable the crop filter.
•
on2sc editor_options_GetCropBounds
(const
flix,
∗pTop,
∗pLeft,
∗pBottom,
∗pRight)
Get the current bounding box used for cropping.
•
on2sc editor_options_SetCropBounds
flix, const
top, const
left,
const
bottom, const
right)
Set the current bounding box used for cropping.
Defines
• #define
Filter name for use with
• #define
Filter parameter for setting bounding box’s top coordinate.
• #define
Filter parameter for setting bounding box’s bottom coordinate.
Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen