Commit graph

863 commits

Author SHA1 Message Date
Harish Mahendrakar
601f024ec8 Decoder: Fixed cur_mb_info initialization in error cases am: 902c15251f am: 89850806d1 am: c2ab726dc9 am: 45111c3c52 am: 2d9ee53783 am: 2593b52d4d
am: 8c67b66b6e

Change-Id: I3501f359136bac074953168e18185955a931a797
2017-01-06 18:03:04 +00:00
Harish Mahendrakar
bb5851eb13 Decoder: Fix in error concealment in the case of Mbaff clips am: 3ebff7dc62 am: 8dfaf7cf1b am: 7b9f87283b am: 0b7536238d am: 0cba21c6bf am: 79cfc9557d
am: 2871e959d6

Change-Id: I4097652615833496dd4aa6f06bbc2dbc4132c449
2017-01-06 18:03:03 +00:00
Harish Mahendrakar
02a440bdec Decoder: Fix in the case of error in the first MB in frame. am: 56b5563f3e am: 7f2a8c6fa8 am: f5d29ebf92 am: 9db31ee733 am: b95d51ad3a am: 2f0f7c3b81
am: f2efe71c75

Change-Id: I485edffcdcc0ecd5b4f258cc1c78ae410bb0996f
2017-01-06 18:03:01 +00:00
Harish Mahendrakar
d9655fc433 Decoder: Fix in returning incomplete frame error am: d1896deaf1 am: 3e29786590 am: 252ecb244e am: 0f5870d0ce am: 862e10b430 am: b8a9406113
am: 16cd53294c

Change-Id: I35fe5d0df07fa185fdd9569f936547c585e5a583
2017-01-06 18:02:59 +00:00
Harish Mahendrakar
5a2732bb3f Decoder: Fix initialization of ps_next_dpb during reference list creation am: 54cbe1b29b am: a13436200c am: e057ae1738 am: 5fc3db621b am: 31e1ffeacb am: 53b01d5b00
am: d1dce9bafb

Change-Id: I65835f622726d56c7f184b2e2740127c395d7273
2017-01-06 18:02:58 +00:00
Harish Mahendrakar
8c67b66b6e Decoder: Fixed cur_mb_info initialization in error cases am: 902c15251f am: 89850806d1 am: c2ab726dc9 am: 45111c3c52 am: 2d9ee53783
am: 2593b52d4d

Change-Id: Iee2265213a2cecc057d21c333dee730ed98d33df
2017-01-06 17:58:34 +00:00
Harish Mahendrakar
2871e959d6 Decoder: Fix in error concealment in the case of Mbaff clips am: 3ebff7dc62 am: 8dfaf7cf1b am: 7b9f87283b am: 0b7536238d am: 0cba21c6bf
am: 79cfc9557d

Change-Id: Ia800868eda097a355314616b9c8009367d3a49c2
2017-01-06 17:58:33 +00:00
Harish Mahendrakar
f2efe71c75 Decoder: Fix in the case of error in the first MB in frame. am: 56b5563f3e am: 7f2a8c6fa8 am: f5d29ebf92 am: 9db31ee733 am: b95d51ad3a
am: 2f0f7c3b81

Change-Id: I7b4b97455713f084d2b3f96673046476409a9652
2017-01-06 17:58:31 +00:00
Harish Mahendrakar
16cd53294c Decoder: Fix in returning incomplete frame error am: d1896deaf1 am: 3e29786590 am: 252ecb244e am: 0f5870d0ce am: 862e10b430
am: b8a9406113

Change-Id: I82ff52d50802e025e1d7b67bda56ad65d8a0ab57
2017-01-06 17:58:30 +00:00
Harish Mahendrakar
d1dce9bafb Decoder: Fix initialization of ps_next_dpb during reference list creation am: 54cbe1b29b am: a13436200c am: e057ae1738 am: 5fc3db621b am: 31e1ffeacb
am: 53b01d5b00

Change-Id: I5397047b16154fa6027121baef941d70182e4aaa
2017-01-06 17:58:29 +00:00
Harish Mahendrakar
2593b52d4d Decoder: Fixed cur_mb_info initialization in error cases am: 902c15251f am: 89850806d1 am: c2ab726dc9 am: 45111c3c52
am: 2d9ee53783

