Commit graph

207 commits

Author SHA1 Message Date
Naveen Kumar P
3249f368df Merge "Update ctb pu map for I slice" into lmp-dev am: d4cb5bc056 am: 2c01a8105a
am: 3598a31588

Change-Id: Ib9d9d7f15fbe75180e6ea476af613c318e782254
2017-11-30 01:57:28 +00:00
Naveen Kumar P
3598a31588 Merge "Update ctb pu map for I slice" into lmp-dev am: d4cb5bc056
am: 2c01a8105a

Change-Id: I713638a47505ff1fcc01346c792390c20f0251cc
2017-11-30 01:51:59 +00:00
Naveen Kumar P
2c01a8105a Merge "Update ctb pu map for I slice" into lmp-dev
am: d4cb5bc056

Change-Id: I32d4d68b49c5e4ce1303ea0e3eef5daca30480bb
2017-11-30 01:47:06 +00:00
TreeHugger Robot
d4cb5bc056 Merge "Update ctb pu map for I slice" into lmp-dev 2017-11-30 01:23:41 +00:00
Naveen Kumar P
43f126112a Update ctb pu map for I slice
The update in I slice is required for P/B slices in the same
frame for accessing neighbor pus.

Bug: 62851602
Bug: 63522067
Test: re-run PoC from b/62851602
Change-Id: Ie5e43f1cd5649b2745b6527654bc24d8c7d42932
2017-11-21 11:50:04 -08:00
Bernhard Rosenkrnzer
d330076fb7 Update assembly files to unified syntax
am: e34131d744

Change-Id: I67525321b3be3df8533f25022d57c7292d0897c0
2017-11-07 22:03:39 +00:00
Naveen Kumar P
6a8d396574 Merge "Fix first frame error return" into mnc-dev
am: cd5fc07378

Change-Id: I2f72c111d266c040204fb5cc994f883e486f8281
2017-11-07 21:57:09 +00:00
TreeHugger Robot
cd5fc07378 Merge "Fix first frame error return" into mnc-dev 2017-11-07 21:48:07 +00:00
Naveen Kumar P
8fff219fac Fix first frame error return
Remove the check that returns before joining the slave threads
if there is an error in the first frame. And in slice error mode
do not parse bitstream.

Bug: 64784973
Test: no longer hangs on POC
Change-Id: I3c2e2d9f84304bcb34831d7d796da710154774fa
2017-11-07 18:30:03 +00:00
Bernhard Rosenkränzer
e34131d744 Update assembly files to unified syntax
This allows them to be built with clang's internal assembler.
Also, pass -I flags to the assembler explicitly and stop disabling
clang.

Bug: 68320413
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Change-Id: I67dfd0d1b44217af6cf159f4d8810b3c2173702b
2017-11-06 17:14:37 -08:00
Sungtak Lee
1e8ce1e3fd Merge "Return error for negative crop parameters" into lmp-mr1-dev am: a96528e62e
am: 4852744932

Change-Id: I158447b65362d6603421b7503196e90d62fa7d14
2017-11-06 22:40:42 +00:00
Sungtak Lee
4852744932 Merge "Return error for negative crop parameters" into lmp-mr1-dev
am: a96528e62e

Change-Id: I5d95d3aeebc111d2268988c644c7dc6b6cd26f4a
2017-11-06 22:38:12 +00:00
Sungtak Lee
a96528e62e Merge "Return error for negative crop parameters" into lmp-mr1-dev 2017-11-06 22:31:31 +00:00
Ray Essick
3715a6f036 Merge "DO NOT MERGE Consume bytes for sps with unsupported resolution" into lmp-dev 2017-11-03 22:34:15 +00:00
Ray Essick
fe18947966 Merge "DO NOT MERGE Consume bytes for sps with unsupported resolution" into mnc-dev
am: 7973e3adee

Change-Id: I280d506882c7d8b796248897549fb5b9747671d7
2017-11-03 20:30:44 +00:00
Ray Essick
7973e3adee Merge "DO NOT MERGE Consume bytes for sps with unsupported resolution" into mnc-dev 2017-11-03 20:24:47 +00:00
Naveen Kumar P
ef0772c3ca Merge "Fix slice address zero for not first slice in pic" into lmp-dev am: 114aff802c am: ad70f9c5e2
am: 20a7f0e1b4

Change-Id: I22705396bf416b34f1ad10767d638d47d5354c60
2017-11-03 19:10:37 +00:00
Naveen Kumar P
20a7f0e1b4 Merge "Fix slice address zero for not first slice in pic" into lmp-dev am: 114aff802c
am: ad70f9c5e2

