android h264 hardware encoding

Sebastian Dröge sebastian at centricular.com
Mon Oct 21 18:19:46 CEST 2013


On Mo, 2013-10-21 at 10:49 +0800, cee1 wrote:
> 2013/10/20 Sebastian Dröge <slomo at coaxion.net>:
> > How are the template caps of the sinkpad built currently? By iterating
> > over the colorformats supported by the encoder, right? Then it should
> > indeed by fine and the error should be looked for on a) the code that
> > generates the sinkpad template caps, b) in the code from Samsung.
> >
> > The code you pasted is only for negotiating a correct format with
> > downstream, e.g. to negotiate the h264 profile and level.
> Well, in base_init(), it will create caps of sink_pad/src_pad from
> codec_info, that is the former create_src_caps/create_sink_caps and
> now gst_amc_codec_info_to_caps.
> 
> In set_format(), the passed in state(GstVideoCodecState, the
> input_state) and calculated allowed_caps(negotiated with downstream)
> are passed to create_amc_format, which will:
> 1. Get mime, profile/level from allowed_caps.
> 2. Get color-format, frame-rate, width and height from state.
> 3. Get other things like i-frame-interval from properties and calculation.
> 
> I think the code should be fine.

So it seems, I'll have to try that myself finally when I'm back home if
nobody else found the reason until then.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131021/1451eeb9/attachment.pgp>


More information about the gstreamer-devel mailing list