OSDN Git Service

android/hal-audio: Add encode_mediapacket function
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Mon, 3 Mar 2014 08:56:39 +0000 (09:56 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Tue, 4 Mar 2014 09:26:37 +0000 (10:26 +0100)
commit7f2fc02e7fc2a3e77e0027f296a0e88e6b3b3d98
treede8d6c4cb8519bec1a51ff88ad69d96079c5634b
parent4fe71a03e089cbeeac191072cfecc3fcea9766a3
android/hal-audio: Add encode_mediapacket function

This patch moves code which encodes data for media packet into single
function. It will simply try to put as much encoded frames as will fit
in provided media packet buffer. This is first step to make common code
responsible for media stream write and synchronizarion instead of codec
abstraction code as it is handled now.
android/hal-audio.c