[Bug 760963] ahcsrc: Add an example using the android hardware camera
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Jan 25 22:59:48 PST 2016
https://bugzilla.gnome.org/show_bug.cgi?id=760963
--- Comment #4 from Justin J. Kim <justin.joy.9to5 at gmail.com> ---
Review of attachment 319672:
--> (https://bugzilla.gnome.org/review?bug=760963&attachment=319672)
::: tests/examples/androidcamera/jni/camera_test.c
@@ +202,3 @@
+ data->pipeline =
+ gst_parse_launch
+ ("ahcsrc ! video/x-raw,format=(string)NV21 ! glimagesink name=vsink
sync=false",
Okay, we can use the pipeline without caps filter.
However regarding sync property, it may show different results on different
devices.
On my LG V410 pad, flicker in every few seconds happens if sync is true.
About resolution, we can set resolution via caps filter currently because
there's no property for resolution in ahcsrc.
The pipeline might be "ahcsrc ! video/x-raw,width=(int)320,height=(int)240 !
glimagesink".
Regarding to resolution, I don't think we make sure the resolution is supported
in ahcsrc as a gstreamer element
because this is for android and there are easier way to gather the information
in java side.
Before building a pipeline, the android UI application should set the
resolution properly based on gathered information.
In addition, although android-hardware-camera.c has a function to set
resolution, it is used internally.
In my opinion, it's good to write comments here or in README about
restrictions, then make android app UI more abundant.
What do you think?
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the gstreamer-bugs
mailing list