codec2: fix graphic buffer copying in byte buffer mode

- Use crop instead of raw width/height from the view.
- Reduce memory allocation amount using the fact that we only support
  YUV420 for raw graphic buffers.
- Slightly increase max linear input buffer size.

Bug: 132042537
Test: cts-tradefed run cts -m CtsMediaBitstreamsTestCases
Change-Id: Idb79c773e51bb99ba931384abdfd68772c719c31
2 files changed