Hi All,
I am trying to get WiFi Display up on JB4.2 on exynos4 based platform . I
am getting a failure due to incorrect buffer count . I have done some
analysis as below . Can anyone provide inputs /info on why this logic is
used in code ?
Analysis:
In BufferQueue.cpp , when the buffer count is being set to 5 , I see an
error as specified below:
setBufferCount: requested buffer count (5) is less than minimum (6)
I observed that in
hardware\samsung_slsi\exynos4\multimedia\openmax\component\video\enc\SEC_OMX_Venc.c,
we set
* pSECPort->portDefinition.nBufferCountActual =
MAX_VIDEO_INPUTBUFFER_NUM; //5*
This is what gets set as max count in setMaxAcquiredBufferCount.
When I checked the logic for “setBufferCount”, I see that 1 is added to
mMaxAcquiredBufferCount to calculate the min count . Since max is set to 5
, min becomes 6 and hence the error.
If I change the *MAX_VIDEO_INPUTBUFFER_NUM to 4 , I stop getting this
error. But I am not sure if this is the right thing to do .*
*
*
See code snippet below.
Code snippet :
*status_t BufferQueue::setBufferCount(int bufferCount) (BufferQueue.cpp
:frameworks\native\libs\gui)*
*if (bufferCount < minBufferSlots) {*
* ST_LOGE("PG: setBufferCount: requested buffer count (%d) is
less than "*
* "minimum (%d)", bufferCount, minBufferSlots);*
* return BAD_VALUE;*
* }*
* *
*int BufferQueue::getMinMaxBufferCountLocked() const {*
* return getMinUndequeuedBufferCountLocked() + 1;*
*}*
* *
*int BufferQueue::getMinUndequeuedBufferCountLocked() const {*
* return mSynchronousMode ? mMaxAcquiredBufferCount :*
* mMaxAcquiredBufferCount + 1;*
*}*
*
*
Thanks in advance
Pragya
On Tuesday, February 12, 2013 12:34:44 PM UTC+5:30, Pragya Gupta wrote:
>
> Hi All,
>
> Has anyone tried to bring up WiFi Display on JB4.2 ? Does anyone know if
> android uses soft encoder by default and we need to make changes to make it
> work with our hardware encoder? or is it that soft encoder is not supported
> ?
>
> Thanks
> Pragya
>
--
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.