Change-Id: I5c9a3536b5b280cb2c8119e5749605f7bf159319
2017-11-03 19:07:17 +00:00
Wei Jia
9d4d24e860 Merge "Fix prev slice incomplete check" into lmp-dev am: 94c2e4ad73 am: 7ec4d76835
am: c0b7da5b7c

Change-Id: I587e690d8cfcb96abbd19561df262eeff5f0469c
2017-11-03 19:07:04 +00:00
Naveen Kumar P
ad70f9c5e2 Merge "Fix slice address zero for not first slice in pic" into lmp-dev
am: 114aff802c

Change-Id: I6a33a254a2db3695b5a3cb05cee19c06285fc053
2017-11-03 19:05:33 +00:00
Wei Jia
c0b7da5b7c Merge "Fix prev slice incomplete check" into lmp-dev am: 94c2e4ad73
am: 7ec4d76835

Change-Id: I121231f5af58fd985a88e1aa14f32aa878fde903
2017-11-03 19:05:33 +00:00
Wei Jia
7ec4d76835 Merge "Fix prev slice incomplete check" into lmp-dev
am: 94c2e4ad73

Change-Id: I4792e9f0f6495bab0c9501201d9f52b381fc129c
2017-11-03 19:03:34 +00:00
TreeHugger Robot
114aff802c Merge "Fix slice address zero for not first slice in pic" into lmp-dev 2017-11-03 19:01:28 +00:00
TreeHugger Robot
59d29f3a42 Merge "Decoder: Handle ps_codec_obj memory allocation failure gracefully" into mnc-dr-dev 2017-11-03 19:00:16 +00:00
Wei Jia
94c2e4ad73 Merge "Fix prev slice incomplete check" into lmp-dev 2017-11-03 18:59:15 +00:00
Naveen Kumar P
6284aca74a Fix incomplete frame error am: ee0e003a0f am: 9fb45f7a68
am: e3d3a992af

Change-Id: Ibac9789daedaa37b9bfbec9c4fb67d66a648012a
2017-11-03 18:57:32 +00:00
Naveen Kumar P
e3d3a992af Fix incomplete frame error am: ee0e003a0f
am: 9fb45f7a68

Change-Id: I16e5f80a1ff8b88f8042b3cf3ff5563a5f80b865
2017-11-03 18:55:07 +00:00
Naveen Kumar P
9fb45f7a68 Fix incomplete frame error
am: ee0e003a0f

Change-Id: I43d586f52753cfb210be26dd343e274fe292fd55
2017-11-03 18:52:32 +00:00
Naveen Kumar P
978d3320ef Return error for negative crop parameters
Bug: 65398821
Change-Id: I18a94d40d77504bb9c9d5a5e7bf41207aed28712
Signed-off-by: Sungtak Lee <taklee@google.com>
2017-11-02 20:39:52 +00:00
Naveen Kumar P
ee0e003a0f Fix incomplete frame error
Bug: 63522067
Bug: 64380403
Test: ran POC before/after
Change-Id: If22f2ed8936e0ead9fcfa64ddde99e85c10cecd2
2017-11-01 12:42:30 -07:00
Harish Mahendrakar
a966e2a65d Decoder: Handle ps_codec_obj memory allocation failure gracefully
If memory allocation for ps_codec_obj fails, return gracefully
with an error code. All other allocation failures are
handled correctly.

Bug: 68299873
Test: before/after with always-failing malloc
Change-Id: I5e6c07b147b13df81e65476851662d4b55d33b83
2017-10-31 16:31:31 -07:00
Naveen Kumar P
ed3f6bb877 Fix slice address zero for not first slice in pic
The parameter slice address is parsed only slices that are not
first slice in the pic and the value cannot be zero.

Bug: 64380202
Test: ran PoC on master
Change-Id: Ic21c40cf67c916806113d2425790a27cb658b5d2
2017-10-31 14:57:18 -07:00
Marco Nelissen
92c2b4cc1a Merge "Fix tile index buf alloc size" into mnc-dr-dev 2017-10-31 17:50:36 +00:00
Ray Essick
34989f97fe DO NOT MERGE Consume bytes for sps with unsupported resolution
For an sps with unsupported resolution, consume the bytes.
Otherwise application will feed the same sps again
and again.

Bug: 65718319
Test: ran POC before/after
Change-Id: I7b2d35b8f31d830f9495682b86b6924bdd2f95d0
Merged-In: Ic81990030f7e6afd8cf3ebd387c5be7443b148b9
Merged-In: I02295e813f37a963d7f6216bb8a7e86648485681
2017-10-31 10:48:35 -07:00
Naveen Kumar P
9c24714e25 Fix prev slice incomplete check
Bug: 64552185
Bug: 65034175

