gstreamer/sys/androidmedia
Chen Jie 557d6b974f androidmedia: move create_src|sink_caps to gstamc.c
Some hack logic needs also to be present in create_src|sink_caps, for
working around some broken codecs. These hacks are hidden
in color_format/video_format conversion -- the prototypes of these
functions are also changed to include more args for hack judgement.

Also in case of multi-color_formats mapped to one video_format, then
map that video_format back will not give the original color_format, which
causes gst_amc_codec_configure failed with something like
'does not support color format N'.

The new prototype involves with GstAmcCodecInfo and mime, which
ensures the converted color_format is supported by the codec.

A COLOR_FormatYCbYCr to GST_VIDEO_FORMAT_YUY2 mapping is also added, in
order to work around bugs in OMX.k3.video.decoder.avc(which incorrectly
reports supporting COLOR_FormatYCbYCr, which is actually
COLOR_FormatYUV420SemiPlanar). There are already hacks for this in
gst_amc_video_format_to_color_format, gst_amc_color_format_to_video_format
and gst_amc_color_format_info_set, but the codec will still not work(be
ignored because of "has unknown color formats") without adding this mapping.
2014-05-26 16:29:01 +02:00
..
gstamc-constants.h androidmedia: Add a new QCOM color format 2014-05-23 15:19:36 +02:00
gstamc.c androidmedia: move create_src|sink_caps to gstamc.c 2014-05-26 16:29:01 +02:00
gstamc.h androidmedia: move create_src|sink_caps to gstamc.c 2014-05-26 16:29:01 +02:00
gstamcaudiodec.c androidmedia: move create_src|sink_caps to gstamc.c 2014-05-26 16:29:01 +02:00
gstamcaudiodec.h amcaudiodec: Calculate number of samples per frame for MP3 and use that 2014-02-14 12:51:50 +01:00
gstamcvideodec.c androidmedia: move create_src|sink_caps to gstamc.c 2014-05-26 16:29:01 +02:00
gstamcvideodec.h androidmedia: Update to new GLib thread API 2012-11-12 11:32:44 +01:00
gstamcvideoenc.c androidmedia: move create_src|sink_caps to gstamc.c 2014-05-26 16:29:01 +02:00
gstamcvideoenc.h androidmedia: add support for video encoding 2014-05-23 09:37:54 +02:00
Makefile.am androidmedia: add support for video encoding 2014-05-23 09:37:54 +02:00