codecs: check client usage flags for decoder

when client asks for read access to decoded content,
the decoder should decode into guest byte buffers.
On the other hand, when guest does not need
read access, decoder can decode to host color
buffer without reading it back into guest.

Bug: 286856907
Bug: 281550510

Change-Id: I40b588032db9e6b0f32cf95b8d35ac4c9b0cf6fb
8 files changed