C2SoftAomEnc: Fix P010 color format support

C2SoftAomEnc was advertising C2StreamPixelFormatInfo::output
instead of C2StreamPixelFormatInfo::input and because of this
color formats were not advertised correctly.

Also P010 support needs to be advertised only on those devices
that can support HAL_PIXEL_FORMAT_YCBCR_P010.

Bug: 267464137
Test: atest CtsMediaV2TestCases:CodecInfoTest

Change-Id: I7cae76299565e71e2c6d88e648fb02213fc32c79
diff --git a/media/codec2/components/aom/C2SoftAomEnc.h b/media/codec2/components/aom/C2SoftAomEnc.h
index 3e42855..91d9ccd 100644
--- a/media/codec2/components/aom/C2SoftAomEnc.h
+++ b/media/codec2/components/aom/C2SoftAomEnc.h
@@ -136,7 +136,7 @@
     std::shared_ptr<C2StreamColorAspectsInfo::output> getCodedColorAspects_l() const {
         return mCodedColorAspects;
     }
-    std::shared_ptr<C2StreamPixelFormatInfo::output> getPixelFormat_l() const {
+    std::shared_ptr<C2StreamPixelFormatInfo::input> getPixelFormat_l() const {
         return mPixelFormat;
     }
     uint32_t getSyncFramePeriod() const;
@@ -156,7 +156,7 @@
     std::shared_ptr<C2StreamProfileLevelInfo::output> mProfileLevel;
     std::shared_ptr<C2StreamColorAspectsInfo::input> mColorAspects;
     std::shared_ptr<C2StreamColorAspectsInfo::output> mCodedColorAspects;
-    std::shared_ptr<C2StreamPixelFormatInfo::output> mPixelFormat;
+    std::shared_ptr<C2StreamPixelFormatInfo::input> mPixelFormat;
 
 };