codecs: get decoder output mode using pool id

There are two modes of decoding:
1, decoding into bytebuffer
2, decoding into surface (host color buffer for emulator)

previous way of getting this mode is not working
anymore. now, change it to use the buffer pool id,
which is either GRAPHIC(host color buffer) or LINEAR (bytebuffer).

Bug: 232881288

Test:
atest android.media.decoder.cts.ImageReaderDecoderTest

Change-Id: Iff124e74fb95ebb4377a311d1224ef9bb944f195
3 files changed