summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Decoder: Fixes in handling errors in Mbaff clips.stable/cm-13.0-ZNH5YHarish Mahendrakar2016-12-122-7/+8
| | | | | | | | | | | Fixes mb_x, mb_y and first_mb_in_slice for Mbaff error streams CYNGNOS-3312 Bug: 30481714 Change-Id: Ie99f3b57e48a620a4bc7aee88031955a2e1b6753 (cherry picked from commit d79d09f453aa7a026b5e0c5c56a15b59910a527d) (cherry picked from commit a1c987b382f7de65eea301be96c893243bafdfe1)
* Decoder: Ignore few dpb errorsHarish Mahendrakar2016-12-122-28/+28
| | | | | | | | | | | Ignore dpb errors, where decoder fails to release a non-existing picture from reference lists. This is needed to decode streams where few pictures are missing. CYNGNOS-3312 Change-Id: I8ece68cb1fa22473029e16158cd86ce7a197027a (cherry picked from commit 027d32535107a43833e090a53ec8bb2e03732e65) (cherry picked from commit 3bd8509793673fba39210ea25d49ef773f5d0b2e)
* Decoder: Fixes for handling errors in multi-slice MB Aff streamsHarish Mahendrakar2016-12-033-5/+14
| | | | | | | | | | | | Initialize default reference buffer for erroneous interlaced clips Pick slice_type from decode thread slice structure Call start_of_pic only once RM-290 Bug: 30822755 Change-Id: I553c646446d99a626d62351aa1b385355191cdc3 (cherry picked from commit bc71ad2d43dc03b2a71e3423da5385ed3cb9799a)
* Fix in the case of invalid SPS PPSHarish Mahendrakar2016-12-032-4/+20
| | | | | | | | RM-290 Bug: 31092462 Change-Id: I0e2ab5a1088717bbf36f6b0cf859b5a6e0f59c5d (cherry picked from commit c2e8ffe451e2a78161037ca09a3516e65c80675c)
* Fixed error concealment when no MBs are decoded in the current picHarish Mahendrakar2016-09-081-0/+3
| | | | | | | | | CYNGNOS-3235 Bug: 29493002 Change-Id: I3fae547ddb0616b4e6579580985232bd3d65881e (cherry picked from commit b926905ee245644806e62bef92b61c8832c44fd8) (cherry picked from commit 23e46598f983d2fc493e050ebf060969407424dd)
* Merge tag 'android-6.0.1_r61' into HEADJessica Wagantall2016-08-024-6/+21
|\ | | | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: I107a592189bf09de163549a3645c37eff8b70e03
| * Decoder: Initialize first_pb_nal_in_pic for error slicesHarish Mahendrakar2016-06-232-1/+1
| | | | | | | | | | | | | | | | first_pb_nal_in_pic was uninitialized for error clips Bug: 29023649 Change-Id: Ie4e0a94059c5f675bf619e31534846e2c2ca58ae
| * Decoder: Do not conceal slices with invalid SPS/PPSHarish Mahendrakar2016-06-231-2/+5
| | | | | | | | Bug: 28835995
| * Decoder: Fix slice number increment for error clipsHarish Mahendrakar2016-06-234-3/+15
| | | | | | | | Bug: 28673410
* | Merge remote-tracking branch 'remotes/android-6.0.1_r52' into HEADJessica Wagantall2016-07-074-3/+57
|\| | | | | | | | | | | Ticket: CYNGNOS-3020 Change-Id: I16174755f6efba69fed299659a9a35a40922999d
| * Fix slice params for interlaced videoHarish Mahendrakar2016-05-272-2/+1
| | | | | | | | | | Bug: 28165661 Change-Id: I912a86bd78ebf0617fd2bc6eb2b5a61afc17bf53
| * Decoder: Set u1_long_term_reference_flag to 0 for error concealmentHarish Mahendrakar2016-05-271-1/+1
| | | | | | | | | | | | | | | | For MBs which are in error, set u1_long_term_reference_flag to zero. This ensures latest frame is used for concealment Bug: 28470138 Change-Id: I58eab5bc1da277823f3dbb4103ba50867f8935dc
| * Decoder: Initialize slice parameters before concealing error MBsHarish Mahendrakar2016-05-273-2/+18
| | | | | | | | | | | | | | | | Also memset ps_dec_op structure to zero. For error input, this ensures dimensions are initialized to zero Bug: 28165661 Change-Id: I66eb2ddc5e02e74b7ff04da5f749443920f37141
| * Decoder: Memset few structures to zero to handle error clipsHarish Mahendrakar2016-05-271-0/+37
| | | | | | | | | | Bug: 27907656 Change-Id: I671d135dd5c324c39b4ede990b7225d52ba882cd
| * Decoder: Fix for handling invalid intra modeHarish Mahendrakar2016-05-271-0/+2
| | | | | | | | | | Bug: 28165659 Change-Id: I2291a287c27291695f4f3d6e753b6bbd7dfd9e42
* | Merge tag 'android-6.0.1_r30' into HEADJessica Wagantall2016-04-180-0/+0
|\| | | | | | | | | Ticket: RM-234 Android 6.0.1 release 30
| * Decoder: Fix stack underflow in CAVLC 4x4 parse functionsHarish Mahendrakar2016-02-261-3/+15
| | | | | | | | | | Bug: 26399350 Change-Id: Id768751672a7b093ab6e53d4fc0b3188d470920e
| * Ensure ih264d_start_of_pic() is not repeated in ih264d_mark_err_slice_skip()Harish Mahendrakar2016-02-261-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of error in handling MMCO commpands/reference list creation, ih264d_start_of_pic() was called again in ih264d_mark_err_slice_skip() resulting in leaking a picture or an MV buffer in buffer manager. To fix this, ensure prev_slice_err is set to 1 only if u4_pic_buf_got is zero, before calling ih264d_mark_err_slice_skip() at the end of picture decode. This will ensure ih264d_start_of_pic() is not repeated Bug: 25818142 Change-Id: I7d5a9179533581eec663bc6a19a2901e7cce6af3
* | Merge tag 'android-6.0.1_r24' into HEADJessica Wagantall2016-04-052-6/+21
|\ \ | | | | | | | | | | | | Ticket: CYNGNOS-2213 Android 6.0.1 release 24
| * \ merge in mnc-dr1.5-release history after reset to mnc-dr1.5-devThe Android Automerger2016-03-220-0/+0
| |\ \
| | * \ merge in mnc-dr1.5-release history after reset to mnc-dr1.5-devThe Android Automerger2016-03-170-0/+0
| | |\ \ | | |/ / | |/| |
| * | | Decoder: Fix stack underflow in CAVLC 4x4 parse functionsHarish Mahendrakar2016-03-011-3/+15
| | | | | | | | | | | | | | | | | | | | Bug: 26399350 Change-Id: Id768751672a7b093ab6e53d4fc0b3188d470920e
| * | | Ensure ih264d_start_of_pic() is not repeated in ih264d_mark_err_slice_skip()Harish Mahendrakar2016-03-011-3/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of error in handling MMCO commpands/reference list creation, ih264d_start_of_pic() was called again in ih264d_mark_err_slice_skip() resulting in leaking a picture or an MV buffer in buffer manager. To fix this, ensure prev_slice_err is set to 1 only if u4_pic_buf_got is zero, before calling ih264d_mark_err_slice_skip() at the end of picture decode. This will ensure ih264d_start_of_pic() is not repeated Bug: 25818142 Change-Id: I7d5a9179533581eec663bc6a19a2901e7cce6af3
* | | Merge tag 'android-6.0.1_r22' of ↵staging/cm-13.0+r22Steve Kondik2016-03-104-4/+34
|\| | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/external/libavc into cm-13.0 Android 6.0.1 release 22
| * | Return error when there are more mmco params than allocated sizeNaveen Kumar Ponnusamy2016-01-154-4/+34
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | am: 943323f1d9 * commit '943323f1d9d3dd5c2634deb26cbe72343ca6b3db': Return error when there are more mmco params than allocated size
| | * | Return error when there are more mmco params than allocated sizeNaveen Kumar Ponnusamy2016-01-134-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 25818142 Change-Id: I5c1b23985eeca5192b42703c627ca3d060e4e13d
| * | | Decoder Update mb count after mb map is set.Harish Mahendrakar2016-01-072-11/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a524d3a8a * commit '4a524d3a8ae9aa20c36430008e6bd429443f8f1d': Decoder Update mb count after mb map is set.
| | * | Decoder Update mb count after mb map is set.Harish Mahendrakar2016-01-072-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 25928803 Change-Id: Iccc58a7dd1c5c6ea656dfca332cfb8dddba4de37
| * | | Remove __DATE__/__TIME__ from Android buildsDan Willemsen2015-10-302-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes unnecessary changes from build to build. Bug: 24204119 Change-Id: I25258314fe56ea186d38d756fb5fb04aa689a812 (cherry picked from commit f197ccb7562bac6f5bae40c9cb9dbb46a77baeb5)
* | | | Merge tag 'android-6.0.1_r17' into HEADJessica Wagantall2016-03-072-11/+6
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | Android 6.0.1 release 17 Ticket: CYNGNOS-1854
| * | | Decoder Update mb count after mb map is set.Harish Mahendrakar2016-01-222-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 25928803 Change-Id: Iccc58a7dd1c5c6ea656dfca332cfb8dddba4de37
* | | | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-078-7/+165
|\| | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/external/libavc into HEAD Android 6.0.1 release 3
| * | | Remove __DATE__/__TIME__ from Android buildsDan Willemsen2015-11-032-0/+14
| |/ / | | | | | | | | | | | | | | | | | | This removes unnecessary changes from build to build. Bug: 24204119 Change-Id: I25258314fe56ea186d38d756fb5fb04aa689a812 (cherry picked from commit f197ccb7562bac6f5bae40c9cb9dbb46a77baeb5)
| * | Reconcile branch with master after mass cherrypicksMarco Nelissen2015-10-161-4/+0
| | | | | | | | | | | | Change-Id: Ib017480389cb9f5204e5437716653016da348dba
| * | Decoder: Memset 8 extra bytes at the end of internal bitstream bufferHarish Mahendrakar2015-10-161-0/+5
| | | | | | | | | | | | | | | | | | | | | Decoder may read 8 extra bytes at the end of this buffer, though it will never be used Setting it to zero will ensure unitialized reads are avoided Change-Id: I724239861cb9fa64f3a70cb5450e094cb3afa20c
| * | Decoder: Once all the MBs in a picture are decoded ignore remaining bytesHarish Mahendrakar2015-10-162-4/+0
| | | | | | | | | | | | | | | | | | | | | Once all the MBs are decoded, simply break from decode loops and do not signal an error This will handle cases where there may be extra bytes at the end of picture data Change-Id: I6d8ec918df5375f135e60f85b9a56ab2a5313a64
| * | Decoder: Exit gracefully in case of allocation failureHarish Mahendrakar2015-10-161-0/+3
| | | | | | | | | | | | | | | | | | Skip error concealment when allocation fails for decoder buffers Change-Id: I785f31cad5dca52c8c67cba78cdd330b7b4539e1
| * | Decoder: Added a check for unsupported resolutionsHarish Mahendrakar2015-10-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Decoder now returns an error for resolutions greater than 3840x2176 Bug: 24542936 Change-Id: I38be0e4c5cf2a980bfd4c781f3b49171f73b5ccb
| * | Encoder added support for VUI paramsHamsalekha S2015-10-095-6/+145
| | | | | | | | | | | | | | | | | | | | | SPS will now include vui params Removed a trailing space in ih264e_api.c Change-Id: I67a57741689206e571e9a83f7e3360149f87e06a
| * | Moved check for level after check for resolution change.Hamsalekha S2015-10-091-0/+4
| | | | | | | | | | | | | | | | | | This is required for DRC tests in CTS . Change-Id: Icd0fe10d97c6ee55f8358682a578bddb58590de4
| * | Fix a typo in gai4_ih264_max_luma_pic_sizeMartin Storsjo2015-10-091-1/+1
| | |
| * | Decoder: Fixed an issue in handling flushHarish Mahendrakar2015-09-252-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a NULL pointer reference, when flush is called before decoding any pictures. This was seen in following CTS test, android.media.cts.DecoderTest#testCodecResetsH264WithSurface Fixed code formatting issues in ih264d_set_flush_mode Updated the testbench to call flush before decoding starts Bug: 24405410 Change-Id: Ib04e0b15573b2482c9d5b43c8bc7dd30d8f8efdd
| * | Decoder: Fixed an out of bound read in intra pred buffersHarish Mahendrakar2015-09-251-3/+20
| | | | | | | | | | | | | | | | | | Bug: 23453762 Change-Id: I129e5a2ac8b9a28f3c894ebca0aef7063ca5934e (cherry picked from commit 040ec939c61f7dffb76c977b775b1bc1e82f2bde)
* | | Decoder: Once all the MBs in a picture are decoded ignore remaining bytesHarish Mahendrakar2015-11-072-4/+0
| | | | | | | | | | | | | | | | | | | | | Once all the MBs are decoded, simply break from decode loops and do not signal an error This will handle cases where there may be extra bytes at the end of picture data Change-Id: I6d8ec918df5375f135e60f85b9a56ab2a5313a64
* | | Decoder: Exit gracefully in case of allocation failureHarish Mahendrakar2015-11-071-0/+3
| | | | | | | | | | | | | | | | | | Skip error concealment when allocation fails for decoder buffers Change-Id: I785f31cad5dca52c8c67cba78cdd330b7b4539e1
* | | Decoder: Added a check for unsupported resolutionsHarish Mahendrakar2015-11-071-0/+6
| | | | | | | | | | | | | | | | | | Decoder now returns an error for resolutions greater than 3840x2176 Change-Id: I38be0e4c5cf2a980bfd4c781f3b49171f73b5ccb
* | | Decoder: Fixed an issue in handling flushHarish Mahendrakar2015-09-262-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a NULL pointer reference, when flush is called before decoding any pictures. This was seen in following CTS test, android.media.cts.DecoderTest#testCodecResetsH264WithSurface Fixed code formatting issues in ih264d_set_flush_mode Updated the testbench to call flush before decoding starts Bug: 24405410 Change-Id: Ib04e0b15573b2482c9d5b43c8bc7dd30d8f8efdd
* | | Decoder: Fixed an out of bound read in intra pred buffersHarish Mahendrakar2015-09-251-3/+20
| | | | | | | | | | | | | | | | | | Bug: 23453762 Change-Id: I129e5a2ac8b9a28f3c894ebca0aef7063ca5934e (cherry picked from commit 040ec939c61f7dffb76c977b775b1bc1e82f2bde)
* | | merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-240-0/+0
|\ \ \ | |/ / |/| |
| * | merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-220-0/+0
| |\ \ | | |/ | |/|