History log of /external/libavc/decoder/ih264d_parse_headers.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
57cd27cc9b27ee3f4b987006025d2cd48ee50e45 31-Jan-2018 Android Build Merger (Role) <noreply-android-build-merger@google.com> Merge changes from topic "am-8231d92f-aea1-4f7d-b84c-789126fb6fa2" into oc-dev am: 3fffe3c300
am: 5759ea0b59

Change-Id: I30df7ac1808586db869dc0093f0586aa80eb348b
731580450ed31aed67d825183282b22a533b0115 18-Jan-2018 Android Build Merger (Role) <noreply-android-build-merger@google.com> [automerger] Decoder: Fixed reset values in parse sps. am: 9c32ad7126

Change-Id: Ia8766fd9f4b9a2cb5f7bb13e221d8c0f9b366d66
9c32ad7126890dfaa79fd29affaaf07de335fa3a 16-Jan-2018 Ritu Baldwa <ritu.baldwa@ittiam.com> Decoder: Fixed reset values in parse sps.

Memset to zero whenever new sps occurs.

Bug: 70897394
Test: manual
Change-Id: I5936fd55265ff8ad2b275a72b175cdb540bb7933
/external/libavc/decoder/ih264d_parse_headers.c
7e756b120bdb429f6e450c35f54a6c4e36cdc168 31-Oct-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Detect change of mbaff flag in SPS am: d524ba0310 am: c30baf4986 am: 16388ca052 am: 7a94552676 am: e6d5d77d9a am: 2e965b33b3 am: 8ffbcc3c8c am: 2b0c57b966 am: cea907a84c am: 338efffb84
am: 4eae360793

Change-Id: Icc302025dac4b4d6328abe3c8451be683250cb85
c30baf4986040daa1f9a784c3e434dad241ce281 31-Oct-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Detect change of mbaff flag in SPS
am: d524ba0310

Change-Id: I818230d7fb1763b54d4920f9000663ec72286b6d
d524ba03101c0c662c9d365d7357536b42a0265e 09-Aug-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Detect change of mbaff flag in SPS

Change in Mbaff flag needs re-initialization of NMB group
and other variables in decoder context.

Bug: 64380237
Test: ran poc on ASAN before/after
Change-Id: I0fc65e4dfc3cc2c15528ec52da1782ecec61feab
/external/libavc/decoder/ih264d_parse_headers.c
8a7f15c3d40ee9eebed26c2bc2b1e4f2fd2875cd 25-Aug-2017 Lajos Molnar <lajos@google.com> support 4K max dimension

This is required for handling 4K thumbnails that may be rotated.

Bug: 64939294
Change-Id: Ia33d8e1ce7fb07b5ec6bf604d30cd8f75c3228ae
/external/libavc/decoder/ih264d_parse_headers.c
f15bb32866ccd413090594aa364b54d259099534 22-Jun-2017 Hamsalekha S <hamsalekha.s@ittiam.com> 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
/external/libavc/decoder/ih264d_parse_headers.c
5ecccccbd759bce13a6b54bc2600902e18e0a5d1 07-Jun-2017 Ray Essick <essick@google.com> Merge "Fixed hang in the case of multiple sps id." into mnc-dev
am: 16b019a620

Change-Id: Id1c0b6150c192718b69db226a373532f723843a7
16b019a620c35d6bb94fa4302545c64052392376 07-Jun-2017 Ray Essick <essick@google.com> Merge "Fixed hang in the case of multiple sps id." into mnc-dev
a0cec244297232b501da84563ca896133aec9954 07-Jun-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Cleaned up parse sps function.
am: 4eb72f7c93

Change-Id: I7dd751c7a00e07e7930338e4c87366638b260697
ec3f58500066edee259942057e21489621fca9dd 23-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Fixed hang in the case of multiple sps id.

The sps parameters used to detect change in
resolution/sps were incorrect. Made a fix to
use current sps from decoder context.

Bug: 38239864

Change-Id: I2d110e635ced32b3dc7f364e08a97d672fcbae37
(cherry picked from commit 8c6fe35f6d28f3e8c3a9f9458eea89eba858bded)
/external/libavc/decoder/ih264d_parse_headers.c
4eb72f7c935595817026b4cf4aed5ef2ff579ab5 21-Apr-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Cleaned up parse sps function.

