Commit graph

979 commits

Author SHA1 Message Date
Harish Mahendrakar
a6723af7d7 Encoder: Fixed unaligned access of i1_ref_idx and u1_mv in cabac context am: 0a69e08c39 am: c812fef1e2
am: 6841513a26

Change-Id: I22ddbedbfcddc50e0e0b12906f64625ebacaa610
2016-11-29 00:05:34 +00:00
Harish Mahendrakar
6841513a26 Encoder: Fixed unaligned access of i1_ref_idx and u1_mv in cabac context am: 0a69e08c39
am: c812fef1e2

Change-Id: If0c1fe221ca38939fce578a50e2675e5627ae863
2016-11-29 00:00:34 +00:00
Harish Mahendrakar
c812fef1e2 Encoder: Fixed unaligned access of i1_ref_idx and u1_mv in cabac context
am: 0a69e08c39

Change-Id: I5b6c330440b5219da31bf5f7e07b01fb65d8804a
2016-11-28 23:56:33 +00:00
Harish Mahendrakar
0a69e08c39 Encoder: Fixed unaligned access of i1_ref_idx and u1_mv in cabac context
i1_ref_idx and u1_mv in cabac context are defined as char,
but were typecasted to int and were accessed, and were not
aligned to 4 byte boundary.
This results in an undefined behaviour

Bug: 33073518
Test: Tested with -fsanitize=alignment enabled on avcenc
Change-Id: Ie4a73de076a9239f2d8707af68b7d2cd796aa803
2016-11-24 12:22:25 +05:30
Harish Mahendrakar
640d12c5d1 Decoder: Ignore dangling fields during flush am: 4b6344b281 am: b258b1bd56
am: 75d40672bd

Change-Id: I7a230ea9dbf850c7d9429cff6046fcb1e8ecac51
2016-10-25 19:29:20 +00:00
Harish Mahendrakar
75d40672bd Decoder: Ignore dangling fields during flush am: 4b6344b281
am: b258b1bd56

Change-Id: I5aa03ad409e6f1b2c17764741e0fc32b4a166c53
2016-10-25 19:24:50 +00:00
Harish Mahendrakar
b258b1bd56 Decoder: Ignore dangling fields during flush
am: 4b6344b281

Change-Id: I8017e81b6d14cb507f297c54a95748455d6b5484
2016-10-25 19:20:19 +00:00
Harish Mahendrakar
4b6344b281 Decoder: Ignore dangling fields during flush
If decoder has decoded one field and is waiting for next field,
and flush is called, then ignore the current decoded field.

This is needed to ensure seek works in case of flush between field
decode calls

Bug: 32391809
Test: Tested manually by decoding clip in the above bug in Photos app

Change-Id: I72bb0385c216ebe262b346a56d3bc8fb97f90a7b
2016-10-25 11:47:19 +05:30
Marco Nelissen
2a54f2625d 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
am: 8e72cfbcf4

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

Change-Id: Ic52a5b4acfe095179a89e71b44569d77b0806079
2016-10-19 00:28:13 +00:00
Harish Mahendrakar
8e498e17f5 Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b am: 4baff60796 am: ceccbeb8ae am: 3c337f9f1e am: 9e0be2fe79 am: a8808acb5c am: c00032e8a7
am: 8b245d6fda

Change-Id: Ifed4e1eef5a4865035ef65dcf59cfc7a7ba43b52
2016-10-19 00:28:05 +00:00
Harish Mahendrakar
8e061d28e5 Decoder: Ignore few dpb errors am: 026745ef04 am: 5d794693d5 am: 4483ecc64b am: 7e5239dd82 am: a3a7de7001 am: 30243167b0 am: 263304d2d2
am: 654eba4b42

Change-Id: I9e9b4d1740ca67241781d31db8d13c7308b8964c
2016-10-19 00:27:56 +00: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
Harish Mahendrakar
8b245d6fda Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b am: 4baff60796 am: ceccbeb8ae am: 3c337f9f1e am: 9e0be2fe79 am: a8808acb5c
am: c00032e8a7

