Commit graph

2094 commits

Author SHA1 Message Date
Hamsalekha S
ba77e93be7 Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f am: 1ab3e51baf am: 32c369cc3f am: fd327a47fb am: b10090d47a am: 2825c578d3 am: 1d6b06a73a
am: 7f049a7472

Change-Id: I5a44be13778eb16c0300d13e5dc1c32d7e0c506a
2017-09-11 22:43:13 +00:00
Hamsalekha S
7f049a7472 Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f am: 1ab3e51baf am: 32c369cc3f am: fd327a47fb am: b10090d47a am: 2825c578d3
am: 1d6b06a73a

Change-Id: Ic51424cf37e3f28cf2bc82449b6c24a048a8cc8d
2017-09-11 22:41:42 +00:00
Hamsalekha S
1d6b06a73a Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f am: 1ab3e51baf am: 32c369cc3f am: fd327a47fb am: b10090d47a
am: 2825c578d3

Change-Id: I1bf0cb0c96c45b419c06bd9b1d202b1ff08193e4
2017-09-11 22:39:14 +00:00
Hamsalekha S
2825c578d3 Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f am: 1ab3e51baf am: 32c369cc3f am: fd327a47fb
am: b10090d47a

Change-Id: I11ce5e415a95ff84546311ffa6a3182386cf54c4
2017-09-11 22:35:41 +00:00
Hamsalekha S
b10090d47a Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f am: 1ab3e51baf am: 32c369cc3f
am: fd327a47fb

Change-Id: I2b220a34b38f7a87bb61e8db8f7d258b81cde170
2017-09-11 22:33:41 +00:00
Hamsalekha S
fd327a47fb Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f am: 1ab3e51baf
am: 32c369cc3f

Change-Id: I0e7e6d2fea8a9bca73de2e5384d3c11e41c1ac36
2017-09-11 22:32:31 +00:00
Hamsalekha S
32c369cc3f Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a am: 8810e9db7f
am: 1ab3e51baf

Change-Id: I964f1bd1fc0d9534d6c9498864cc7831d13de449
2017-09-11 22:28:11 +00:00
Hamsalekha S
1ab3e51baf Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde am: 7f78e3aa9a
am: 8810e9db7f

Change-Id: Ieff4c111c38d3b7b5de018b7f7bc37a5710b3260
2017-09-11 22:26:10 +00:00
Hamsalekha S
8810e9db7f Decoder: Conceal picture only if valid picture buffer is obtained. am: 5df744afde
am: 7f78e3aa9a

Change-Id: I200e293b8480304f1faab6846b98edf0a8f2f9b0
2017-09-11 22:24:40 +00:00
Hamsalekha S
7f78e3aa9a Decoder: Conceal picture only if valid picture buffer is obtained.
am: 5df744afde

Change-Id: I7c650c1ec6891b937770560e8de95f95f8725be2
2017-09-11 22:22:40 +00:00
Lajos Molnar
09c8cb1b30 support 4080 max dimension
4096 is 256 macroblocks which does not fit on 8-bits, and 8-bits
are used for some variables that contain the size.

Bug: 65438670
Change-Id: Id977303054841c458cbd21c1538a9035d178fbef
2017-09-08 12:42:40 -07:00
Lajos Molnar
8a7f15c3d4 support 4K max dimension
This is required for handling 4K thumbnails that may be rotated.

Bug: 64939294
Change-Id: Ia33d8e1ce7fb07b5ec6bf604d30cd8f75c3228ae
2017-08-24 19:07:58 -07:00
Hamsalekha S
5df744afde Decoder: Conceal picture only if valid picture buffer is obtained.
If all the slices in the current pic were invalid, then
the decoder would not have received a valid picture buffer
in the current call. In such cases there is no need to conceal or
deblock the picture.

Bug: 62896384
Test: run ASAN-enabled PoC before/after the patch
Change-Id: I3cf6e871592826f93b0dcd2b06fff80677bc8338
2017-08-18 20:45:17 +00:00
Jiyong Park
4bd04b1b0c Make software codecs as VNDK
Software codecs and their dependencies are marked as VNDK (or just
vendor_available:true for static/header libs).

Bug: 37343418
Test: build the software codecs with BOARD_VNDK_VERSION=current
Change-Id: I84a07188fda0e89e422caee634cb12ec82568028
2017-08-07 13:14:45 +09:00
Hamsalekha S
ea38a80c08 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c am: d2e5daaede am: 61ddc9e202 am: aa05134f4a
am: 243f766234

Change-Id: I62ad3cb5e74efb89cf96c68a49addf7fd416cd0f
2017-07-15 01:16:43 +00:00
Hamsalekha S
f96761b52d Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c am: d2e5daaede am: 61ddc9e202 am: 6d73354309
am: 79b56d80d5