Change-Id: Iccd3dfabcd039f1c273a56b02ebd81ae40b224dc
2017-01-06 17:55:03 +00:00
Harish Mahendrakar
79cfc9557d Decoder: Fix in error concealment in the case of Mbaff clips am: 3ebff7dc62 am: 8dfaf7cf1b am: 7b9f87283b am: 0b7536238d
am: 0cba21c6bf

Change-Id: Ibb9eec593c179d3d198be1e2863456c4ef32569d
2017-01-06 17:55:02 +00:00
Harish Mahendrakar
2f0f7c3b81 Decoder: Fix in the case of error in the first MB in frame. am: 56b5563f3e am: 7f2a8c6fa8 am: f5d29ebf92 am: 9db31ee733
am: b95d51ad3a

Change-Id: I85f54150ad95561e240a5fc90d396692c181eecd
2017-01-06 17:55:01 +00:00
Harish Mahendrakar
b8a9406113 Decoder: Fix in returning incomplete frame error am: d1896deaf1 am: 3e29786590 am: 252ecb244e am: 0f5870d0ce
am: 862e10b430

Change-Id: Iffb1a1cdd3f0e49552ef88cfccb8f49607706088
2017-01-06 17:55:00 +00:00
Harish Mahendrakar
53b01d5b00 Decoder: Fix initialization of ps_next_dpb during reference list creation am: 54cbe1b29b am: a13436200c am: e057ae1738 am: 5fc3db621b
am: 31e1ffeacb

Change-Id: I33a45c49e0c97a272af911c812c108c827c6a413
2017-01-06 17:54:59 +00:00
Harish Mahendrakar
2d9ee53783 Decoder: Fixed cur_mb_info initialization in error cases am: 902c15251f am: 89850806d1 am: c2ab726dc9
am: 45111c3c52

Change-Id: I654c589a26495834f59d4bb3ca0de15b985d69d3
2017-01-06 17:51:32 +00:00
Harish Mahendrakar
0cba21c6bf Decoder: Fix in error concealment in the case of Mbaff clips am: 3ebff7dc62 am: 8dfaf7cf1b am: 7b9f87283b
am: 0b7536238d

Change-Id: I7eb6ba967c2ef32a58aef670d17b18176314f9a2
2017-01-06 17:51:31 +00:00
Harish Mahendrakar
b95d51ad3a Decoder: Fix in the case of error in the first MB in frame. am: 56b5563f3e am: 7f2a8c6fa8 am: f5d29ebf92
am: 9db31ee733

Change-Id: I23b7fdc4df2e6bf2f544327b1ca580cdeb35e0a9
2017-01-06 17:51:30 +00:00
Harish Mahendrakar
862e10b430 Decoder: Fix in returning incomplete frame error am: d1896deaf1 am: 3e29786590 am: 252ecb244e
am: 0f5870d0ce

Change-Id: Id90926aceae1d9474bb594b2a054c0b6d2f79cab
2017-01-06 17:51:29 +00:00
Harish Mahendrakar
31e1ffeacb Decoder: Fix initialization of ps_next_dpb during reference list creation am: 54cbe1b29b am: a13436200c am: e057ae1738
am: 5fc3db621b

Change-Id: I76300b1ea0f555ffe64f4658f25bda4c320b4f6a
2017-01-06 17:51:28 +00:00
Harish Mahendrakar
45111c3c52 Decoder: Fixed cur_mb_info initialization in error cases am: 902c15251f am: 89850806d1
am: c2ab726dc9

Change-Id: Ifce2313b7440c1ab116d0bbc44063d2f4c70c753
2017-01-06 17:48:02 +00:00
Harish Mahendrakar
0b7536238d Decoder: Fix in error concealment in the case of Mbaff clips am: 3ebff7dc62 am: 8dfaf7cf1b
am: 7b9f87283b

Change-Id: Id59854e7be9533d7e3595019dd5731d643e13fe8
2017-01-06 17:48:01 +00:00
Harish Mahendrakar
9db31ee733 Decoder: Fix in the case of error in the first MB in frame. am: 56b5563f3e am: 7f2a8c6fa8
am: f5d29ebf92