Postponed the initializations to decoder context
till the end of the parse sps function, after
all the error checks are done.

Bug: 37968755
Test: ran poc on ASAN-enabled build before/after
Change-Id: Ibee3383c28cede3edb68d2459565d6ce10683bbd
/external/libavc/decoder/ih264d_parse_headers.c
a7b1d1c722572cd1adb4a950aef73fd5c0bb996b 06-Jun-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Merge "Fix resolution change within a decode call." into mnc-dev am: 7fc42b801c am: 252ca18add am: 4c6288e861 am: 90fc697c82 am: 8b3d043280 am: d603f906d2 am: e1b496babb am: 85b8159cf0
am: 6edcc25a5a

Change-Id: I72143bf248487f085dbf816f9b2795c837dbb575
252ca18add9f47802329c801edb42a8ba051d6b0 06-Jun-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Merge "Fix resolution change within a decode call." into mnc-dev
am: 7fc42b801c

Change-Id: Ib6f3680beb6e5d837f2140eed3107a23491f99f6
fe18375850fe04b8c4ff2f1b20069e161f718e53 22-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Fix resolution change within a decode call.

If resolution changes within a decode call,due to multiple
sps, the decoder hangs as the the application will
give the same data again in the next decode call. This
results in a hang. Fixed this by flaging an error,
when sps/resoultion changes within a process call.

Bug: 38487564
Test: ran POC on patched O-based system w/o hanging
Change-Id: I30095b2e8bf573c1a58a316a23b1a5e6a4af589b
/external/libavc/decoder/ih264d_parse_headers.c
8c6fe35f6d28f3e8c3a9f9458eea89eba858bded 23-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Fixed hang in the case of multiple sps id.

The sps parameters used to detect change in
resolution/sps were incorrect. Made a fix to
use current sps from decoder context.

Bug: 38239864

Change-Id: I2d110e635ced32b3dc7f364e08a97d672fcbae37
/external/libavc/decoder/ih264d_parse_headers.c
b521d67114293f288672eb94c7ac6d5da4c7d3af 21-Apr-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Cleaned up parse sps function.

Postponed the initializations to decoder context
till the end of the parse sps function, after
all the error checks are done.

Bug: 37968755
Test: ran poc on ASAN-enabled build before/after
Change-Id: Ibee3383c28cede3edb68d2459565d6ce10683bbd
/external/libavc/decoder/ih264d_parse_headers.c
b0399be9987a5e883e16e7836ee2af29af689d6e 15-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE Fixed bug during resolution change" into mnc-dev
6b8184944b0a361fdc4b34f017e0ed47b7ac8a32 11-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> DO NOT MERGE Fixed bug during resolution change

Modifies how i4_header_decoded is decoder context is used, to ensure
that resolution change is detected even if PPS has not been decoded.

This retrofits parts of the below mentioned 'merged-in' commits
which solve this for mnc-dr and later versions of the library. The retrofit
required dropping portions that affected code introduced in a later baseline.

Bug: 35583675
Test: provided input file no longer hangs
Change-Id: I8fa30543759c5762b18e2380513e2ce616c858ef
Merged-In: I0d248212aaf6635f34a70ad36657416a0c623d32
Merged-In: Ifd21ebe1827d6d0c13018983c46c4301c2bb1669
/external/libavc/decoder/ih264d_parse_headers.c
0f6a1883e8fa015aebb3dae94b07547d73abbd71 12-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Added an error check while parsing PPS.
am: 62f98981ff

Change-Id: I2976869f34cf2a20078c3fe4504db9e6c5a3035d
62f98981ffc29082dd4bbf173a043a5bcbb86652 10-May-2017 Hamsalekha S <hamsalekha.s@ittiam.com> Decoder: Added an error check while parsing PPS.

Added an error check while parsing PPS syntax element
second_chroma_qp_index_offset.

Bug: 37207120

Change-Id: Icba6b7bcf5940505717ee61134ed801c221b6e26
/external/libavc/decoder/ih264d_parse_headers.c
8454dbfccd4b558e880596f313d269a9083da86b 21-Feb-2017 Hamsalekha S <hamsalekha.s@ittiam.com> DO NOT MERGE Fixed bug in the case of resolution change.

Modified the way i4_header_decoded in decoder context
is used, to ensure that resolution change is detected
even if PPS has not been decoded.