Change-Id: I9a3c008eeef8b400721ba9147b86df31c1c307f2
2016-10-19 00:19:40 +00:00
Harish Mahendrakar
654eba4b42 Decoder: Ignore few dpb errors am: 026745ef04 am: 5d794693d5 am: 4483ecc64b am: 7e5239dd82 am: a3a7de7001 am: 30243167b0
am: 263304d2d2

Change-Id: Ic5e246a3969766affcc52752a913e079a15cd839
2016-10-19 00:19:30 +00:00
Marco Nelissen
464eb1f646 Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev am: 23d5bc6405 am: 1e36eb1b99 am: 48c4de0f98 am: eab553f817 am: a38d1442ee
am: 6d169c47a9

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

Change-Id: Ie824231ab956aa4b15bee79c3caa533b1a17a79c
2016-10-19 00:12:58 +00:00
Harish Mahendrakar
c00032e8a7 Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b am: 4baff60796 am: ceccbeb8ae am: 3c337f9f1e am: 9e0be2fe79
am: a8808acb5c

Change-Id: I0bd2766597ff6454f80de9e4981811c701a6027d
2016-10-19 00:12:50 +00:00
Harish Mahendrakar
263304d2d2 Decoder: Ignore few dpb errors am: 026745ef04 am: 5d794693d5 am: 4483ecc64b am: 7e5239dd82 am: a3a7de7001
am: 30243167b0

Change-Id: Iff71fce505cc23c12284fb57ba45ef1c6bca1739
2016-10-19 00:12:42 +00:00
Marco Nelissen
6d169c47a9 Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev am: 23d5bc6405 am: 1e36eb1b99 am: 48c4de0f98 am: eab553f817
am: a38d1442ee

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

Change-Id: I9d542a27d8d0410758485a6ca7799c9715bb0729
2016-10-19 00:05:30 +00:00
Harish Mahendrakar
a8808acb5c Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b am: 4baff60796 am: ceccbeb8ae am: 3c337f9f1e
am: 9e0be2fe79

Change-Id: Ie789ffc597afb016723dbe3f43606547218344a4
2016-10-19 00:05:22 +00:00
Harish Mahendrakar
30243167b0 Decoder: Ignore few dpb errors am: 026745ef04 am: 5d794693d5 am: 4483ecc64b am: 7e5239dd82
am: a3a7de7001

Change-Id: I8c3ae6a50d75574789e5540372b0bf7a3170438f
2016-10-19 00:05:11 +00:00
Marco Nelissen
a38d1442ee Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev am: 23d5bc6405 am: 1e36eb1b99 am: 48c4de0f98
am: eab553f817

Change-Id: I2b13d7690a16aeeebf0aea6b1226a40eab5ea106
2016-10-18 23:58:51 +00:00
Harish Mahendrakar
dcb099e183 Decoder: Fixes in handling errors in Mbaff clips. am: 6676aeb419 am: fab0729908 am: 05bd0e8d4c
am: 69b2803e55

Change-Id: Ie26061f05f05cc1095401966bd6902d186fa1591
2016-10-18 23:58:44 +00:00
Harish Mahendrakar
9e0be2fe79 Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b am: 4baff60796 am: ceccbeb8ae
am: 3c337f9f1e

Change-Id: Idb623a6f8a8b53ec1e496675cfe4ed09785510fb
2016-10-18 23:58:36 +00:00
Harish Mahendrakar
a3a7de7001 Decoder: Ignore few dpb errors am: 026745ef04 am: 5d794693d5 am: 4483ecc64b
am: 7e5239dd82

Change-Id: I4cbbe4ecf9a16e92941409b26a1b23fa09d80fa1
2016-10-18 23:58:28 +00:00
Marco Nelissen
eab553f817 Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev am: 23d5bc6405 am: 1e36eb1b99
am: 48c4de0f98

Change-Id: I9651f427e5fdf9a835f9d300022caf098e63792b
2016-10-18 23:51:19 +00:00
Harish Mahendrakar
69b2803e55 Decoder: Fixes in handling errors in Mbaff clips. am: 6676aeb419 am: fab0729908
am: 05bd0e8d4c

