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
diff --git a/media/codec2/sfplugin/CCodecBuffers.h b/media/codec2/sfplugin/CCodecBuffers.h
index f5d9fee..bbba6d1 100644
--- a/media/codec2/sfplugin/CCodecBuffers.h
+++ b/media/codec2/sfplugin/CCodecBuffers.h
@@ -31,7 +31,7 @@
 
 constexpr size_t kLinearBufferSize = 1048576;
 // This can fit 4K RGBA frame, and most likely client won't need more than this.
-constexpr size_t kMaxLinearBufferSize = 3840 * 2160 * 4;
+constexpr size_t kMaxLinearBufferSize = 4096 * 2304 * 4;
 
 /**
  * Base class for representation of buffers at one port.