Change-Id: Ic7cfdc087bf9c3de52c5d6cf9a25dfe25db4a936
2017-07-15 01:16:34 +00:00
Hamsalekha S
243f766234 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c am: d2e5daaede am: 61ddc9e202
am: aa05134f4a

Change-Id: I7248e3c0d2d3f75df5a917baf054ed7619f59888
2017-07-15 01:12:55 +00:00
Hamsalekha S
79b56d80d5 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c am: d2e5daaede am: 61ddc9e202
am: 6d73354309

Change-Id: Ia709e1a4581a3f4edd4463cbced78686765af422
2017-07-15 01:12:34 +00:00
Hamsalekha S
6d73354309 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c am: d2e5daaede
am: 61ddc9e202

Change-Id: Ic8881c4a0d78835cca20b7a55f0c711f7e808e33
2017-07-15 01:08:04 +00:00
Hamsalekha S
aa05134f4a Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c am: d2e5daaede
am: 61ddc9e202

Change-Id: I64225bc3be73688fce5ab758ad38a13827d1690d
2017-07-15 01:08:04 +00:00
Hamsalekha S
61ddc9e202 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f am: 0b64261f4c
am: d2e5daaede

Change-Id: Ic1a04ff426ec654e28d142ced625011b7ff9fbe1
2017-07-15 01:04:04 +00:00
Hamsalekha S
d2e5daaede Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9 am: 0716eeeb7f
am: 0b64261f4c

Change-Id: Iaf12f46f8afcd54a8ba2340af24e4abd0be4b064
2017-07-15 01:00:02 +00:00
Hamsalekha S
0b64261f4c Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04 am: 6f82dff7b9
am: 0716eeeb7f

Change-Id: I1fa6f444d9758d38d0decc3270948810c259f9f3
2017-07-15 00:56:01 +00:00
Hamsalekha S
0716eeeb7f Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd am: d5ad4f8c04
am: 6f82dff7b9

Change-Id: I420ed253bc6622e9a7bf49f3b263d54474a84fed
2017-07-15 00:52:03 +00:00
Hamsalekha S
6f82dff7b9 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9 am: ebae2ef7bd
am: d5ad4f8c04

Change-Id: I8c096a96d86379e40d02c445e95044055b124d73
2017-07-15 00:48:02 +00:00
Hamsalekha S
d5ad4f8c04 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539 am: bf8b7083e9
am: ebae2ef7bd

Change-Id: Iff57832e39c9373f3b243cfb027741c0a93d2446
2017-07-15 00:44:01 +00:00
Hamsalekha S
ebae2ef7bd Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf. am: a925a6b539
am: bf8b7083e9

Change-Id: I9dd74d6374dd4ec445a0dc5f08731ceb61d7c810
2017-07-15 00:40:02 +00:00
Hamsalekha S
bf8b7083e9 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf.
am: a925a6b539

Change-Id: I0026b1c090325b96b15a48a6049393ee7de40bc3
2017-07-15 00:35:31 +00:00
Hamsalekha S
a925a6b539 Decoder: Fixed allocation of pv_map_ref_idx_to_poc_buf.
Increased allocation to include reference list1 also by
default. In the case of error, we could get B_SLICES
even in BASE_PROFILE. The initialization in the
dec_slice_struct_t slice structure has also been
modified accordingly.

Test: run poc with and without this patch
Bug: 38496660
Change-Id: I3451d79bbcd9f0d7a80981a9897f877b7f0812bd
2017-07-13 17:49:14 +00:00
Ray Essick
707287f248 Merge "Decoder : Fix memory leak when sps changes." 2017-07-11 04:03:40 +00:00
Hamsalekha S
975fcea6e1 Merge "Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9 am: 674fb1aa06 am: e9c1f9615b" into oc-dr1-dev-plus-aosp
am: e9ece21662

Change-Id: Id9d9bea795cb5bafb3e16740668073a9a5fe8a1b
2017-07-10 19:39:06 +00:00
Hamsalekha S
0af0f090a7 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9 am: 674fb1aa06 am: 5c3b30eed6
am: 251380b598

Change-Id: I9174daf16252ca1cb374c9e0cce0ff6aedd44512
2017-07-10 19:38:57 +00:00
Android Build Merger (Role)
e9ece21662 Merge "Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9 am: 674fb1aa06 am: e9c1f9615b" into oc-dr1-dev-plus-aosp 2017-07-10 19:34:35 +00:00
Hamsalekha S
251380b598 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9 am: 674fb1aa06
am: 5c3b30eed6