Change-Id: I9106b55b2817fef19b176e00f7cfca839ff8722c
2017-01-06 17:48:00 +00:00
Harish Mahendrakar
0f5870d0ce Decoder: Fix in returning incomplete frame error am: d1896deaf1 am: 3e29786590
am: 252ecb244e

Change-Id: I92be3392c5066081260102786f4538b05bd263e9
2017-01-06 17:47:59 +00:00
Harish Mahendrakar
5fc3db621b Decoder: Fix initialization of ps_next_dpb during reference list creation am: 54cbe1b29b am: a13436200c
am: e057ae1738

Change-Id: Ia0c76ff48af0e9c8bb04a0ede01fcad0ed6bb859
2017-01-06 17:47:58 +00:00
Harish Mahendrakar
c2ab726dc9 Decoder: Fixed cur_mb_info initialization in error cases am: 902c15251f
am: 89850806d1

Change-Id: I83e45a0b278fc45b9192c4b495b56fd01baa6c6d
2017-01-06 17:44:31 +00:00
Harish Mahendrakar
7b9f87283b Decoder: Fix in error concealment in the case of Mbaff clips am: 3ebff7dc62
am: 8dfaf7cf1b

Change-Id: I78bf4b86259b08c82cf6e7b7b5a26e9fabb19167
2017-01-06 17:44:30 +00:00
Harish Mahendrakar
f5d29ebf92 Decoder: Fix in the case of error in the first MB in frame. am: 56b5563f3e
am: 7f2a8c6fa8

Change-Id: I435bf9672aca534d253e7e583f35335015fa5e17
2017-01-06 17:44:30 +00:00
Harish Mahendrakar
252ecb244e Decoder: Fix in returning incomplete frame error am: d1896deaf1
am: 3e29786590

Change-Id: Ie1b47e0ec9a24daba2cc253887ac804aff2d9a86
2017-01-06 17:44:29 +00:00
Harish Mahendrakar
e057ae1738 Decoder: Fix initialization of ps_next_dpb during reference list creation am: 54cbe1b29b
am: a13436200c

Change-Id: I2d108671a98bfb304f140348d9fc43475a219010
2017-01-06 17:44:27 +00:00
Harish Mahendrakar
89850806d1 Decoder: Fixed cur_mb_info initialization in error cases
am: 902c15251f

Change-Id: I53e87b68254973492dac02a48a1b179a9eb4fc93
2017-01-06 17:41:01 +00:00
Harish Mahendrakar
8dfaf7cf1b Decoder: Fix in error concealment in the case of Mbaff clips
am: 3ebff7dc62

Change-Id: I53964cef3c617f22fee7a2db27dac09323db2daf
2017-01-06 17:41:00 +00:00
Harish Mahendrakar
7f2a8c6fa8 Decoder: Fix in the case of error in the first MB in frame.
am: 56b5563f3e

Change-Id: I600140bafcda9d4d9792db53d2a20cc13d90bfe1
2017-01-06 17:40:59 +00:00
Harish Mahendrakar
3e29786590 Decoder: Fix in returning incomplete frame error
am: d1896deaf1

Change-Id: I81b68c6f7b30c3ba048967cd64426b204b8ee895
2017-01-06 17:40:58 +00:00
Harish Mahendrakar
a13436200c Decoder: Fix initialization of ps_next_dpb during reference list creation
am: 54cbe1b29b

Change-Id: I20cc2843ab762c35b8c6a35745d0a674f3f6ef8b
2017-01-06 17:40:57 +00:00
Harish Mahendrakar
902c15251f Decoder: Fixed cur_mb_info initialization in error cases
When number of MBs decoded in the current frame is zero and an error is
detected, MB info was unnecessarily decremented in multi-core case.

Bug: 33351708
Bug: 33298089
Bug: 33250932
Change-Id: I150c48c6fb382736f1de855ba5384c12bf84710d
2016-12-28 12:36:35 -08:00
Harish Mahendrakar
3ebff7dc62 Decoder: Fix in error concealment in the case of Mbaff clips
In case of MBAff clips, if error is detected after parsing odd MB,
then treat that odd MB also as error. All MBAff processing is done
as an MB-Pair.

