The main differences include:
/usr/local/src/flixmodules/flixjava/doc
FLIX2HANDLE flix; Flix2_Create(&flix); /*...upon success flix holds the address of the handle...*/
$flixptr= new_flix2handlep();
Flix2_Create($flixptr);
$flix= flix2handlep_value($flixptr);
$flix
is now the handle to use in the remaining API calls, for example: Flix2_SetInputFile($flix,"/path/to/input.video");
delete_flix2handlep($flixptr);
##create a storage location for the filter handle $filterptr= new_flix2plgnhandlep(); Flix2_AddFilter($filterptr,$flix,FE2_FILTER_PNGEX); ##retrieve the value of the handle for use in the remaining filter functions $filter= flix2plgnhandlep_value($filterptr); Flix2_FilterSetParam($filter,FE2_PNGEX_AUTO_EXPORT_COUNT,10); ## ...encode... ##cleanup delete_flix2plgnhandlep($filterptr);
$filterptr
in subsequent calls to Flix2_AddFilter(). Note that you must retrieve the filter handle with flix2plgnhandlep_value()
each time.String a_string_constant= FlixEngine2.FE2_FILTER_PNGEX; try { codec.setParam(FlixEngine2.FE2_VP6_BITRATE,750.0) } catch (FlixException e) {}
##using the flix engine namespace package On2::flixengine2; $a_string_constant= $FE2_FILTER_PNGEX; $sc= Flix2_CodecSetParam($codec,$FE2_VP6_BITRATE,750); if($sc != $ON2_OK) {} ##or explicitly $a_string_constant= $On2::flixengine2::FE2_FILTER_PNGEX; $sc= Flix2_CodecSetParam($codec,$On2::flixengine2::FE2_VP6_BITRATE,750); if($sc != $On2::flixengine2::ON2_OK) {}
$a_string_constant= FE2_FILTER_PNGEX; $sc= Flix2_CodecSetParam($codec,FE2_VP6_BITRATE,750); if($sc != ON2_OK) {}
a_string_constant= flixengine2.FE2_FILTER_PNGEX
sc= flixengine2.Flix2_CodecSetParam(codec,flixengine2.FE2_VP6_BITRATE,750)
if(sc != flixengine2.ON2_OK):
try { boolean b = flix.IsEncoderRunning(); int w = flix.video_options_GetSourceWidth(); double d = flix.video_options_GetVideoFramerateAsDouble(); } catch (FlixException e) {}
##in separate scalars #boolean ($sc,$b)= Flix2_IsEncoderRunning($flix); #integer ($sc,$w)= video_options_GetSourceWidth($flix); #double ($sc,$fps)= video_options_GetVideoFramerateAsDouble($flix); ##or in one array, sc is $res[0], value is $res[1] #boolean @res= Flix2_IsEncoderRunning($flix); #integer @res= video_options_GetSourceWidth($flix); #double @res= video_options_GetVideoFramerateAsDouble($flix);
##sc is $res[0], value is $res[1] #boolean $res= Flix2_IsEncoderRunning($flix); #integer $res= video_options_GetSourceWidth($flix); #double $res= video_options_GetVideoFramerateAsDouble($flix);
##sc is res[0], value is res[1] #boolean res= flixengine2.Flix2_IsEncoderRunning(flix) #integer res= flixengine2.video_options_GetSourceWidth(flix) #double res= flixengine2.video_options_GetVideoFramerateAsDouble(flix)