goldfish-codecs: enable multiple avc decoder instances

We cannot assume there is only one avc decoder instance,
so make it possible to have multiple decoders (currently
it is limited to 4, due to that each will need 8M address
space memory) running simultaneously.

In addition, the communication with host side will
pass along a handle that is unique to each instance to
avoid interferrences.

implementation wise, the metadata will have a new field
called slot to indicate the relative starting address
of each decoding instance.

Test: pass all the h264 related cts tests in CtsMediaTestCases

BUG: 124388359

Change-Id: I3b5947fe0967f36e82ef76a893c87127beada28e
5 files changed