Harish Mahendrakar
637cb7f434
Decoder: Fix in checking for valid profile flags
...
am: d7eee555dc
Change-Id: I73b07d5ce0b248387d5f4b492caf63f02d372881
2016-12-08 00:16:31 +00:00
Harish Mahendrakar
d7eee555dc
Decoder: Fix in checking for valid profile flags
...
Apart from Baseline, main and high profile, only extended profile
is supported provided, constraint_set0_flag or constraint_set1_flag are set to 1
Bug: 31999646
Change-Id: I3b62069efc49e222a7126fba0805fa9124aac8f2
2016-12-06 14:19:39 -08:00
Harish Mahendrakar
fab0729908
Decoder: Fixes in handling errors in Mbaff clips.
...
am: 6676aeb419
Change-Id: If83edf15d904c166661b3ab6065c5230269231dd
2016-10-18 23:36:38 +00:00
Harish Mahendrakar
5d794693d5
Decoder: Ignore few dpb errors
...
am: 026745ef04
Change-Id: Ibd9e7f2c7936fcd1f8bea8a84b99eb9780947feb
2016-10-18 23:36:27 +00:00
Marco Nelissen
23d5bc6405
Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev
2016-10-18 23:33:12 +00:00
TreeHugger Robot
b4a6d2037b
Merge "Decoder: Ignore few dpb errors" into mnc-dev
2016-10-18 23:25:25 +00:00
Harish Mahendrakar
6676aeb419
Decoder: Fixes in handling errors in Mbaff clips.
...
Fixes mb_x, mb_y and first_mb_in_slice for Mbaff error streams
Bug: 30481714
Change-Id: Ie99f3b57e48a620a4bc7aee88031955a2e1b6753
2016-10-18 12:19:18 -07:00
Harish Mahendrakar
026745ef04
Decoder: Ignore few dpb errors
...
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.
Change-Id: I8ece68cb1fa22473029e16158cd86ce7a197027a
2016-10-18 12:19:06 -07:00
Harish Mahendrakar
02f663b3c2
Decoder: Fixes for handling errors in multi-slice MB Aff streams
...
am: bc71ad2d43
Change-Id: Ibcbdbb3c4473b3199abff8d47444e59416589695
2016-09-22 18:19:55 +00:00
Harish Mahendrakar
bc71ad2d43
Decoder: Fixes for handling errors in multi-slice MB Aff streams
...
Initialize default reference buffer for erroneous interlaced clips
Pick slice_type from decode thread slice structure
Call start_of_pic only once
Bug: 30822755
Change-Id: I553c646446d99a626d62351aa1b385355191cdc3
2016-09-22 08:29:34 -07:00
Harish Mahendrakar
ff7ccdab0c
Fix in the case of invalid SPS PPS
...
am: c2e8ffe451
Change-Id: Iaf266c5ff2187ba980737b699884e3ebebe87bd0
2016-09-21 20:38:58 +00:00
Harish Mahendrakar
c2e8ffe451
Fix in the case of invalid SPS PPS
...
Bug: 31092462
Change-Id: I0e2ab5a1088717bbf36f6b0cf859b5a6e0f59c5d
2016-09-21 09:50:06 -07:00
Harish Mahendrakar
ff54ee6115
Fixed error concealment when no MBs are decoded in the current pic
...
am: b926905ee2
Change-Id: I8a0a6fc068b543a4431b085c9335301e89ef2e14
2016-07-14 01:22:44 +00:00
Harish Mahendrakar
b926905ee2
Fixed error concealment when no MBs are decoded in the current pic
...
Bug: 29493002
Change-Id: I3fae547ddb0616b4e6579580985232bd3d65881e
2016-07-13 17:32:27 -07:00
Ray Essick
daefcde2ed
DO NOT MERGE ANYWHERE: Remove several memset() calls which overwrote buffers initialized
...
in buf_mgr_init(). Affects 6.0 only.
2016-06-23 22:07:15 +00:00
Harish Mahendrakar
c73e000665
Merge \"Decoder: Initialize first_pb_nal_in_pic for error slices\" into mnc-dev
...
am: b9d7cba8bf
Change-Id: I62f9c45eea70968942198b20f47c158dede39d8d
2016-06-21 18:53:18 +00:00
Robert Shih
b9d7cba8bf
Merge "Decoder: Initialize first_pb_nal_in_pic for error slices" into mnc-dev
2016-06-21 18:47:11 +00:00
Harish Mahendrakar
48b182db5d
Decoder: Do not conceal slices with invalid SPS/PPS
...
am: 3a419eac8d
Change-Id: I09e962ab090f890a149cb967f2b04fd95a7d76d7
2016-06-21 17:35:49 +00:00
Harish Mahendrakar
7a54468cf8
Decoder: Initialize first_pb_nal_in_pic for error slices
...
first_pb_nal_in_pic was uninitialized for error clips
Bug: 29023649
Change-Id: Ie4e0a94059c5f675bf619e31534846e2c2ca58ae
2016-06-16 17:28:19 -07:00
Harish Mahendrakar
3a419eac8d
Decoder: Do not conceal slices with invalid SPS/PPS
...
Bug: 28835995
2016-06-14 13:43:54 -07:00
Harish Mahendrakar
d75185f90e
Merge \"Decoder: Fix slice number increment for error clips\" into mnc-dev
...
am: 2e88a2aa67
Change-Id: I791c029e3b39202db3f49f13fbb511904b5e8fef
2016-06-10 21:31:13 +00:00
Marco Nelissen
2e88a2aa67
Merge "Decoder: Fix slice number increment for error clips" into mnc-dev
2016-06-10 21:21:44 +00:00
Harish Mahendrakar
5e4f64c074
Decoder: Fix slice number increment for error clips
...
Bug: 28673410
2016-06-09 08:31:55 -07:00
Harish Mahendrakar
2c9d67ffaf
Fix slice params for interlaced video
...
Bug: 28165661
Change-Id: I912a86bd78ebf0617fd2bc6eb2b5a61afc17bf53
2016-05-25 20:06:08 +00:00
Harish Mahendrakar
cdfd7573ec
Fix slice params for interlaced video
...
Bug: 28165661
Change-Id: I912a86bd78ebf0617fd2bc6eb2b5a61afc17bf53
2016-05-25 02:25:00 +00:00
Harish Mahendrakar
4e5762ce4b
Decoder: Set u1_long_term_reference_flag to 0 for error concealment
...
am: eacafb943c
* commit 'eacafb943c ':
Decoder: Set u1_long_term_reference_flag to 0 for error concealment
Change-Id: I8836bf700a7b77deff062d9d1737b903583ad6b2
2016-05-24 00:28:43 +00:00
Harish Mahendrakar
eacafb943c
Decoder: Set u1_long_term_reference_flag to 0 for error concealment
...
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
2016-05-23 21:26:38 +00:00
Harish Mahendrakar
129a6006b4
Decoder: Initialize slice parameters before concealing error MBs
...
am: 33db7a0f4e
* commit '33db7a0f4e ':
Decoder: Initialize slice parameters before concealing error MBs
Change-Id: I91b5e507d6871e523add85ed774c5de2b85fcf18
2016-05-23 18:34:43 +00:00
Harish Mahendrakar
33db7a0f4e
Decoder: Initialize slice parameters before concealing error MBs
...
Also memset ps_dec_op structure to zero.
For error input, this ensures dimensions are initialized to zero
Bug: 28165661
Change-Id: I66eb2ddc5e02e74b7ff04da5f749443920f37141
2016-05-20 15:27:35 -07:00
Harish Mahendrakar
af63f6f357
Merge "Decoder: Fix for handling invalid intra mode" into mnc-dev
...
am: 37579218eb
* commit '37579218eb ':
Decoder: Fix for handling invalid intra mode
Change-Id: Ia41f2b0c19b83d3508044487469176894ba898d4
2016-05-13 22:31:11 +00:00
Marco Nelissen
37579218eb
Merge "Decoder: Fix for handling invalid intra mode" into mnc-dev
2016-05-13 22:20:17 +00:00
Harish Mahendrakar
370bd8625d
Decoder: Memset few structures to zero to handle error clips
...
Bug: 27907656
Change-Id: I671d135dd5c324c39b4ede990b7225d52ba882cd
2016-05-11 09:20:48 -07:00
Harish Mahendrakar
43a1cf620f
DO NOT MERGE. AVC decoder: init structures
...
Memset few structures to zero to handle error clips
Bug: 27907656
Change-Id: I517841fc8b6d674f7e4e3ebaf60dd2e42f1152ae
2016-05-11 08:18:59 -07:00
Harish Mahendrakar
f38d14c5d9
Decoder: Fix for handling invalid intra mode
...
Bug: 28165659
Change-Id: I2291a287c27291695f4f3d6e753b6bbd7dfd9e42
2016-05-10 10:35:27 -07:00
Harish Mahendrakar
0c20244073
Decoder: Fix stack underflow in CAVLC 4x4 parse functions
...
am: ef3da4e699
* commit 'ef3da4e699 ':
Decoder: Fix stack underflow in CAVLC 4x4 parse functions
2016-02-23 02:25:42 +00:00
Harish Mahendrakar
1284f0c297
Ensure ih264d_start_of_pic() is not repeated in ih264d_mark_err_slice_skip()
...
am: c7a1cf4e0b
* commit 'c7a1cf4e0b ':
Ensure ih264d_start_of_pic() is not repeated in ih264d_mark_err_slice_skip()
2016-02-23 02:25:36 +00:00
Harish Mahendrakar
ef3da4e699
Decoder: Fix stack underflow in CAVLC 4x4 parse functions
...
Bug: 26399350
Change-Id: Id768751672a7b093ab6e53d4fc0b3188d470920e
2016-02-22 14:54:08 -08:00
Harish Mahendrakar
c7a1cf4e0b
Ensure ih264d_start_of_pic() is not repeated in ih264d_mark_err_slice_skip()
...
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
2016-02-22 14:27:52 -08:00
Naveen Kumar Ponnusamy
64112d21e3
Return error when there are more mmco params than allocated size
...
am: 943323f1d9
* commit '943323f1d9 ':
Return error when there are more mmco params than allocated size
2016-01-15 02:10:55 +00:00
Naveen Kumar Ponnusamy
943323f1d9
Return error when there are more mmco params than allocated size
...
Bug: 25818142
Change-Id: I5c1b23985eeca5192b42703c627ca3d060e4e13d
2016-01-13 21:18:46 +00:00
Harish Mahendrakar
608fc7f4ae
Decoder Update mb count after mb map is set.
...
am: 4a524d3a8a
* commit '4a524d3a8a ':
Decoder Update mb count after mb map is set.
2016-01-07 21:07:40 +00:00
Harish Mahendrakar
4a524d3a8a
Decoder Update mb count after mb map is set.
...
Bug: 25928803
Change-Id: Iccc58a7dd1c5c6ea656dfca332cfb8dddba4de37
2016-01-07 11:08:06 -08:00
Dan Willemsen
1c01bc10a9
Remove __DATE__/__TIME__ from Android builds
...
This removes unnecessary changes from build to build.
Bug: 24204119
Change-Id: I25258314fe56ea186d38d756fb5fb04aa689a812
(cherry picked from commit f197ccb756 )
2015-10-30 21:54:53 +00:00
Marco Nelissen
66be90d7a0
Reconcile branch with master after mass cherrypicks
...
Change-Id: Ib017480389cb9f5204e5437716653016da348dba
2015-10-16 20:23:10 +00:00
Harish Mahendrakar
7ba9f34a49
Decoder: Memset 8 extra bytes at the end of internal bitstream buffer
...
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
2015-10-16 20:12:42 +00:00
Harish Mahendrakar
e023fbb28c
Decoder: Once all the MBs in a picture are decoded ignore remaining bytes
...
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
2015-10-16 20:09:34 +00:00
Harish Mahendrakar
e027a11e31
Decoder: Exit gracefully in case of allocation failure
...
Skip error concealment when allocation fails for decoder buffers
Change-Id: I785f31cad5dca52c8c67cba78cdd330b7b4539e1
2015-10-16 19:29:43 +00:00
Harish Mahendrakar
5351d3a403
Decoder: Added a check for unsupported resolutions
...
Decoder now returns an error for resolutions greater than 3840x2176
Bug: 24542936
Change-Id: I38be0e4c5cf2a980bfd4c781f3b49171f73b5ccb
2015-10-13 23:28:19 +00:00
Hamsalekha S
9d04b13b62
Moved check for level after check for resolution change.
...
This is required for DRC tests in CTS .
Change-Id: Icd0fe10d97c6ee55f8358682a578bddb58590de4
2015-10-09 11:35:26 -07:00
Harish Mahendrakar
59348127de
Decoder: Fixed an issue in handling flush
...
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
2015-09-25 22:24:55 +00:00