[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-datatype-cvs
Subject:    [Datatype-cvs] omx/video/decoder/pub/android/2.3
From:       zlin () helixcommunity ! org
Date:       2011-10-27 7:48:43
[Download RAW message or body]

Update of /cvsroot/datatype/omx/video/decoder/pub/android/2.3
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv12539

Modified Files:
      Tag: hxclient_3_6_1_atlas
	COmxVideoDec_smdkc110.h 
Log Message:
Modified by:zlin@real.com
Date: 10/27/2011
Project: RealPlayer for Android Smartphones
Synopsis:Some avi video files can not be playback

Overview:When playing some avi video files,it may fail due to some reasons.
1.> 1.100_H264_mp3_176x144_148Kbps_30fps_BP.avi
It was caused by failing to initialize decoder with opaque data.When initializing
the decoder,opaque data is always important,but not essential,because maybe the
decoder has the capability of initializing itself with following input data.Finally,
update the logic to conceal the error when parsing opaque data.It will give decoder
a chance to initializing itself.It is reasonable and adoptable.

2.>1.112_toystory_h264_aac+.avi
It was caused by initializing the aac audio render failure with the opaque data.For
avi files,if the chunk named "strd" miss,we will try to read the first frame as \
opaque data.This behavior is reasonable,however,failure may occur due the the first \
frame is not appropriate to regard as opaque data.
In order to conquer this issue,firstly,adding the functionality for validate the \
opaque data. If it is invalid,try to initialize the decoder with default audio \
specific config.Secondly, try to separate the aac mime type by checking the adts sync \
word.

3.> Update the method for extracting the resolution of H.264 and MPEG4.
The is some shortcomings of the resolution extraction of H.264 if the profile is high \
profile. Meanwhile,for MPEG4 files,adding the functionality to extract the \
resolution.

Files Added:
None

Files Modified:
/datatype/omx/video/decoder/pub/android/2.3/COmxVideoDec_smdkc110.h
/datatype/omx/video/decoder/android/2.3/COmxVideoDec_smdkc110.cpp
datatype/mp4/payload/pub/mp4apyld.h
datatype/mp4/payload/mp4apyld.cpp
datatype/avi/fileformat/avistrm.cpp

Image Size and Heap Use impact (Client -Only): None

Platforms and Profiles Affected:
Platform: android-2.3-arm-smdk_c110
Profile: helix-client-android-LePhoneTD-C110

Distribution Libraries Affected:None

Distribution library impact and planned action:None

Platforms and Profiles Build Verified:
Platform: android-2.3-arm-smdk_c110
Profile: helix-client-android-LePhoneTD-C110

Platforms and Profiles Functionality verified:
Platform: android-2.3-arm-smdk_c110
Profile: helix-client-android-LePhoneTD-C110

Branch: 361atlas 


Index: COmxVideoDec_smdkc110.h
===================================================================
RCS file: /cvsroot/datatype/omx/video/decoder/pub/android/2.3/Attic/COmxVideoDec_smdkc110.h,v
 retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- COmxVideoDec_smdkc110.h	18 Oct 2011 17:38:23 -0000	1.1.2.2
+++ COmxVideoDec_smdkc110.h	27 Oct 2011 07:48:40 -0000	1.1.2.3
@@ -122,6 +122,11 @@
 
 } avc_configuration_data;
 
+typedef struct mpeg4_configuration_data_tag
+{
+    int width;
+    int height;
+}mpeg4_configuration_data;
 
 class COMXVideoDec: public CBaseOMXDec
 {
@@ -139,6 +144,7 @@
     HX_RESULT Decode(UINT8* pBuff, UINT32 size, UINT32 uTimestamp, UINT32& used, \
HXCODEC_DATA* pCodecData = NULL, HXBOOL bKeyFrame = FALSE);  \
                ULONG32		m_ulNALUSizeField;
     HX_RESULT AVCDecoderConfigurationRecord(UCHAR *pData, int size, \
avc_configuration_data *avc); +    HX_RESULT MPEG4DecoderConfiguration(UCHAR *pData, \
int size, mpeg4_configuration_data* config);  HX_RESULT SetupOutputColorFormat(void);
     HX_RESULT AddNALToBuffer(OMX_BUFFERHEADERTYPE* pBuffer, UINT8* pBytes, int \
                size);
     HX_RESULT AddNALToBuffer(OMX_BUFFERHEADERTYPE* pBuffer, UINT8* pBytes, int size, \
AVCBufferFormat eFormat);


_______________________________________________
Datatype-cvs mailing list
Datatype-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/datatype-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic