androidcamera: Add video stabilization API
This commit is contained in:
parent
a79beef1c3
commit
eea2904e9d
@ -104,10 +104,12 @@ static struct
|
|||||||
jmethodID getSupportedSceneModes;
|
jmethodID getSupportedSceneModes;
|
||||||
jmethodID getSupportedWhiteBalance;
|
jmethodID getSupportedWhiteBalance;
|
||||||
jmethodID getVerticalViewAngle;
|
jmethodID getVerticalViewAngle;
|
||||||
|
jmethodID getVideoStabilization;
|
||||||
jmethodID getWhiteBalance;
|
jmethodID getWhiteBalance;
|
||||||
jmethodID getZoom;
|
jmethodID getZoom;
|
||||||
jmethodID getZoomRatios;
|
jmethodID getZoomRatios;
|
||||||
jmethodID isSmoothZoomSupported;
|
jmethodID isSmoothZoomSupported;
|
||||||
|
jmethodID isVideoStabilizationSupported;
|
||||||
jmethodID isZoomSupported;
|
jmethodID isZoomSupported;
|
||||||
jmethodID setAntibanding;
|
jmethodID setAntibanding;
|
||||||
jmethodID setColorEffect;
|
jmethodID setColorEffect;
|
||||||
@ -118,6 +120,7 @@ static struct
|
|||||||
jmethodID setPreviewFpsRange;
|
jmethodID setPreviewFpsRange;
|
||||||
jmethodID setPreviewSize;
|
jmethodID setPreviewSize;
|
||||||
jmethodID setSceneMode;
|
jmethodID setSceneMode;
|
||||||
|
jmethodID setVideoStabilization;
|
||||||
jmethodID setWhiteBalance;
|
jmethodID setWhiteBalance;
|
||||||
jmethodID setZoom;
|
jmethodID setZoom;
|
||||||
jmethodID unflatten;
|
jmethodID unflatten;
|
||||||
@ -371,6 +374,8 @@ _init_classes (void)
|
|||||||
getExposureCompensationStep, "()F");
|
getExposureCompensationStep, "()F");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getFlashMode,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getFlashMode,
|
||||||
"()Ljava/lang/String;");
|
"()Ljava/lang/String;");
|
||||||
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getFocalLength,
|
||||||
|
"()F");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getFocusMode,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getFocusMode,
|
||||||
"()Ljava/lang/String;");
|
"()Ljava/lang/String;");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters,
|
||||||
@ -408,6 +413,8 @@ _init_classes (void)
|
|||||||
getSupportedWhiteBalance, "()Ljava/util/List;");
|
getSupportedWhiteBalance, "()Ljava/util/List;");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getVerticalViewAngle,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getVerticalViewAngle,
|
||||||
"()F");
|
"()F");
|
||||||
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getVideoStabilization,
|
||||||
|
"()Z");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getWhiteBalance,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getWhiteBalance,
|
||||||
"()Ljava/lang/String;");
|
"()Ljava/lang/String;");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getZoom, "()I");
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, getZoom, "()I");
|
||||||
@ -415,6 +422,8 @@ _init_classes (void)
|
|||||||
"()Ljava/util/List;");
|
"()Ljava/util/List;");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, isSmoothZoomSupported,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, isSmoothZoomSupported,
|
||||||
"()Z");
|
"()Z");
|
||||||
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters,
|
||||||
|
isVideoStabilizationSupported, "()Z");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, isZoomSupported,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, isZoomSupported,
|
||||||
"()Z");
|
"()Z");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setAntibanding,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setAntibanding,
|
||||||
@ -437,6 +446,8 @@ _init_classes (void)
|
|||||||
"(Ljava/lang/String;)V");
|
"(Ljava/lang/String;)V");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setWhiteBalance,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setWhiteBalance,
|
||||||
"(Ljava/lang/String;)V");
|
"(Ljava/lang/String;)V");
|
||||||
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setVideoStabilization,
|
||||||
|
"(Z)V");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setZoom, "(I)V");
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, setZoom, "(I)V");
|
||||||
GST_DVM_GET_METHOD (android_hardware_camera_parameters, unflatten,
|
GST_DVM_GET_METHOD (android_hardware_camera_parameters, unflatten,
|
||||||
"(Ljava/lang/String;)V");
|
"(Ljava/lang/String;)V");
|
||||||
@ -3034,6 +3045,17 @@ gst_ahc_parameters_get_vertical_view_angle (GstAHCParameters * self)
|
|||||||
return angle;
|
return angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
gst_ahc_parameters_get_video_stabilization (GstAHCParameters * self)
|
||||||
|
{
|
||||||
|
JNIEnv *env = gst_dvm_get_env ();
|
||||||
|
gboolean ret;
|
||||||
|
|
||||||
|
ret = AHCP_CALL (return FALSE, Boolean, getVideoStabilization);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
const gchar *
|
const gchar *
|
||||||
gst_ahc_parameters_get_white_balance (GstAHCParameters * self)
|
gst_ahc_parameters_get_white_balance (GstAHCParameters * self)
|
||||||
{
|
{
|
||||||
@ -3111,6 +3133,17 @@ gst_ahc_parameters_is_smooth_zoom_supported (GstAHCParameters * self)
|
|||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
gst_ahc_parameters_is_video_stabilization_supported (GstAHCParameters * self)
|
||||||
|
{
|
||||||
|
JNIEnv *env = gst_dvm_get_env ();
|
||||||
|
gboolean supported;
|
||||||
|
|
||||||
|
supported = AHCP_CALL (return FALSE, Boolean, isVideoStabilizationSupported);
|
||||||
|
|
||||||
|
return supported;
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_ahc_parameters_is_zoom_supported (GstAHCParameters * self)
|
gst_ahc_parameters_is_zoom_supported (GstAHCParameters * self)
|
||||||
{
|
{
|
||||||
@ -3242,6 +3275,18 @@ gst_ahc_parameters_set_scene_mode (GstAHCParameters * self, const gchar * value)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
gst_ahc_parameters_set_video_stabilization (GstAHCParameters * self,
|
||||||
|
gboolean toggle)
|
||||||
|
{
|
||||||
|
JNIEnv *env = gst_dvm_get_env ();
|
||||||
|
|
||||||
|
AHCP_CALL (return FALSE, Void, setVideoStabilization, toggle);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_ahc_parameters_set_white_balance (GstAHCParameters * self,
|
gst_ahc_parameters_set_white_balance (GstAHCParameters * self,
|
||||||
const gchar * value)
|
const gchar * value)
|
||||||
|
@ -204,12 +204,15 @@ void gst_ahc_parameters_supported_scene_modes_free (GList * list);
|
|||||||
GList *gst_ahc_parameters_get_supported_white_balance (GstAHCParameters * self);
|
GList *gst_ahc_parameters_get_supported_white_balance (GstAHCParameters * self);
|
||||||
void gst_ahc_parameters_supported_white_balance_free (GList * list);
|
void gst_ahc_parameters_supported_white_balance_free (GList * list);
|
||||||
gfloat gst_ahc_parameters_get_vertical_view_angle (GstAHCParameters * self);
|
gfloat gst_ahc_parameters_get_vertical_view_angle (GstAHCParameters * self);
|
||||||
|
gboolean gst_ahc_parameters_get_video_stabilization (GstAHCParameters * self);
|
||||||
const gchar *gst_ahc_parameters_get_white_balance (GstAHCParameters * self);
|
const gchar *gst_ahc_parameters_get_white_balance (GstAHCParameters * self);
|
||||||
gint gst_ahc_parameters_get_zoom (GstAHCParameters * self);
|
gint gst_ahc_parameters_get_zoom (GstAHCParameters * self);
|
||||||
/* GList <int> */
|
/* GList <int> */
|
||||||
GList *gst_ahc_parameters_get_zoom_ratios (GstAHCParameters * self);
|
GList *gst_ahc_parameters_get_zoom_ratios (GstAHCParameters * self);
|
||||||
void gst_ahc_parameters_zoom_ratios_free (GList * list);
|
void gst_ahc_parameters_zoom_ratios_free (GList * list);
|
||||||
gboolean gst_ahc_parameters_is_smooth_zoom_supported (GstAHCParameters * self);
|
gboolean gst_ahc_parameters_is_smooth_zoom_supported (GstAHCParameters * self);
|
||||||
|
gboolean gst_ahc_parameters_is_video_stabilization_supported (
|
||||||
|
GstAHCParameters * self);
|
||||||
gboolean gst_ahc_parameters_is_zoom_supported (GstAHCParameters * self);
|
gboolean gst_ahc_parameters_is_zoom_supported (GstAHCParameters * self);
|
||||||
gboolean gst_ahc_parameters_set_antibanding (GstAHCParameters * self,
|
gboolean gst_ahc_parameters_set_antibanding (GstAHCParameters * self,
|
||||||
const gchar * antibanding);
|
const gchar * antibanding);
|
||||||
@ -231,6 +234,8 @@ gboolean gst_ahc_parameters_set_scene_mode (GstAHCParameters * self,
|
|||||||
const gchar * value);
|
const gchar * value);
|
||||||
gboolean gst_ahc_parameters_set_white_balance (GstAHCParameters * self,
|
gboolean gst_ahc_parameters_set_white_balance (GstAHCParameters * self,
|
||||||
const gchar * value);
|
const gchar * value);
|
||||||
|
gboolean gst_ahc_parameters_set_video_stabilization (GstAHCParameters * self,
|
||||||
|
gboolean toggle);
|
||||||
gboolean gst_ahc_parameters_set_zoom (GstAHCParameters * self, gint value);
|
gboolean gst_ahc_parameters_set_zoom (GstAHCParameters * self, gint value);
|
||||||
gboolean gst_ahc_parameters_unflatten (GstAHCParameters * self,
|
gboolean gst_ahc_parameters_unflatten (GstAHCParameters * self,
|
||||||
const gchar * flattened);
|
const gchar * flattened);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user