Justin Kim [Thu, 24 Dec 2015 03:14:24 +0000 (12:14 +0900)]
move androidcamera into androidmedia
This commit is a part of portng android hardware camera from 0.10 implementation.
To preserve history and get diff clearly, the interesting files are moved to
deployment directory and the remaining files are removed.
Youness Alaoui [Mon, 7 Jan 2013 23:27:40 +0000 (18:27 -0500)]
androidcamera: Separate release and free APIs
Youness Alaoui [Mon, 7 Jan 2013 23:20:47 +0000 (18:20 -0500)]
androidmedia: Fix get_level and get_profile exception checking by not using return
Youness Alaoui [Mon, 7 Jan 2013 23:19:28 +0000 (18:19 -0500)]
androidmedia: Add extern gint declarations
Youness Alaoui [Mon, 7 Jan 2013 23:18:18 +0000 (18:18 -0500)]
gstdvm: Fix GST_DVM_GET_STATIC_FIELD
Youness Alaoui [Fri, 30 Nov 2012 01:10:19 +0000 (20:10 -0500)]
androidcamera: Small refactor in case open doesn't throw an exception but returns null
Sebastian Dröge [Thu, 13 Dec 2012 17:57:58 +0000 (17:57 +0000)]
androidcamera: Fix some compiler warnings
Sebastian Dröge [Thu, 13 Dec 2012 17:56:01 +0000 (17:56 +0000)]
dvm: Rename gst-dvm.[ch] to gstdvm.[ch] for consistency with other GStreamer code
Sebastian Dröge [Thu, 13 Dec 2012 17:40:22 +0000 (17:40 +0000)]
dvm: Add new function to check if we started a VM or only used an existing one
Sebastian Dröge [Thu, 13 Dec 2012 17:40:04 +0000 (17:40 +0000)]
androidmedia: Make everything compile with the new wrappers
Sebastian Dröge [Thu, 13 Dec 2012 12:13:27 +0000 (12:13 +0000)]
androidmedia: Add remaining bits of the Java wrappers using libgstdvm
Sebastian Dröge [Thu, 13 Dec 2012 12:13:12 +0000 (12:13 +0000)]
dvm: Add some more helper macros
Sebastian Dröge [Wed, 12 Dec 2012 18:10:13 +0000 (18:10 +0000)]
androidmedia: Remove g_return_if_fails()
This is not public API so it has no advantage to have them here.
Youness Alaoui [Thu, 29 Nov 2012 01:53:51 +0000 (20:53 -0500)]
androidmedia: Use gst-dvm and refactor java wrappers (WIP)
Moved the java wrapper API into its own files and made use of the
gst-dvm macros. Also renamed the API to have the proper naming
convention and coding style in order to match the one in androidcamera.
This is a work in progress! "android/media/MediaCodecList" is still missing
and the actual elements have not been ported to use the new function names.
Youness Alaoui [Wed, 28 Nov 2012 20:26:49 +0000 (15:26 -0500)]
androidcamera: Add G_BEGIN/END_DECLS to the .h
Youness Alaoui [Wed, 28 Nov 2012 00:25:06 +0000 (19:25 -0500)]
gst-dvm: Create a gst-dvm library using part of androidcamera
Youness Alaoui [Tue, 27 Nov 2012 22:24:35 +0000 (17:24 -0500)]
androidcamera: Adding a device-name property
Youness Alaoui [Wed, 21 Nov 2012 00:56:22 +0000 (19:56 -0500)]
androidcamera: Add element documentation
Youness Alaoui [Mon, 19 Nov 2012 23:25:12 +0000 (18:25 -0500)]
androidcamera: Prettify the gstahccallback.c generation line in the makefile
Youness Alaoui [Thu, 15 Nov 2012 17:33:26 +0000 (12:33 -0500)]
androicamera: Make sure the TMP env var exists and check for DEX var too
Youness Alaoui [Wed, 14 Nov 2012 16:38:51 +0000 (11:38 -0500)]
androidcamera: Do not use gst_list_free_full since it requires glib 2.28
Youness Alaoui [Mon, 12 Nov 2012 23:59:57 +0000 (18:59 -0500)]
androidcamera: Add smooth-zoom property for smooth zooming feature
Youness Alaoui [Mon, 12 Nov 2012 23:19:20 +0000 (18:19 -0500)]
androidcamera: Add focal-length, view-angle and video-stabilization properties
Youness Alaoui [Mon, 12 Nov 2012 23:18:11 +0000 (18:18 -0500)]
androidcamera: Add video stabilization API
Youness Alaoui [Mon, 12 Nov 2012 21:38:40 +0000 (16:38 -0500)]
androidcamera: Add property probe for the photography properties
Youness Alaoui [Fri, 9 Nov 2012 23:21:21 +0000 (18:21 -0500)]
androidcamera: Small refactor
Youness Alaoui [Fri, 9 Nov 2012 21:57:30 +0000 (16:57 -0500)]
androidcamera: Fix small memleak
Youness Alaoui [Fri, 9 Nov 2012 21:55:57 +0000 (16:55 -0500)]
androidcamera: Store GParamSpec for properties and use that for the PropertyProbe comparison
Youness Alaoui [Fri, 9 Nov 2012 17:23:37 +0000 (12:23 -0500)]
androidcamera: Handle zoom comparison better, and avoid float precision issue
Youness Alaoui [Fri, 9 Nov 2012 17:22:12 +0000 (12:22 -0500)]
androidcamera: Fix EV compensation support
Youness Alaoui [Thu, 8 Nov 2012 00:16:05 +0000 (19:16 -0500)]
androidcamera: Implement new GstPhotography enums
Youness Alaoui [Wed, 7 Nov 2012 20:38:19 +0000 (15:38 -0500)]
androidcamera: Do not advertise zoom capabilities if camera doesn't support zoom
Youness Alaoui [Wed, 7 Nov 2012 20:37:43 +0000 (15:37 -0500)]
androidcamera: Be NULL-safe when a JNI list is returned
Youness Alaoui [Fri, 2 Nov 2012 22:07:24 +0000 (18:07 -0400)]
androidcamera: Use strcmp on the GParamSpec property name
Use strcmp instead of using the property_id because it's overriden
Youness Alaoui [Fri, 2 Nov 2012 22:00:55 +0000 (18:00 -0400)]
androidmedia: Implement property probe for zoom and ev_compensation
Youness Alaoui [Fri, 2 Nov 2012 21:00:45 +0000 (17:00 -0400)]
androidcamera: Add autofocus support
Youness Alaoui [Fri, 2 Nov 2012 20:59:42 +0000 (16:59 -0400)]
androidcamera: Override properties
Youness Alaoui [Thu, 1 Nov 2012 19:24:12 +0000 (15:24 -0400)]
anroidcamera: Add support for the GstPhotography interface
Youness Alaoui [Thu, 1 Nov 2012 15:58:33 +0000 (11:58 -0400)]
androidcamera: Add more wrappers for the Camera.Parameters class
Youness Alaoui [Wed, 31 Oct 2012 18:21:47 +0000 (14:21 -0400)]
androidcamera: Send proper error when unable to open camera
Youness Alaoui [Tue, 30 Oct 2012 16:13:12 +0000 (12:13 -0400)]
androidcamera: Adding device-orientation and device-facing properties
Youness Alaoui [Tue, 30 Oct 2012 15:35:36 +0000 (11:35 -0400)]
androidcamera: Add device property and property probe it
Youness Alaoui [Tue, 30 Oct 2012 14:12:06 +0000 (10:12 -0400)]
androidcamera: Fix memleak and lose of buffer if the data queue is flushing
Youness Alaoui [Tue, 30 Oct 2012 13:49:39 +0000 (09:49 -0400)]
androidcamera: Calling set_preview_callback with NULL frees all the buffers in the queue.
We must not do it at the stop otherwise we lose all our buffers. It's best to do
it during the close, so we free up the resources.
Youness Alaoui [Tue, 30 Oct 2012 13:49:03 +0000 (09:49 -0400)]
androidcamera: Drop frames if we don't have a clock and var rename
Youness Alaoui [Tue, 30 Oct 2012 13:45:55 +0000 (09:45 -0400)]
androicamera: if buffer size increases, then readd new buffers to the queue and drop old ones
The on_preview callback gets called with NULL if the buffer in the queue is
too small, so we need to handle the case where the array is NULL. Also
there is a bug in the android source which makes it drop one of the buffers
so if we had 5 buffers, and we renegotiate to a higher resolution, then we'd
only get 4 calls to on_preview_frame with NULL, with one being dropped.
This means we can't reallocate the buffers in the if (data == NULL) case
because we might end up with 0 buffers in the end.
Youness Alaoui [Tue, 30 Oct 2012 13:44:31 +0000 (09:44 -0400)]
androidcamera: If callback is NULL then set it to NULL in jni
Nicolas Dufresne [Thu, 21 Jan 2016 18:46:52 +0000 (13:46 -0500)]
androidcamera: Fix debug output
Sebastian Dröge [Fri, 26 Oct 2012 10:57:50 +0000 (12:57 +0200)]
androidcamera: Chose the smallest range that contains the target framerate
Sebastian Dröge [Fri, 26 Oct 2012 10:43:09 +0000 (12:43 +0200)]
androidcamera: Improve negotiation
And make sure we set an FPS range from the supported ones
now instead of a potentially unsupported range.
Sebastian Dröge [Fri, 26 Oct 2012 10:19:55 +0000 (12:19 +0200)]
androidcamera: Implement LATENCY query
Sebastian Dröge [Fri, 26 Oct 2012 09:57:47 +0000 (11:57 +0200)]
androidcamera: Make sure we always have a valid camera source instance in the buffer free function
Sebastian Dröge [Fri, 26 Oct 2012 09:46:23 +0000 (11:46 +0200)]
androidcamera: Make sure to not call any callbacks after stopping the camera
Fixes segfaults when rotating the device for example.
Youness Alaoui [Wed, 24 Oct 2012 19:25:54 +0000 (15:25 -0400)]
androidcamera: Fix timestamping issue
Youness Alaoui [Wed, 24 Oct 2012 17:59:59 +0000 (13:59 -0400)]
androidcamera: Add caps negotiation support
Youness Alaoui [Wed, 24 Oct 2012 14:55:52 +0000 (10:55 -0400)]
Add support for getcaps that probes the camera for capabilities
Youness Alaoui [Tue, 23 Oct 2012 17:54:46 +0000 (13:54 -0400)]
androidmedia: Drop the first buffer to have proper timestamping
Youness Alaoui [Tue, 23 Oct 2012 15:14:00 +0000 (11:14 -0400)]
androidmedia: Flush the queue when the source is stopped
Youness Alaoui [Tue, 23 Oct 2012 15:13:37 +0000 (11:13 -0400)]
androidmedia: Allocate/free texture when camera is open/closed
Youness Alaoui [Tue, 23 Oct 2012 15:13:12 +0000 (11:13 -0400)]
androidmedia: add a gst_ahc_src_close function
Youness Alaoui [Tue, 23 Oct 2012 15:12:19 +0000 (11:12 -0400)]
androidmedia: Fix small indentation issues
Youness Alaoui [Tue, 23 Oct 2012 14:12:52 +0000 (10:12 -0400)]
androidmedia: Disable plugin if android-sdk isn't found and dynamically search for platform version
Youness Alaoui [Tue, 23 Oct 2012 13:01:50 +0000 (09:01 -0400)]
androidcamera: Add support for using DexLoader with Embeded GstAhcCallback.jar
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
androidcamera: Fix compilation issues
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Remove previous cruft and create androidcamera plugin
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Free the buffers and readd the arrays when the queue is cleared
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Add a GST_DVM_CALL macro to ease function calling with exception check
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Calculate timestamp at reception of the buffer, not when pushing it out
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Make the number of callback buffers configurable, and delete their local ref
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Use GstDataQueue instead of GAsyncQueue for storing buffers
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Use the buffer's free_func to map byteArray data without making a copy
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Remove open failure test code and debug log
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Use YV12 as the default format
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Add a deinit function and remove jclass references in case of error
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
SurfaceTexture constructure needs texture_id
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Add ahcsrc Camera source element prototype
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Add android.hardware.Camera (and deps) JNI wrappers
Youness Alaoui [Wed, 17 Oct 2012 23:42:59 +0000 (19:42 -0400)]
Adding Dalvik Virtual Machine routines and macros
Youness Alaoui [Wed, 17 Oct 2012 21:56:33 +0000 (17:56 -0400)]
androidmedia: Add androidmedia plugin
Sebastian Dröge [Fri, 15 Jan 2016 13:31:54 +0000 (14:31 +0100)]
spandsp: Add tone generator
Hyunjun Ko [Tue, 14 Jul 2015 04:40:46 +0000 (13:40 +0900)]
mpegtsmux: set non-0 payload length in PES header if video ES packet is small enough
https://bugzilla.gnome.org/show_bug.cgi?id=748507
Hyunjun Ko [Tue, 14 Jul 2015 04:42:54 +0000 (13:42 +0900)]
mpegtsmux: reset pes_bytes_written when starting to write new PES packet
In case of an unbounded packet (video usually), pes_bytes_written was
no reset.
https://bugzilla.gnome.org/show_bug.cgi?id=748507
Tim-Philipp Müller [Tue, 19 Jan 2016 17:08:50 +0000 (17:08 +0000)]
mpegtsmux: add support for H.265/HEVC video
https://bugzilla.gnome.org/show_bug.cgi?id=744367
Tim-Philipp Müller [Tue, 19 Jan 2016 13:20:23 +0000 (13:20 +0000)]
gl: fix compiler warnings with gcc-6
In file included from effects/gstgleffectrgbtocurve.c:25:0:
effects/gstgleffectscurves.h:174:32: error: 'xray_curve' defined but not used
static const GstGLEffectsCurve xray_curve = {
...
Tim-Philipp Müller [Tue, 19 Jan 2016 08:39:58 +0000 (08:39 +0000)]
libs: g-i: fix init section to avoid compiler warnings
..GstPlayer-1.0.c: In function ‘main’:
..GstPlayer-1.0.c:587:3: warning: implicit declaration of function ‘gst_init’
https://bugzilla.gnome.org/show_bug.cgi?id=760090
Alessandro Decina [Tue, 19 Jan 2016 08:18:43 +0000 (19:18 +1100)]
applemedia: vtenc: fix build on iOS
Alessandro Decina [Tue, 19 Jan 2016 04:50:22 +0000 (15:50 +1100)]
applemedia: always fill GstBuffers with GstMemory
Always fill buffers with our custom memory. The custom memory will avoid
mapping CV/CM buffers unless necessary.
Ilya Konstantinov [Sat, 18 Apr 2015 21:30:48 +0000 (00:30 +0300)]
applemedia: implement copying of meta
Before this, buffers would lose their Core Video / Core Media meta
over intervideo* boundary.
https://bugzilla.gnome.org/show_bug.cgi?id=747216
Ilya Konstantinov [Thu, 2 Apr 2015 17:04:18 +0000 (20:04 +0300)]
applemedia: implement GstAppleCoreVideoMemory
Implement a new memory type wrapping CVPixelBuffer.
There are two immediate advantages:
a) Make the GstMemory itself retain the CVPixelBuffer. Previously,
the containing GstBuffer was solely responsible for the lifetime of
the backing CVPixelBuffer.
With this change, we remove the GST_MEMORY_FLAG_NO_SHARE so that
GstMemory objects be referenced by multiple GstBuffers (doing away
with the need to copy.)
b) Delay locking CVPixelBuffer into CPU memory until it's actually
mapped -- possibly never.
The CVPixelBuffer object is shared among references, shares and
(in planar formats) planes, so a wrapper GstAppleCoreVideoPixelBuffer
structure was introduced to manage locking.
https://bugzilla.gnome.org/show_bug.cgi?id=747216
Alessandro Decina [Tue, 19 Jan 2016 01:56:40 +0000 (12:56 +1100)]
applemedia: iosurfacememory: alloc with g_new0
...since the base class doesn't use g_slice anymore
Florin Apostol [Fri, 8 Jan 2016 11:04:13 +0000 (11:04 +0000)]
dashdemux: added check that availabilityStartTime is present for live streams
https://bugzilla.gnome.org/show_bug.cgi?id=757602
Florin Apostol [Wed, 4 Nov 2015 18:15:24 +0000 (18:15 +0000)]
adaptivedemux: improved error message if availabilityStartTime is missing for a live stream
For a live mpd, if availabilityStartTime is missing, adaptive demux asserts
with: Unexpected critical/warning: gst_date_time_to_g_date_time: assertion
'datetime != NULL' failed.
This patch improves the error message to:
Unexpected critical/warning: gst_mpd_client_seek_to_time: assertion
'client->mpd_node->availabilityStartTime != NULL' failed
https://bugzilla.gnome.org/show_bug.cgi?id=757602
Florin Apostol [Thu, 14 Jan 2016 18:27:50 +0000 (18:27 +0000)]
tests: adaptive-stremaing: fix memory leak in test_http_src
https://bugzilla.gnome.org/show_bug.cgi?id=760600
Matt Crane [Fri, 15 Jan 2016 15:49:12 +0000 (10:49 -0500)]
shmsink: fix possible deadlock in _render()/ _allocator_free()
Drop object lock before unrefing memory, otherwise the object
lock might be taken again from the allocator and then things
deadlock.
https://bugzilla.gnome.org/show_bug.cgi?id=760551
Sebastian Dröge [Sat, 16 Jan 2016 15:14:54 +0000 (17:14 +0200)]
glfilter: First make caps writable in fixate_caps(), then truncate them
Truncating requires writable caps.
Sebastian Dröge [Sat, 16 Jan 2016 15:12:29 +0000 (17:12 +0200)]
glcolorconvert: Caps passed to fixate_caps() are not owned by us and guaranteed to be fixed
So don't try to fixate them, which takes ownership and steals them from
basetransform.
https://bugzilla.gnome.org/show_bug.cgi?id=760696
Sebastian Dröge [Sat, 16 Jan 2016 14:55:42 +0000 (16:55 +0200)]
Revert "glpool: fix caps refcount issue"
This reverts commit
3bdcdedfa00b87f1db505218789178318a16c743.
gst_caps_replace() takes a new reference already, if there is a problem then
it is elsewhere. And there are a few problems, see
https://bugzilla.gnome.org/show_bug.cgi?id=760696
Luis de Bethencourt [Fri, 15 Jan 2016 16:10:02 +0000 (16:10 +0000)]
rtph265depay: fix unneeded sub-buffer creation
We create a sub-buffer just to copy over its metas and then throw it
away immediately, just use the original input buffer directly.
Luis de Bethencourt [Fri, 15 Jan 2016 15:56:59 +0000 (15:56 +0000)]
rtph265pay: add "send VPS/SPS/PPS with every key frame" mode
It's not enough to have timeout or event based VPS/SPS/PPS information
sent in RTP packets. There are some scenarios when key frames may appear
more frequently than once a second, in which case the minimum timeout
for "config-interval" of 1 second for sending VPS/SPS/PPS isn't enough.
It might also be desirable in general to make sure the VPS/SPS/PPS is
available with every keyframe (packet loss aside), so receivers can
actually pick up decoding immediately from the first keyframe if
VPS/SPS/PPS is not signaled out of band.
This commit adds the possibility to send VPS/SPS/PPS with every key frame.
This mode can be enabled by setting "config-interval" property to -1. In
this case the payloader will add VPS, SPS and PPS before every key (IDR)
frame.
https://bugzilla.gnome.org/show_bug.cgi?id=757892
Luis de Bethencourt [Fri, 15 Jan 2016 15:19:41 +0000 (15:19 +0000)]
rtph265pay: change config-interval property type from uint to int
This way we can use -1 as special value, which is nicer than MAXUINT.
https://bugzilla.gnome.org/show_bug.cgi?id=757892