Rework - Thread safety of reference counter

Limit simultaneous instances per component
    -Defined MAX_CONCURRENT_INSTANCES=1 in ComponentRegistry.h.
    -This macro can be increased to allow more instances per codec
    -JPEG.Encoder library typo on component list.
    - Lookingfor the correct amount of components on the component list to avoid a NULL pointer comparation.

Originally from: https://partner.source.android.com/g/#change,1132
Also take some comments and feedbacks from reviewers
2 files changed
tree: a24cecd6a193c0c8a76376e709c3993939c48768
  1. dspbridge/
  2. libopencorehw/
  3. liboverlay/
  4. omx/
  5. Android.mk