Move the decision to signal missing ctbs as skipped ctbs of
previous slice to the end of current slice hdr parsing to
ensure no error in slice hdr parsing.

Change-Id: Ia33b4be31dad6225b04e7b20b9000059c87941c4
(cherry picked from commit 74f35f191022c06863dacd33a3651a33be3ef08d)
2017-10-30 15:40:08 -07:00
Naveen Kumar P
44b8f080fb Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev am: 6587d735fa am: 27e8401a7c
am: 862bb09d83

Change-Id: I5de0426f1e6ab5ae6611f32881196290260b775f
2017-10-20 19:56:40 +00:00
Naveen Kumar P
862bb09d83 Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev am: 6587d735fa
am: 27e8401a7c

Change-Id: Ia7712ae3fa31002fbde12b2491d42c8532555a26
2017-10-20 19:54:10 +00:00
Naveen Kumar P
27e8401a7c Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev
am: 6587d735fa

Change-Id: Iec9ffae348591115bb7d21c93acbdbb69adbf703
2017-10-20 19:52:10 +00:00
TreeHugger Robot
6587d735fa Merge "Set error skip ctbs as multiple 8x8 pus" into lmp-dev 2017-10-20 19:44:51 +00:00
Robert Shih
556af11a03 Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev am: 4b5c23e393 am: b49adbf304
am: 4ff7f4bfee

Change-Id: Idd6ee6f7ce322c025864b954cabe098776718ca7
2017-10-18 18:43:28 +00:00
Naveen Kumar P
1ee4f5d773 Fix tile index buf alloc size
Bug: 64893226

Change-Id: Iec02f6a7b65804cc3daadf6e29d57a7ad955d517
(cherry picked from commit 6921d875c1)
2017-10-18 18:29:40 +00:00
Ray Essick
425ee10a01 Alloc extra bytes for bits buf for parse optimzation am: 2ae456c2a3
am: 512ea0e115

Change-Id: I5c6c1817e1033548246f37a66b0c4f273526eec5
2017-10-18 18:12:48 +00:00
Robert Shih
4ff7f4bfee Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev am: 4b5c23e393
am: b49adbf304

Change-Id: I8798964119251ab311a0884ccdc326f7fba11871
2017-10-18 18:12:17 +00:00
Marco Nelissen
8db8414337 Merge "Fix tile index buf alloc size" into lmp-dev am: 4b9053c15c
am: b1d1fad9f6

Change-Id: I71d054275736897960883d16b3fe6cb1807b39a4
2017-10-18 18:11:58 +00:00
Ray Essick
056e988115 DO NOT MERGE Consume bytes for sps with unsupported resolution
For an sps with unsupported resolution, consume the bytes.
Otherwise application will feed the same sps again
and again.

Bug: 65718319
Test: ran POC before/after
Change-Id: Ic81990030f7e6afd8cf3ebd387c5be7443b148b9
Merged-In: I02295e813f37a963d7f6216bb8a7e86648485681
2017-10-18 17:17:23 +00:00
Ray Essick
512ea0e115 Alloc extra bytes for bits buf for parse optimzation
am: 2ae456c2a3

Change-Id: I433259a5e1a0f17be601b126c558abde80c8aa80
2017-10-10 02:58:15 +00:00
Naveen Kumar P
2b9fb0c207 Set error skip ctbs as multiple 8x8 pus
Bug: 65123471

This is required for incomplete ctbs at the frame
boundaries

Change-Id: I7e41a3ac2f6e35a929ba4ff3ca4cfcc859a7b867
2017-10-05 13:56:13 -07:00
Ray Essick
2ae456c2a3 Alloc extra bytes for bits buf for parse optimzation
Without this extra allocation, if a nal fills entire bits
buffer, there will be out of bound memory read access.

Bug: 65719872
Test: ran poc before/after on ASAN of master
Change-Id: I9f4fca0739db84db023b1252c1365bfd13355541
Merged-In: I1c36821505bdc4fe6c23f30a02ab2fb0fb657946
2017-10-03 16:04:33 -07:00
Naveen Kumar P
4cf597a518 Alloc extra bytes for bits buf for parse optimzation
Without this extra allocation, if a nal fills entire bits
buffer, there will be out of bound memory read access.

Bug: 65719872
Test: ran poc before/after on ASAN of master
Change-Id: I1c36821505bdc4fe6c23f30a02ab2fb0fb657946
2017-10-03 15:30:34 -07:00
Robert Shih
b49adbf304 Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev
am: 4b5c23e393

Change-Id: I8608961e4cbf7c7d2d73711a7b7ce6cf2332aa8c
2017-09-13 20:36:55 +00:00