Loading media/codec2/sfplugin/CCodec.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -1074,6 +1074,17 @@ void CCodec::configure(const sp<AMessage> &msg) { } } else { if ((config->mDomain & Config::IS_ENCODER) || !surface) { if (vendorSdkVersion < __ANDROID_API_S__ && (format == COLOR_FormatYUV420Flexible || format == COLOR_FormatYUV420Planar || format == COLOR_FormatYUV420PackedPlanar || format == COLOR_FormatYUV420SemiPlanar || format == COLOR_FormatYUV420PackedSemiPlanar)) { // pre-S framework used to map these color formats into YV12. // Codecs from older vendor partition may be relying on // this assumption. format = HAL_PIXEL_FORMAT_YV12; } switch (format) { case COLOR_FormatYUV420Flexible: format = COLOR_FormatYUV420Planar; Loading Loading
media/codec2/sfplugin/CCodec.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -1074,6 +1074,17 @@ void CCodec::configure(const sp<AMessage> &msg) { } } else { if ((config->mDomain & Config::IS_ENCODER) || !surface) { if (vendorSdkVersion < __ANDROID_API_S__ && (format == COLOR_FormatYUV420Flexible || format == COLOR_FormatYUV420Planar || format == COLOR_FormatYUV420PackedPlanar || format == COLOR_FormatYUV420SemiPlanar || format == COLOR_FormatYUV420PackedSemiPlanar)) { // pre-S framework used to map these color formats into YV12. // Codecs from older vendor partition may be relying on // this assumption. format = HAL_PIXEL_FORMAT_YV12; } switch (format) { case COLOR_FormatYUV420Flexible: format = COLOR_FormatYUV420Planar; Loading