TreeHugger Robot
6540e973f8
Merge "Fix DoS in NAL search" into qt-qpr1-dev am: 1b481aebd6
...
Change-Id: I6b4644c57d3f2ebc356255a0ae8713175c219115
2020-03-19 18:49:27 +00:00
TreeHugger Robot
1b481aebd6
Merge "Fix DoS in NAL search" into qt-qpr1-dev
2020-03-19 18:39:44 +00:00
Automerger Merge Worker
1d5e937ff8
Do not call SIMD format conversion for width < 32 am: 75db1b8e48
...
Change-Id: Ib16bf887c1f3a1e0118e2872a39eb1de8cddfb29
2020-02-12 23:43:20 +00:00
Harish Mahendrakar
75db1b8e48
Do not call SIMD format conversion for width < 32
...
Neon SIMD functions do not support width < 32.
Bug: 143464314
Test: poc in bug
Change-Id: I2445c3d98c0b1afbb1ef480403bbc67add629cac
(cherry picked from commit 6219b83299 )
2020-02-04 19:31:27 +00:00
Harish Mahendrakar
196e72450a
Fix DoS in NAL search
...
Bug: 139939283
Test: poc in bug
Change-Id: I345232790e2d351d82e9dc6973a5ef86ce513ef3
(cherry picked from commit e52410163e )
2020-02-04 05:09:05 +00:00
Akshata Jadhav
445e0d8d5e
libhevcdec: iquant-itrans issue in chroma planes
...
Misplaced local array on stack is resulting in color artifacts in
decoded yuv. It worked so far, because the array luma_nbr_flags_4x4[]
was always allocated on the same address and thus preserved values from
previous iteration.
Bug: 148157334
Test: atest android.media.cts.HeifWriterTest
Change-Id: Ic2b1964895bf26101508ff2ac82a94192b7b74f8
2020-01-28 04:56:13 +00:00
Harish Mahendrakar
3ef502bf64
Merge "decoder: Reset slice header at start of slice header decode" into oc-dev am: 930597cb2e am: 588f78b7d7 am: 7b1140f957 am: 399938e52e am: 7aa6102559 am: 8bfa119917
...
am: 60f9768c9e
Change-Id: I2616ea213ca2d2790e597fcaa302b05118a0213b
2019-09-28 09:47:47 -07:00
Harish Mahendrakar
75d1ac1026
Merge "decoder: Reset slice header at start of slice header decode" into oc-dev am: 930597cb2e am: 588f78b7d7 am: 7b1140f957 am: 399938e52e am: 7aa6102559
...
am: 8bfa119917
Change-Id: I03efa8acbeeed1e82a49ac632a78a777b3419452
2019-09-28 09:41:58 -07:00
Harish Mahendrakar
60f9768c9e
Merge "decoder: Reset slice header at start of slice header decode" into oc-dev am: 930597cb2e am: 588f78b7d7 am: 7b1140f957 am: 399938e52e am: 7aa6102559
...
am: 8bfa119917
Change-Id: Iec721bd520b328bb7d81d51106733715ea0105c8
2019-09-28 09:41:58 -07:00
Harish Mahendrakar
7aa6102559
Merge "decoder: Reset slice header at start of slice header decode" into oc-dev am: 930597cb2e am: 588f78b7d7 am: 7b1140f957
...
am: 399938e52e
Change-Id: I3107c7d7a21921561cbf1a9ebb34a8645011094d
2019-09-28 09:30:23 -07:00
TreeHugger Robot
930597cb2e
Merge "decoder: Reset slice header at start of slice header decode" into oc-dev
2019-09-28 14:09:32 +00:00
Harish Mahendrakar
06aa42bdc7
Check change in CTB size when decoding multiple SPS with same id am: 70940fbabd am: a9fc115a23
...
am: a368569d61
Change-Id: I8b9eae557279323378b728e6452550f2547610c6
2019-09-27 14:37:21 -07:00
Harish Mahendrakar
12ef0d291b
Check change in CTB size when decoding multiple SPS with same id am: 70940fbabd
...
am: a9fc115a23
Change-Id: I5b9cbfb2e9c11d1b66c22cc52aef64f9e263ad62
2019-09-27 14:30:47 -07:00
Harish Mahendrakar
a368569d61
Check change in CTB size when decoding multiple SPS with same id am: 70940fbabd
...
am: a9fc115a23
Change-Id: I962ca2ef87273ec6082d10abb1ee32b16a0c8118
2019-09-27 14:30:46 -07:00
Harish Mahendrakar
072f9084f4
Check change in CTB size when decoding multiple SPS with same id
...
If an SPS is being overwritten, ensure CTB size remains same.
If not, return from decoder and reset the decoder state in the
subsequent decode call.
Bug: 140322595
Test: poc in bug
Change-Id: Ie1a18b18704d6ef099535149fe21a1921bcbeeaf
Merged-In: I5f1e52d3bd2b48874a088ab32054f5a89e62eeb5
2019-09-19 21:34:52 -07:00
Harish Mahendrakar
70940fbabd
Check change in CTB size when decoding multiple SPS with same id
...
If an SPS is being overwritten, ensure CTB size remains same.
If not, return from decoder and reset the decoder state in the
subsequent decode call.
Bug: 140322595
Test: poc in bug
Change-Id: I5f1e52d3bd2b48874a088ab32054f5a89e62eeb5
2019-09-19 21:17:50 -07:00
Harish Mahendrakar
42f70ae4ef
decoder: Reset slice header at start of slice header decode
...
Reset slice header to zero, to avoid using invalid slice header
contents from prior headers parsed.
Bug: 140692129
Test: poc in bug
Change-Id: Ib2b7c006069b0226b5f2d741f9da7b681be26f82
2019-09-19 08:43:56 -07:00
Harish Mahendrakar
c9634afbf8
Decoder: Add support for returning reorder_depth and display index
...
am: c7bf85f8ae
Change-Id: Idc4cf03240921d539946863e0395ed7e6cf27a59
2019-09-12 11:11:27 -07:00
Harish Mahendrakar
c7bf85f8ae
Decoder: Add support for returning reorder_depth and display index
...
Bug: 138627015
Test: Verify reorder depth for few clips
Change-Id: Idea3ae794e1a54e630e6ee1ca8a4594978a3c8a2
2019-09-11 00:25:25 -07:00
Dan Willemsen
e0b810f1ac
Stop using __DATE__/__TIME__ on all builds
...
am: 4517537400
Change-Id: I18b87b747af44aea683d4a1b8528cb770fb358fd
2019-08-28 19:32:06 -07:00
Dan Willemsen
4517537400
Stop using __DATE__/__TIME__ on all builds
...
We're beginning to use remote caches with Android builds, so I'm turning
on -Werror=date-time so that host builds are also reproducible.
Test: treehugger
Test: mmma external/libhevc
Change-Id: I7fa1099d68cced587af46ad4d76cab5af4366e1e
2019-08-27 19:45:01 -07:00
Harish Mahendrakar
9fcd94f316
decoder: Fix valid SPS check in parsing SEI am: 61646846b3 am: 7f5da9039c am: e4237f852d
...
am: 824c19e4ca
Change-Id: I7b0970d485940b1c4c8eeea8f9cd316a84d1ac89
2019-06-20 21:20:00 -07:00
Saurabh Sood
f23d063692
Add push-pop for Neon D8-D15 registers
...
Bug: 68320413
Test: hevcdec with testbench updates to validate D8-D15
Change-Id: Ib62e68b69b016b1ded12cb00d1bb580de8a744c2
(cherry picked from commit 6acb36d25d )
2019-06-12 09:54:51 +00:00
Harish Mahendrakar
61646846b3
decoder: Fix valid SPS check in parsing SEI
...
When parsing SEI, ensure there is at least one valid SPS.
Test: poc in bug
Bug: 134420911
Change-Id: If3aa142b7fac324f8416e647572dfb002f56e06d
2019-06-07 16:23:17 -07:00
Saurabh Sood
907df0cf64
[automerger] Add push-pop for Neon D8-D15 registers am: 6acb36d25d am: 9acce62f78 am: 78acd1a8e7 am: 9313d3150d am: 61eb24a4f5 am: f82399d86a am: 091f45e3ad am: 0dce3a9137
...
am: 65974e7a26
Change-Id: I974dd9673b91ad80a72d27076fce4fe5697c7b8c
2019-05-31 14:51:24 -07:00
Android Build Merger (Role)
f82399d86a
[automerger] Add push-pop for Neon D8-D15 registers am: 6acb36d25d am: 9acce62f78 am: 78acd1a8e7 am: 9313d3150d am: 61eb24a4f5
...
Change-Id: Ie4e0a965e53d25155ee7976e6588b4b797aa7ff0
2019-05-29 22:53:25 +00:00
Android Build Merger (Role)
9acce62f78
[automerger] Add push-pop for Neon D8-D15 registers am: 6acb36d25d
...
Change-Id: Ib972a88cef7e3ccb1388aede0d9e1919c218a66d
2019-05-29 22:53:14 +00:00
Saurabh Sood
6acb36d25d
Add push-pop for Neon D8-D15 registers
...
Bug: 68320413
Test: hevcdec with testbench updates to validate D8-D15
Change-Id: Ib62e68b69b016b1ded12cb00d1bb580de8a744c2
2019-05-29 15:52:09 -07:00
Harish Mahendrakar
743001de6d
Add few more checks for invalid parameters in sps
...
Following elements didn't have a bound check in SPS as spec doesn't list
the bounds on these explicitly.
log2_min_coding_block_size_minus3, log2_diff_max_min_coding_block_size,
log2_min_transform_block_size_minus2 and log2_diff_max_min_transform_block_size
Added appopriate error checks on these fields
Bug: 129366952
Bug: 130023983
Test: vendor
Merged-In: I59d95f43c2ef98300132d664095e88df8e87a164
Change-Id: I59d95f43c2ef98300132d664095e88df8e87a164
(cherry picked from commit 2f30da4ca2 )
2019-05-15 05:32:20 +00:00
Harish Mahendrakar
34208286a1
Add bounds check for tile dimensions
...
Bug: 129976164
Bug: 130024844
Test: vendor/poc
Change-Id: I1e54babaec9c5ad199b60c7cfc1e24e36422f630
(cherry picked from commit 05f83e9458 )
2019-05-15 05:32:16 +00:00
Harish Mahendrakar
76221fb693
Add missing return check for short_term_ref_pic_set()
...
Bug: 129401104
Bug: 130025324
Test: vendor
Change-Id: I685dd29ec13cca0ced5de8eb3aea1d0da5952a62
(cherry picked from commit 299cceb9e4 )
2019-05-15 05:32:11 +00:00
Ray Essick
9e7930ac53
Merge "Add few more checks for invalid parameters in sps" into nyc-dev
2019-05-08 16:20:06 +00:00
Android Build Merger (Role)
8fb024bad3
[automerger] Add few more checks for invalid parameters in sps am: 2f30da4ca2 am: 59c1e4d23e am: 7dbf2eeb7f am: 4fd075fd4d am: e10f3d3c6d
...
Change-Id: I44b6ea6f4a0af681be55c893cb9241ef5e90ec4c
2019-05-07 20:47:48 +00:00
Android Build Merger (Role)
59c1e4d23e
[automerger] Add few more checks for invalid parameters in sps am: 2f30da4ca2
...
Change-Id: I78d8b0b2a9e804f3af8fd090876fbd2750d1edf9
2019-05-07 20:47:43 +00:00
Harish Mahendrakar
2f30da4ca2
Add few more checks for invalid parameters in sps
...
Following elements didn't have a bound check in SPS as spec doesn't list
the bounds on these explicitly.
log2_min_coding_block_size_minus3, log2_diff_max_min_coding_block_size,
log2_min_transform_block_size_minus2 and log2_diff_max_min_transform_block_size
Added appopriate error checks on these fields
Bug: 129366952
Bug: 130023983
Test: vendor
Merged-In: I59d95f43c2ef98300132d664095e88df8e87a164
Change-Id: I59d95f43c2ef98300132d664095e88df8e87a164
2019-05-07 20:47:42 +00:00
Harish Mahendrakar
3d5a29afff
Merge changes from topic "am-5b50c796-9c7d-4769-bc6c-f71bdac7c742" into oc-dev am: dce2f1a1a1 am: 7dd0807cdf am: cfebb9ec7d
...
am: 6b80fa9f71
Change-Id: I9a3853b7ca08ab2f10e2479721921dff59809449
2019-05-06 19:11:23 -07:00
Harish Mahendrakar
c34a29b7b5
[automerger] Add missing return check for short_term_ref_pic_set() am: 299cceb9e4 am: 2e8ae23656 am: 7ecb4083b9 am: 4fe71a567e am: 1561dc0fa9 am: 2b9fa38bb8 am: 6e96227190 am: cd5ac287ce
...
am: 0cdffda83f
Change-Id: I9086ab27ca823acc255239123cdeffe5671e3e18
2019-05-06 17:27:22 -07:00
TreeHugger Robot
d5130adfc5
Merge "Add bounds check for tile dimensions" into nyc-dev
2019-05-07 00:16:35 +00:00
TreeHugger Robot
dce2f1a1a1
Merge changes from topic "am-5b50c796-9c7d-4769-bc6c-f71bdac7c742" into oc-dev
...
* changes:
[automerger] Add bounds check for tile dimensions am: 05f83e9458 am: 8ee7982e46 am: 7c6da2165b am: c11699b0f4 am: c0d441f4a7
[automerger] Add bounds check for tile dimensions am: 05f83e9458 am: 8ee7982e46 am: 7c6da2165b am: c11699b0f4
[automerger] Add bounds check for tile dimensions am: 05f83e9458 am: 8ee7982e46 am: 7c6da2165b
[automerger] Add bounds check for tile dimensions am: 05f83e9458 am: 8ee7982e46
[automerger] Add bounds check for tile dimensions am: 05f83e9458
Add bounds check for tile dimensions
2019-05-07 00:16:35 +00:00
TreeHugger Robot
d683d78752
Merge changes from topic "am-5b50c796-9c7d-4769-bc6c-f71bdac7c742" into nyc-dr1-dev
...
* changes:
[automerger] Add bounds check for tile dimensions am: 05f83e9458
Add bounds check for tile dimensions
2019-05-07 00:16:35 +00:00
TreeHugger Robot
4f46e4b626
Merge "decoder: Report unsupported bitdepth and color format as fatal errors" into qt-dev
2019-05-01 22:15:00 +00:00
Harish Mahendrakar
7461e43ed8
decoder: Report unsupported bitdepth and color format as fatal errors
...
This will ensure clips with supported bitdepth or unsupport color
formats are not attempted to be decoded till end of the sequence.
Bug: 129796771
Bug: 130578045
Test: adb shell stagefright -s -S /sdcard/crowd422_hevc.mp4
Test: Ensure decoder doesn't attemp decoding all frames
Change-Id: I7c3cd58a0e231e7e64c278564d050086a079e12c
2019-04-30 15:50:13 -07:00
Harish Mahendrakar
8925a5b7fb
Add few more checks for invalid parameters in sps
...
Following elements didn't have a bound check in SPS as spec doesn't list
the bounds on these explicitly.
log2_min_coding_block_size_minus3, log2_diff_max_min_coding_block_size,
log2_min_transform_block_size_minus2 and log2_diff_max_min_transform_block_size
Added appopriate error checks on these fields
Bug: 129366952
Bug: 130023983
Test: vendor
Change-Id: I59d95f43c2ef98300132d664095e88df8e87a164
2019-04-30 14:11:10 -07:00
Android Build Merger (Role)
2b9fa38bb8
[automerger] Add missing return check for short_term_ref_pic_set() am: 299cceb9e4 am: 2e8ae23656 am: 7ecb4083b9 am: 4fe71a567e am: 1561dc0fa9
...
Change-Id: I378a6e4f6f70931f36fd74acb02846096679e367
2019-04-23 22:29:03 +00:00
Android Build Merger (Role)
2e8ae23656
[automerger] Add missing return check for short_term_ref_pic_set() am: 299cceb9e4
...
Change-Id: I9c4d960ac4e58f57b637908524918558ae539ca4
2019-04-23 22:28:54 +00:00
Harish Mahendrakar
299cceb9e4
Add missing return check for short_term_ref_pic_set()
...
Bug: 129401104
Bug: 130025324
Test: vendor
Change-Id: I685dd29ec13cca0ced5de8eb3aea1d0da5952a62
2019-04-23 15:28:03 -07:00
Android Build Merger (Role)
adb9a9521f
[automerger] Add bounds check for tile dimensions am: 05f83e9458 am: 8ee7982e46 am: 7c6da2165b am: c11699b0f4 am: c0d441f4a7
...
Change-Id: Id59eb1cae3db497e3b7d04abd207ff69819a2331
2019-04-23 22:07:43 +00:00
Android Build Merger (Role)
8ee7982e46
[automerger] Add bounds check for tile dimensions am: 05f83e9458
...
Change-Id: Ic7ecd009be03d4a991ffde51ba0081b4fc6998a6
2019-04-23 22:07:31 +00:00
Harish Mahendrakar
05f83e9458
Add bounds check for tile dimensions
...
Bug: 129976164
Bug: 130024844
Test: vendor/poc
Change-Id: I1e54babaec9c5ad199b60c7cfc1e24e36422f630
2019-04-23 15:06:48 -07:00
Snehal Bhamare
1b4ab78b5d
Decoder: Fixing integer-overflow sanitizer issues
...
Bug: 111272481
Test: vendor
Change-Id: Idd5db33617ae55f70a1be67e0374adceafc174d3
2019-02-05 14:25:24 -08:00