summaryrefslogtreecommitdiff
path: root/sys/androidmedia
AgeCommit message (Collapse)AuthorFilesLines
2018-08-31androidmedia/meson: we also depend on gmodule and orcMatthew Waters1-1/+1
2018-08-29meson: Add build files for androidmedia and openslesNirbheek Chauhan1-0/+41
Note that androidmedia requires Android gstgl
2018-06-15androidmedia: Invert the transform matrix from the decoderJan Schmidt1-1/+64
The transform from mediacodec applies to the texture coords, but GStreamer affine meta applies to the video geometry, which is the opposite - so invert it to get display correct for decoders that require transforming
2018-01-26ahc: enable autofocus callbackJustin Kim1-3/+3
It should be enabled to set autofocus properly, but it seems to be commented out mistakenly from the first commit. https://bugzilla.gnome.org/show_bug.cgi?id=790945
2017-12-19gl: update plugins to use GstGL from -baseTim-Philipp Müller1-3/+3
2017-12-06androidmedia: when flushing, better handle IllegalStateException received ↵Ursula Maplehurst3-15/+30
from getOutputBuffer 1. Similar to 880f3d8, don't consider not getting an output buffer as an error during flushing. I've seen the following sometimes when encoding: W GStreamer+amcvideoenc: java.lang.IllegalStateException W GStreamer+amcvideoenc: at android.media.MediaCodec.getBuffer(Native Method) W GStreamer+amcvideoenc: at android.media.MediaCodec.getOutputBuffer(MediaCodec.java:2886) 2. For amcvideodec/enc, call _find_nearest_frame (which grabs a fresh reference on a GstVideoCodecFrame) after we have an output buffer, so as to not leak the reference, in case getting an output buffer fails. Otherwise, if we get an error grabbing the output buffer, we leak the reference to the frame. This can cause issues with a v4l2bufferpool feeding the encoder not being able to clean itself up properly due to buffers still being marked as in-use. https://bugzilla.gnome.org/show_bug.cgi?id=791258
2017-09-05amc: actually use the provided application class loaderMatthew Waters3-5/+12
For the camera and sensor Fixes a couple of ClassNotFound java exceptions when initializing GStreamer off the main thread.
2017-05-18amcvideodec: Unref downstream caps after usageSebastian Dröge1-0/+2
https://bugzilla.gnome.org/show_bug.cgi?id=782771
2017-05-16Remove plugin specific static build optionNicolas Dufresne1-1/+0
Static and dynamic plugins now have the same interface. The standard --enable-static/--enable-shared toggle are sufficient.
2017-04-26amcvideodec/enc: Correctly check for no PTS on input buffersshakin chou2-2/+4
MediaCodec gives us a presentation timestamp of 0 if it does not know anything, but GStreamer gives us GST_CLOCK_TIME_NONE. Don't mix up these two. https://bugzilla.gnome.org/show_bug.cgi?id=780190
2017-04-12docs: Port all docstring to gtk-doc markdownThibault Saunier2-21/+18
2017-03-13gl/format: use our own GL format enum's instead of gstvideo'sMatthew Waters1-1/+1
They can describe in more detail (such as component sizes) the requested format.
2017-02-08amcvideoenc: Encoder output is generally not properly parsedSebastian Dröge1-3/+2
Don't claim it is and let h264parse and other parsers do their job. https://bugzilla.gnome.org/show_bug.cgi?id=774772
2017-02-08amcvideoenc: Set timestamps on header buffers tooSebastian Dröge1-0/+3
https://bugzilla.gnome.org/show_bug.cgi?id=774772
2017-02-08amcvideoenc: Encoded H264 is generally not AU alignedSebastian Dröge1-2/+1
Claiming that it is, can cause h264parse to skip some parsing steps and the output stays unaligned. https://bugzilla.gnome.org/show_bug.cgi?id=774772
2017-01-13androidmedia: Use proper instance nameEdward Hervey1-1/+1
2017-01-13amcvideodec: fix build error from change in libgstglMatthew Waters1-0/+2
gstamcvideodec.c: In function 'gst_amc_video_dec_src_query': gstamcvideodec.c:2412:55: error: 'self' undeclared (first use in this function) if (gst_gl_handle_context_query ((GstElement *) self, query,
2017-01-13gl: update sys dependants for function removalsMatthew Waters1-59/+7
4315a4b54d9 forgot to change the androidmedia/videotoolbox/caopengllayer sources as required.
2017-01-05androidmedia: Add support for Opus in the decoderSebastian Dröge2-0/+7
2017-01-05androidmedia: Silently skip COLOR_FormatAndroidOpaque when converting to capsSebastian Dröge1-0/+5
This is special and handled in the decoder when doing rendering to a surface. Printing a warning for this is just unnecessary noise
2017-01-04androidmedia: Add support for VP9Sebastian Dröge3-0/+13
2017-01-03androidmedia: Actively request the Java VM from the applicationSebastian Dröge1-0/+29
This is more consistent with how we already request the application class loader and other application resources elsewhere.
2016-12-30androidmedia: some files are missing in the release tarballUrsula Maplehurst1-1/+5
https://bugzilla.gnome.org/show_bug.cgi?id=776591
2016-12-15amcaudiodec: Set "is-adts" to 1 for ADTS AACSebastian Dröge1-0/+15
Otherwise it fails to decode. https://bugzilla.gnome.org/show_bug.cgi?id=740101
2016-11-08amc: Allow registering codecs, camera or sensors if any of the others failedSebastian Dröge1-24/+47
https://bugzilla.gnome.org/show_bug.cgi?id=774048
2016-11-08ahs: Don't assert on deinit if initialization failed beforeSebastian Dröge1-3/+2
Initialization failure is handled correctly by just not registering the ahssrc element. https://bugzilla.gnome.org/show_bug.cgi?id=774048
2016-11-03gl: GST_GL_TYPE -> GST_TYPE_GLMatthew Waters1-2/+2
Some deprecated symbols are kept for backwards compatibility
2016-08-26Use the new API to post flow ERROR messages on the busThibault Saunier3-9/+3
https://bugzilla.gnome.org/show_bug.cgi?id=770158
2016-08-08amc: Fix call to realloc() to allocate the correct size of itemsSebastian Dröge1-1/+2
2016-08-01androidmedia: Run gst-indent over everything once againSebastian Dröge3-145/+220
2016-08-01amc: If we find multiple codecs with the same name, just merge themSebastian Dröge1-3/+35
On the ODroid C1+ the H265 and H264 have the same name but are listed as two different codecs. We have to handle them as the same one that supports both, as otherwise we will register the same GType name twice which fails and we then only have H265 support and not H264 support.
2016-08-01amc: Use a GQueue for O(1) append instead of a GListSebastian Dröge1-6/+6
2016-07-29amc: Print generated raw/encoded caps in debug logsSebastian Dröge1-0/+4
2016-07-14new plugin: Android hardware sensor sourceMartin Kelly8-1/+1982
ahssrc is a new plugin that enables Gstreamer to read from the android.hardware.Sensor Android sensors. These sensors are treated as buffers and can be passed through and manipulated by the pipeline. https://bugzilla.gnome.org/show_bug.cgi?id=768110
2016-06-29glmemory: add the texture type to allocate to parametersMatthew Waters1-1/+2
Rather than assuming something. e.g. zerocopy on iOS with GLES3 requires the use of Luminance/Luminance Alpha formats and does not work with Red/RG textures.
2016-06-06ahcsrc: Avoid a div by 0 warningXavier Claessens1-1/+5
https://bugzilla.gnome.org/show_bug.cgi?id=767302
2016-06-06amcvideoenc: Do not call gst_object_unref on GstCapsXavier Claessens1-3/+3
https://bugzilla.gnome.org/show_bug.cgi?id=767298
2016-05-31androidmedia: fix error debug message when camera doesn't existTim-Philipp Müller1-3/+3
Makes no sense to include the system error here since errno will likely not be set and then it says 'system error: success' which is confusing. https://bugzilla.gnome.org/show_bug.cgi?id=767087
2016-05-31ahcsrc: release resources in 'finalize' functionJustin Kim1-8/+5
In general, 'dispose' function is used for dropping all references and 'finalize' is called for releasing instances. https://bugzilla.gnome.org/show_bug.cgi?id=763309
2016-05-20ahc: fix potential NULL derefMartin Kelly1-10/+12
This bug was found via cppcheck static analysis. If android.hardware.Camera.getParameters returns NULL, then object will be NULL, and we won't allocate params. This means that the GST_DEBUG statement referencing params->object will be invalid. Fix this by exiting early if android.hardware.Camera.getParameters returns NULL. https://bugzilla.gnome.org/show_bug.cgi?id=766638
2016-05-19ahc: fix typo in doc blurbMartin Kelly1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=766679
2016-05-11amcaudiodec: Set layout=interleaved in raw audio capsSebastian Dröge1-1/+2
Otherwise the GAP event fallback negotiation will fail to produce complete srcpad caps, and thus fail. https://bugzilla.gnome.org/show_bug.cgi?id=766289
2016-05-06androidmeida: replace with new surfacetexture for ahcsrcJustin Kim8-216/+30
GstAmcSurfaceTexture is more clear and simple than GstAGSurfaceTexture. https://bugzilla.gnome.org/show_bug.cgi?id=763099
2016-03-30ahcsrc: There's no point in read-only CONSTRUCT propertiesSebastian Dröge1-2/+2
And creating one is causing assertions. Also get rid of the other CONSTRUCT property as it's a) unneeded for default initialization and b) you're not supposed to use constructor properties when creating element instances and the GStreamer API doesn't provide direct ways for doing so. https://bugzilla.gnome.org/show_bug.cgi?id=764339
2016-03-24ahc: use g_slice_new instead of g_slice_new0Martin Kelly2-5/+4
In many cases, we use g_slice_new0 and then immediately overwrite the allocated memory. This is inefficient. Since we're going to immediately overwrite it, we might as well use plain g_slice_new. https://bugzilla.gnome.org/show_bug.cgi?id=763998
2016-03-24ahcsrc: remove probe_propertiesJustin Kim2-166/+0
It's a residue of 0.10. https://bugzilla.gnome.org/show_bug.cgi?id=763100
2016-03-24bad: use new gst_element_class_add_static_pad_template()Vineeth TM1-2/+2
https://bugzilla.gnome.org/show_bug.cgi?id=763081
2016-03-24ahc: eliminate AHC*_CALL macrosMartin Kelly1-103/+589
Currently, we use AHC*_CALL macros to call many of the Camera functions. However, we already have helper classes to call the Camera functions, so eliminate the macros. As a nice side-benefit, we also get improved error handling and reporting when something goes wrong calling these functions, because a GError gets populated, and we log a GST_ERROR when something fails. This was harder to do using macros, as all error handling was hidden from the caller. https://bugzilla.gnome.org/show_bug.cgi?id=763065
2016-03-24ahc: use gst unref functionsMartin Kelly1-206/+157
https://bugzilla.gnome.org/show_bug.cgi?id=763065
2016-03-24ahc: use gst new object functionsMartin Kelly1-16/+28
https://bugzilla.gnome.org/show_bug.cgi?id=763065