Cherry pick of Change-Id: Ibb3f8dfbeb66a999fd81720a7d2a02dd951a55c4
which went into master post-N.

Bug: 35583675
Test: ran POC, no longer hangs
Change-Id: Ifd21ebe1827d6d0c13018983c46c4301c2bb1669
/external/libavc/decoder/ih264d_parse_headers.c
142221a3f993adca0c7db7f4b65d76cd9fd72a38 12-Apr-2016 Wonsik Kim <wonsik@google.com> DO NOT MERGE Handle level/profile/num_ref_frames/num_reorder change at the same resolution

Cherry pick of Change-Id: Ifa78c3125ab207ce5e39166f4891cba0d3a4e39c
which went into master (post-n). This needed backporting to M so that
the final fix for 35583675 could be integrated.

Bug: 35583675
Test: ran POC without failure
Change-Id: I0d248212aaf6635f34a70ad36657416a0c623d32
/external/libavc/decoder/ih264d_parse_headers.c
37345554fea84afd446d6d8fbb87feea5a0dde3f 14-Feb-2017 Marco Nelissen <marcone@google.com> resolve merge conflicts of 3654ad0 to mnc-dr-dev

Bug: 33818508
Bug: 34013472
Change-Id: I2e99cbceba1c00555d624e8975522725e362362b
3654ad0da5578f78fcf80958589f6995fe284d61 14-Feb-2017 Marco Nelissen <marcone@google.com> Merge changes Iec2941f1,I38be0e4c into mnc-dev

* changes:
Decoder: Add supported width check for MBaff streams
Decoder: Added a check for unsupported resolutions
16fa990ce15cae5dcf3fac059cd18264f50881b2 14-Feb-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fixed initialization of first_slice_in_pic
am: 0b23c81c3d

Change-Id: I55e49ca9616a151456342bad7673d0986098b448
0b23c81c3dd9ec38f7e6806a3955fed1925541a0 16-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fixed initialization of first_slice_in_pic

To handle some errors, first_slice_in_pic was being set to 2.
This is now cleaned up and first_slice_in_pic is set to 1 only once per pic.
This will ensure picture level initializations are done only once even in case
of error clips

Bug: 33717589
Bug: 33551775
Bug: 33716442
Bug: 33677995

Change-Id: If341436b3cbaa724017eedddd88c2e6fac36d8ba
/external/libavc/decoder/ih264d_parse_headers.c
69b5191865a9395947dfc70c00bf8824eb33b8c1 17-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Add supported width check for MBaff streams

In case of MBAff streams, decoder processes two rows at a time,
this limits maximum supported width to 1920 for MBAff streams.

Bug: 33818508
Bug: 34013472
Change-Id: Iec2941f116cf3c36b63013a930319960023a3b42
/external/libavc/decoder/ih264d_parse_headers.c
9d60a0c5da96c4bbbad11266f4d88133284836b4 06-Oct-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Added a check for unsupported resolutions

Decoder now returns an error for resolutions greater than 3840x2176

Bug: 24542936

Change-Id: I38be0e4c5cf2a980bfd4c781f3b49171f73b5ccb
/external/libavc/decoder/ih264d_parse_headers.c
3e2978659034c2bcfb0c39bd2af3e56d60546e1e 06-Jan-2017 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fix in returning incomplete frame error
am: d1896deaf1

Change-Id: I81b68c6f7b30c3ba048967cd64426b204b8ee895
d1896deaf15ad8c6d148702899426b64601a3358 19-Dec-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> 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
/external/libavc/decoder/ih264d_parse_headers.c
637cb7f43492b01da530028fd4fb42dd001b12af 08-Dec-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fix in checking for valid profile flags
am: d7eee555dc

Change-Id: I73b07d5ce0b248387d5f4b492caf63f02d372881
d7eee555dc124a4ab7977f073c6b4a76c346f760 05-Dec-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> 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
/external/libavc/decoder/ih264d_parse_headers.c
d75185f90ea95515aaa56c79e2d879fc8de253a0 10-Jun-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Merge \"Decoder: Fix slice number increment for error clips\" into mnc-dev
am: 2e88a2aa67

Change-Id: I791c029e3b39202db3f49f13fbb511904b5e8fef
5e4f64c0748095266e48f7f6663d9ce59738ad83 01-Jun-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Fix slice number increment for error clips

