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_FilterSetParamAsStr(filter, FE2_CROP_BOTTOM, 240); if(sc == ON2_OK) sc = Flix2_FilterSetParamAsStr(filter, FE2_CROP_RIGHT, 320);
Deprecated functions | |
| on2sc | editor_options_GetCrop (const FLIX2HANDLE flix, on2bool *pCrop) |
| Determine if the crop filter is enabled. | |
| on2sc | editor_options_SetCrop (FLIX2HANDLE flix, const on2bool crop) |
| Enable/disable the crop filter. | |
| on2sc | editor_options_GetCropBounds (const FLIX2HANDLE flix, int32_t *pTop, int32_t *pLeft, int32_t *pBottom, int32_t *pRight) |
| Get the current bounding box used for cropping. | |
| on2sc | editor_options_SetCropBounds (FLIX2HANDLE flix, const int32_t top, const int32_t left, const int32_t bottom, const int32_t right) |
| Set the current bounding box used for cropping. | |
Defines | |
| #define | FE2_FILTER_CROP |
| Filter name for use with Flix2_AddFilter(). | |
| #define | FE2_CROP_TOP |
| Filter parameter for setting bounding box's top coordinate. | |
| #define | FE2_CROP_BOTTOM |
| Filter parameter for setting bounding box's bottom coordinate. | |
| #define | FE2_CROP_LEFT |
| Filter parameter for setting bounding box's left coordinate. | |
| #define | FE2_CROP_RIGHT |
| Filter parameter for setting bounding box's right coordinate. | |
| #define FE2_CROP_BOTTOM |
| #define FE2_CROP_LEFT |
| #define FE2_CROP_RIGHT |
| #define FE2_CROP_TOP |
| #define FE2_FILTER_CROP |
| on2sc editor_options_GetCrop | ( | const FLIX2HANDLE | flix, | |
| on2bool * | pCrop | |||
| ) |
Determine if the crop filter is enabled.
| [in] | flix | Handle to the Flix Engine returned from Flix2_Create() or Flix2_CreateEx() |
| [out] | pCrop | Variable to update with the current crop enable status |
| ON2_OK | The crop enable status was successfully retrieved from the engine. | |
| ON2_NET_ERROR | The underlying communication layer failed. |
| on2sc editor_options_GetCropBounds | ( | const FLIX2HANDLE | flix, | |
| int32_t * | pTop, | |||
| int32_t * | pLeft, | |||
| int32_t * | pBottom, | |||
| int32_t * | pRight | |||
| ) |
Get the current bounding box used for cropping.
| [in] | flix | Handle to the Flix Engine returned from Flix2_Create() or Flix2_CreateEx() |
| [out] | pTop | Topmost row of the cropped area |
| [out] | pLeft | Leftmost column of the cropped area |
| [out] | pBottom | Bottommost row of the cropped area |
| [out] | pRight | Rightmost row of the cropped area |
| ON2_OK | The crop bounding box was successfully retrieved from the engine. | |
| ON2_NET_ERROR | The underlying communication layer failed. |
| on2sc editor_options_SetCrop | ( | FLIX2HANDLE | flix, | |
| const on2bool | crop | |||
| ) |
Enable/disable the crop filter.
| [in] | flix | Handle to the Flix Engine returned from Flix2_Create() or Flix2_CreateEx() |
| [in] | crop | New crop enable status. on2true to enable, on2false to disable. |
| ON2_OK | The crop enable status was successfully set in the engine. | |
| ON2_NET_ERROR | The underlying communication layer failed. |
| on2sc editor_options_SetCropBounds | ( | FLIX2HANDLE | flix, | |
| const int32_t | top, | |||
| const int32_t | left, | |||
| const int32_t | bottom, | |||
| const int32_t | right | |||
| ) |
Set the current bounding box used for cropping.
| [in] | flix | Handle to the Flix Engine returned from Flix2_Create() or Flix2_CreateEx() |
| [in] | top | Topmost row of the cropped area |
| [in] | left | Leftmost column of the cropped area |
| [in] | bottom | Bottommost row of the cropped area |
| [in] | right | Rightmost row of the cropped area |
| ON2_OK | The crop bounding box was successfully set in the engine. | |
| ON2_NET_ERROR | The underlying communication layer failed. |
Flix Engine Linux documentation, generated on Mon May 19 10:56:11 2008 by
doxygen 1.5.2