e5ce0bdb3aca8976465b9e2e55b1267e48aef44d |
|
28-Sep-2011 |
Glenn Kasten <gkasten@google.com> |
AAC decode test additions Add prefetch status check: believe it or not, this can actually fail if the first AAC frame is invalid (I found this out the hard way). Use SL_PLAYEVENT_HEADATEND event to detect end of decode. No more sleeps! Fix typos in checking the per-buffer context. Display message when corrupt AAC frame, and display frame sizes. Add option to enable raw output, on by default. Use same naming conventions as other tests: slesTest_decodeAac. Clean up the comments. Move metadata key queries (but not values!) to before prefetch started. Change-Id: I69e89f3c67c5310e45117dffd08c55bed9f5914a
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
c3b82a293ed06001ba6d50f111608160c6065ef2 |
|
18-Sep-2011 |
Glenn Kasten <gkasten@google.com> |
Final revisions for NDK API level 14 Rename ANDROID_MIME_MP2TS to XA_ANDROID_MIME_MP2TS and ANDROID_MIME_AACADTS to SL_ANDROID_MIME_AACADTS and make public. ANDROID_MIME_AACADTS_ANDROID_FRAMEWORK remains private. Change-Id: Ie2cda273b6adb2db453aad188b28e64147f9e6b0
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
e5cba3cbd006f0082af290cb34af8551c2710a03 |
|
02-Sep-2011 |
Glenn Kasten <gkasten@google.com> |
AAC decoder test Record and display statistics on AAC frame sizes. Record and display the number of buffer queue completions. Make it optional whether to create a .raw file with PCM data. Enable and display play events: HEADATMARKER and HEADATNEWPOS. Add option to pause in middle of decoding. Change-Id: Iaaa37337260cd061a13f942f6b5c07d7611b13a7
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
113a9f14ea680a441540436b342f5008605aba27 |
|
09-Sep-2011 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix bug 5236913 EOS causes HEADATEND event in play callback In AAC decode through an Android Buffer Queue, after receiving an EOS command, prevent reading from the queue by returning a size of 0, which causes the decoder to signal an end of stream. This will cause the SL_PLAYEVENT_HEADATEND to be fired (from the same thread that sends the decoded data) if the event was part of the play event mask, and a callback had been registered. Change-Id: I435e8a66dbe9bc37f24c9e1f1c13f0dbd670b395
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
5760ef34bd7f50060fd8fbda10e359f8a830bfbc |
|
09-Sep-2011 |
Jean-Michel Trivi <jmtrivi@google.com> |
Bug 5236913 Callback for AAC decode when EOS was processed When the buffer containing the EOS item in the Android Buffer Queue gets processed, make sure the application callback gets called. Change-Id: I0c8dfb61404ea33322a5755afa7c44213e53ce02
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
0f92f48017588949daf7d24a339423e149bb2555 |
|
01-Sep-2011 |
Glenn Kasten <gkasten@google.com> |
Bug 5244675 PCM sample rate metadata units The current metadata key macro name ANDROID_KEY_INDEX_PCMFORMAT_SAMPLESPERSEC is confusing. This change renames it to ANDROID_KEY_INDEX_PCMFORMAT_SAMPLERATE, and documents that it is in Hz rather than milliHz. The key string is renamed from AndroidPcmFormatSamplesPerSec to AndroidPcmFormatSampleRate. Details: OpenSL ES 1.0.1 PCM struct SLDataFormat_PCM field samplesPerSec [sic] is in milliHz. OpenSL ES 1.1 preserves that struct, but adds struct SLDataFormat_PCM with field sampleRate also in milliHz. If the ANDROID_KEY_INDEX_PCMFORMAT_* metadata keys were intended to exactly model the OpenSL ES PCM data format struct, the metadata sample rate would also be in milliHz units. However, the rest of Android operates in Hz so we use Hz here also. Backwards compatibility for the name should not be an issue, as the initial beta developer has not yet started using this metadata. Related change: delete a duplicate header file. Change-Id: Ib8f620dfe7a328f621ddbb19f55e5691eb22d7b5
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
33af4f47406b64af73e9e42e209c36320ea55410 |
|
31-Aug-2011 |
Glenn Kasten <gkasten@google.com> |
Bug 5244675 miscellaenous AAC decode test Fix bug in counting encoded frames. Test get play position and duration at various points. Display all PCM metadata (in particular the channel mask). Add example of expected output. Change-Id: I0d0a629755a37b71a1540e79ae7a6f1ed7095a24
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|
688178c51666cf7df5814e7eac3a01fc3e076c0f |
|
25-Aug-2011 |
Jean-Michel Trivi <jmtrivi@google.com> |
Example of AAC ADTS decoding with OpenSL ES Put AAC ADTS in an AndroidBufferQueue, retrieve PCM data through a BufferQueue. Change-Id: I9718d7a9e030a2c3568de8579f3329b76f63d891
/frameworks/wilhelm/tests/examples/slesTestDecodeAac.cpp
|