Change-Id: I925c69453693c86d062c3c8f2c77e9c35ad3d05c
2017-07-10 19:34:27 +00:00
Hamsalekha S
0011201b57 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9 am: 674fb1aa06
am: e9c1f9615b

Change-Id: I84d8c983fb97f158ae553e9af4bc40e760e70117
2017-07-10 19:34:27 +00:00
Hamsalekha S
5c3b30eed6 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9
am: 674fb1aa06

Change-Id: I2f9fab973368c5879228d196181420a0329b83ef
2017-07-10 19:29:55 +00:00
Hamsalekha S
e9c1f9615b Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584 am: d00e2547c9
am: 674fb1aa06

Change-Id: If4cb117503597b38c01e50f903e5513b126ef058
2017-07-10 19:29:55 +00:00
Hamsalekha S
674fb1aa06 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446 am: 4192026584
am: d00e2547c9

Change-Id: I2939be93a829b4ede24a1285fd337109e2f388d2
2017-07-10 19:25:26 +00:00
Hamsalekha S
d00e2547c9 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710 am: 400685c446
am: 4192026584

Change-Id: I64c506ad1fba92b914a9af0f0e6283421587a439
2017-07-10 19:20:24 +00:00
Hamsalekha S
4192026584 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267 am: eaf6bed710
am: 400685c446

Change-Id: I4dff14f43e06cc66e6d752a090a19698d9d713d0
2017-07-10 19:16:24 +00:00
Hamsalekha S
400685c446 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea am: d4d96c6267
am: eaf6bed710

Change-Id: Id421efe47a9d20ad85b8fac762b0a4196b464750
2017-07-10 19:11:24 +00:00
Hamsalekha S
eaf6bed710 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373 am: 28702336ea
am: d4d96c6267

Change-Id: Ic9b4e1910349f0d110d286d0c7d013bf3f20e239
2017-07-10 19:06:53 +00:00
Hamsalekha S
d4d96c6267 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338 am: 136293c373
am: 28702336ea

Change-Id: I5e13de21cf29eb126135f98f96ac641671131c34
2017-07-10 19:02:23 +00:00
Hamsalekha S
28702336ea Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa am: a54dcc6338
am: 136293c373

Change-Id: I120522c22378a6aff782e5ef720bc9a8301cd631
2017-07-10 18:58:22 +00:00
Hamsalekha S
136293c373 Decoder: Fixed overflow in refernce list creation. am: cbcd2846fa
am: a54dcc6338

Change-Id: I7801ee5f19e1760ea5958b98ea83c541d8f02401
2017-07-10 18:54:22 +00:00
Hamsalekha S
a54dcc6338 Decoder: Fixed overflow in refernce list creation.
am: cbcd2846fa

Change-Id: Ic4d5c775bfeb8950f07145c9441130ea295bdfa5
2017-07-10 18:49:51 +00:00
Hamsalekha S
f15bb32866 Decoder : Fix memory leak when sps changes.
ih264d_allocate_dynamic_bufs is now called only once
after every ih264d_init_decoder call. This is possible
since we support only identical( all the critical
parameters will be same) sps in our sps array.

Signal resolution change when u1_frame_mbs_only_flag
in SPS changes.

Bug: 62897300
Test: compilation, boot
Change-Id: I0cf71fe9de72b5dadca2d1daf881d821786f94e3
2017-07-07 10:48:53 -07:00
Hamsalekha S
cbcd2846fa Decoder: Fixed overflow in refernce list creation.
Since the maximum value of long term index is 255,
the loop control variable needs to be 32 bit.

Bug: 38448381
Test: ran POC before/after applying fix
Change-Id: Iae3ecff38d4a922bde10fde33f1cfcafd2ea2680
2017-07-07 10:34:44 -07:00
Hamsalekha S
f89082c5ac Initialize DPB structures to valid values. am: b8d362561e am: 278ed70003 am: f178731344 am: ed0086bd3f am: aa22ca288d am: b2503ce9ad am: 2025670e41 am: 630d10abba am: 8a712339cf am: f7de034890 am: 65fb6eddb0
am: cde40451e9

Change-Id: Id36abbacefbb032ba4ce5301960b01b9d2f351a6
2017-06-27 00:43:03 +00:00
Hamsalekha S
7aec6c441c Initialize DPB structures to valid values. am: b8d362561e am: 278ed70003 am: f178731344 am: ed0086bd3f am: aa22ca288d am: b2503ce9ad am: 2025670e41 am: 630d10abba am: 8a712339cf am: f7de034890 am: 4cec5cb03a
am: 8918e0d9a8

Change-Id: Id7f51f03bfd3096252aafa2d36e04f0fd3bed834
2017-06-27 00:42:52 +00:00