Change-Id: I78ca16a72ff78b89568ccca865d389f1d6cfd672
2016-10-18 23:51:11 +00:00
Harish Mahendrakar
3c337f9f1e Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b am: 4baff60796
am: ceccbeb8ae

Change-Id: Iff3925c6d9441f3e983ec206d3e6947780119d97
2016-10-18 23:51:04 +00:00
Harish Mahendrakar
7e5239dd82 Decoder: Ignore few dpb errors am: 026745ef04 am: 5d794693d5
am: 4483ecc64b

Change-Id: Iaf20d58617b871d8edf58f7ac7e2b9c933a72cfa
2016-10-18 23:50:57 +00:00
Marco Nelissen
48c4de0f98 Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev am: 23d5bc6405
am: 1e36eb1b99

Change-Id: I1de4ab12d8192919324625b8e7cb37b167824f81
2016-10-18 23:43:49 +00:00
Harish Mahendrakar
05bd0e8d4c Decoder: Fixes in handling errors in Mbaff clips. am: 6676aeb419
am: fab0729908

Change-Id: I3f97efbf26205fd5f0f12928cb146b9b14036dbb
2016-10-18 23:43:42 +00:00
Harish Mahendrakar
ceccbeb8ae Merge "Decoder: Ignore few dpb errors" into mnc-dev am: b4a6d2037b
am: 4baff60796

Change-Id: Id7d0fb4b04daff91d70b35263c4c59d2c7b7034f
2016-10-18 23:43:35 +00:00
Harish Mahendrakar
4483ecc64b Decoder: Ignore few dpb errors am: 026745ef04
am: 5d794693d5

Change-Id: I0e1fbd03ec9ecb916f6e931f3519a86777819415
2016-10-18 23:43:27 +00:00
Marco Nelissen
1e36eb1b99 Merge "Decoder: Fixes in handling errors in Mbaff clips." into mnc-dev
am: 23d5bc6405

Change-Id: I6a588da0de2ce9f6aebbdd0511294ccd0d27f578
2016-10-18 23:36:39 +00: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
4baff60796 Merge "Decoder: Ignore few dpb errors" into mnc-dev
am: b4a6d2037b

Change-Id: I71b7aaf22d31241b0240bc7cdb9809d8f028e767
2016-10-18 23:36:27 +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
Martin Storsjo
9d5e6ef9fc armv8: Remove unnecessary register shuffling am: f1c718c267
am: 5b4af7824f

Change-Id: I815ee8f5307bc9040668b8e20277ab7ddd9fd002
2016-10-14 23:57:05 +00:00
Martin Storsjo
a432171f71 armv8: Use neg instead of sub #0, neg as replacement for rsb am: e5b0a782fa
am: 0ec1c11c50

Change-Id: Id222c11da1a8a7f238076b510db4bd6e052dda39
2016-10-14 23:57:04 +00:00
Martin Storsjo
1ca0b2ad1e arm: Use neg instead of rsb with a #0 immediate am: 37edf81bad
am: fe67baccb4

Change-Id: I30422c198158d8e692e3994881d2bf22f35fbaa6
2016-10-14 23:57:03 +00:00
Martin Storsjo
e57c55f476 armv8: Remove unnecessary sign extensions am: 6958350a65
am: 4c5e34c5d2

Change-Id: Ib14ec825a174cd06150ba1e2c465bd3beda74c03
2016-10-14 23:57:01 +00:00
Martin Storsjo
7a0ad00205 armv8: Fix ime_calculate_sad3_prog_av8 am: e17ec6c736
am: 6b6d0367bd

Change-Id: Iddb4b7dce35aec3826749b29303994de378e428a
2016-10-14 23:57:00 +00:00
Martin Storsjo
04f62e56bc armv8: Add missing sign extension for WORD32 parameters am: d91f49ad65
am: e1caaaa797

Change-Id: I31f82b82471dedd016cb1a53b50c80ef6a360e73
2016-10-14 23:56:59 +00:00