Bug: 28673410
/external/libavc/decoder/ih264d_parse_headers.c
66be90d7a0ec3c84a9ea30058c4878e2a8d7e48a 09-Oct-2015 Marco Nelissen <marcone@google.com> Reconcile branch with master after mass cherrypicks

Change-Id: Ib017480389cb9f5204e5437716653016da348dba
/external/libavc/decoder/ih264d_parse_headers.c
5351d3a403c132d2dff1288d0794f6c15d695849 06-Oct-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Added a check for unsupported resolutions

Decoder now returns an error for resolutions greater than 3840x2176

Bug: 24542936

Change-Id: I38be0e4c5cf2a980bfd4c781f3b49171f73b5ccb
/external/libavc/decoder/ih264d_parse_headers.c
9d04b13b620d16e67163d45e5c8fb261383d80b7 22-May-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Moved check for level after check for resolution change.

This is required for DRC tests in CTS .

Change-Id: Icd0fe10d97c6ee55f8358682a578bddb58590de4
/external/libavc/decoder/ih264d_parse_headers.c
251b007eccf5a0ddac897ce27de88d3901bc5d00 04-Aug-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Decoder: Reduced memory requirements

Memory allocations are now done based on contents of SPS
API changed to move allocations inside the library

Also changed strlen to strnlen

Bug: 24221026

Change-Id: I9130457f564cddb4da7ec6399cc9fe88ee871217
/external/libavc/decoder/ih264d_parse_headers.c
2ee0c1bced131ffb06d1b430b08a202cd3a52005 18-Sep-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Return error in SPS/PPS parsing when extra bytes are read from input

Bug: 24157524

Change-Id: I4b319ef8e23e1ba5f84f52b92f40ba7fb1429101
/external/libavc/decoder/ih264d_parse_headers.c
8a50328131307b53ebde95e9af87a408c4011559 28-Jul-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Support for level greater than level at init in Decoder

Added support to check num_ref_frames in SPS
and num_reorder_frames in VUI before returning error for level

Bug: 22860270

Change-Id: I392bab419385ca239836d200f9f2b064915a8a46
/external/libavc/decoder/ih264d_parse_headers.c
9f0dcba9b4f792aedf37b6ecdceae46d36b93068 09-Jun-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Improved error resilience in decoder

Fixed buffer management for error cases
Fixed end of picture detection logic for multiple slice error cases
Fixed handling of incomplete frame, missing slices.

Change-Id: Iae447667e4d88869a8bf992180cacd77870b9877
/external/libavc/decoder/ih264d_parse_headers.c
c080d5799655658eb847b0583f58e5aff3a5cbaa 22-May-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Moved check for level after check for resolution change.

This is required for DRC tests in CTS .

Change-Id: Icd0fe10d97c6ee55f8358682a578bddb58590de4
/external/libavc/decoder/ih264d_parse_headers.c
8ef4c3f6142028732a155cbfc1febd6ef5da72fd 03-Jun-2015 Marco Nelissen <marcone@google.com> Multithreading changes and better error resilience

Fixed the following bugs
Issue 21145276
Issue 21144884
Issue 21181133
Issue 21181134

Decoder now returns error if the level in stream is higher than level at init

Change-Id: I8892c62bd98f7854d046510330c05a1e9ca826b2
/external/libavc/decoder/ih264d_parse_headers.c
a2b49e5f0574dee76f81507f288143d83a4b7c1a 18-Apr-2015 Lajos Molnar <lajos@google.com> fix file permissions

Change-Id: Ia4f99d5b963acd8d8a1afc2fbdf06b122d898f63
/external/libavc/decoder/ih264d_parse_headers.c
3a52efd36102c9a4cb8e8f23b6f9131b8b01eef5 28-Apr-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> Fixed few issues seen in CTS tests

Added support for encoding non-multiple of 16 dimensions
Added support for encoding dimensions smaller than 64x64
Aligned coeff data to 4 byte boundary

Bug: 20554276
Change-Id: I111093950f94698296d8499a2845cfe2db6c557b
/external/libavc/decoder/ih264d_parse_headers.c
8d3d303c7942ced6a987a52db8977d768dc3605f 13-Mar-2015 Hamsalekha S <hamsalekha.s@ittiam.com> Initial version

Change-Id: I7efe9a589cd24edf86e8d086b40c27cbbf8b4017
/external/libavc/decoder/ih264d_parse_headers.c