Bug: 33298089
2016-12-28 12:36:15 -08:00
Harish Mahendrakar
56b5563f3e Decoder: Fix in the case of error in the first MB in frame.
In case of error in first MB in a frame, ps_dec->i4_submb_ofst
was decremented to result in negative offsets.

Bug: 33351708
2016-12-28 12:35:44 -08:00
Harish Mahendrakar
d1896deaf1 Decoder: Fix in returning incomplete frame error
In case a slice start code is found and picture decode is not complete
and a non slice NAL is encountered, then mark the current pic as incomplete

Bug: 33250932
Bug: 33139050

Change-Id: I9db4446338b307310805dba90c60c8cbdeee0739
2016-12-28 12:35:25 -08:00
Harish Mahendrakar
54cbe1b29b Decoder: Fix initialization of ps_next_dpb during reference list creation
ps_dpb_mgr->ps_dpb_ht_head is a linked list with
ps_dpb_mgr->u1_num_lt_ref_bufs number of valid buffers.
So ps_next_dbp has to be initialized to ps_dpb_mgr->ps_dpb_ht_head
for each u1_lt_index loop iteration

Bug: 33387820
Change-Id: I2dfd962bad5640a829afc123adbd0709e563e621
2016-12-28 12:33:39 -08:00
Harish Mahendrakar
5d6b36a138 Decoder: Fix in checking for valid profile flags am: d7eee555dc am: 637cb7f434 am: 3735b426ae am: 4b8b6ff6cb am: 5c225e8959 am: f30749947b
am: 70221f5df2

Change-Id: Ifff5e53137013ffd8cfe05d29246e26356c97776
2016-12-08 00:41:34 +00:00
Harish Mahendrakar
70221f5df2 Decoder: Fix in checking for valid profile flags am: d7eee555dc am: 637cb7f434 am: 3735b426ae am: 4b8b6ff6cb am: 5c225e8959
am: f30749947b

Change-Id: I890456fd2c559202c35c3ad9f7c3e0c35de39d51
2016-12-08 00:37:33 +00:00
Harish Mahendrakar
f30749947b Decoder: Fix in checking for valid profile flags am: d7eee555dc am: 637cb7f434 am: 3735b426ae am: 4b8b6ff6cb
am: 5c225e8959

Change-Id: I95cad16f41abab8c7c97e074df8eac238cc449f2
2016-12-08 00:33:33 +00:00
Harish Mahendrakar
5c225e8959 Decoder: Fix in checking for valid profile flags am: d7eee555dc am: 637cb7f434 am: 3735b426ae
am: 4b8b6ff6cb

Change-Id: I885af804897da15c8f83d65bb0da9345a0dee766
2016-12-08 00:29:33 +00:00
Harish Mahendrakar
4b8b6ff6cb Decoder: Fix in checking for valid profile flags am: d7eee555dc am: 637cb7f434
am: 3735b426ae

Change-Id: Ife0c404493f9bcf05c7faf73bc3b0e08cb57fb99
2016-12-08 00:25:03 +00:00
Harish Mahendrakar
3735b426ae Decoder: Fix in checking for valid profile flags am: d7eee555dc
am: 637cb7f434

Change-Id: I093f371b960df3c69eb69cf6f6b5729b84900fb6
2016-12-08 00:20:32 +00:00
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
Marco Nelissen
8e72cfbcf4 Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev am: 23d5bc6405 am: 1e36eb1b99 am: 48c4de0f98 am: eab553f817 am: a38d1442ee am: 6d169c47a9
am: 464eb1f646

Change-Id: Ib8538d76cb4f1c868358764126bd99e090f3ad20
2016-10-19 00:19:55 +00:00
Harish Mahendrakar
f416648c29 Decoder: Fixes in handling errors in Mbaff clips. am: 6676aeb419 am: fab0729908 am: 05bd0e8d4c am: 69b2803e55 am: dcb099e183 am: 80f3b06d90
am: a6aa08d1dc

Change-Id: Id96cc25a85140f81e0b288d219b63d8d168d9e2d
2016-10-19 00:19:48 +00:00