Hi, Le jeudi 24 septembre 2015 à 15:29 +0200, Wolfgang Wiedmeyer a écrit : > Sorry, my last attached patch also enabled gralloc. Correct one > attached.
Last time I checked, enabling hardware-accelerated video decoding (with the firmwares) required the non-free gralloc and EGL libraries and it also broke software-only decoding. Did the situation change? I have nothing against supporting hardware-accelerated video decoding when the firmwares are in place, but it must not impact users that don't install the proprietary firmwares negatively. Sorry for taking so long to respond. > Signed-off-by: Wolfgang Wiedmeyer <[email protected]> > --- > BoardCommonConfig.mk | 9 +++++++++ > common.mk | 17 +++++++++++++++++ > configs/media_codecs.xml | 10 ++++++++++ > 3 files changed, 36 insertions(+) > > diff --git a/BoardCommonConfig.mk b/BoardCommonConfig.mk > index b4ae1bf..e0f6852 100644 > --- a/BoardCommonConfig.mk > +++ b/BoardCommonConfig.mk > @@ -90,6 +90,15 @@ BOARD_CAMERA_HAVE_ISO := true > COMMON_GLOBAL_CFLAGS += -DHAVE_ISO > COMMON_GLOBAL_CFLAGS += -DSAMSUNG_CAMERA_HARDWARE > > +# OMX > +BOARD_USE_SAMSUNG_COLORFORMAT := true > +BOARD_NONBLOCK_MODE_PROCESS := true > +BOARD_USE_STOREMETADATA := true > +BOARD_USE_METADATABUFFERTYPE := true > +BOARD_USES_MFC_FPS := true > +BOARD_USE_S3D_SUPPORT := true > +BOARD_USE_CSC_FIMC := false > + > # RIL > BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0" > > diff --git a/common.mk b/common.mk > index 18b0715..4964764 100644 > --- a/common.mk > +++ b/common.mk > @@ -81,6 +81,23 @@ PRODUCT_PACKAGES += \ > charger \ > charger_res_images > > +# MFC API > +PRODUCT_PACKAGES += \ > + libsecmfcdecapi \ > + libsecmfcencapi > + > +# OMX > +PRODUCT_PACKAGES += \ > + libstagefrighthw \ > + libSEC_OMX_Resourcemanager \ > + libSEC_OMX_Core \ > + libOMX.SEC.AVC.Decoder \ > + libOMX.SEC.M4V.Decoder \ > + libOMX.SEC.WMV.Decoder \ > + libOMX.SEC.AVC.Encoder \ > + libOMX.SEC.M4V.Encoder > +# libOMX.SEC.VP8.Decoder > + > PRODUCT_COPY_FILES += \ > $(COMMON_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \ > $(COMMON_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml > diff --git a/configs/media_codecs.xml b/configs/media_codecs.xml > index e4298a8..c8719db 100644 > --- a/configs/media_codecs.xml > +++ b/configs/media_codecs.xml > @@ -77,6 +77,12 @@ Only the three quirks included above are recognized at > this point: > > <MediaCodecs> > <Decoders> > + <MediaCodec name="OMX.SEC.AVC.Decoder" type="video/avc" /> > + <MediaCodec name="OMX.SEC.MPEG4.Decoder" type="video/mp4v-es" /> > + <MediaCodec name="OMX.SEC.H263.Decoder" type="video/3gpp" /> > + <MediaCodec name="OMX.SEC.AVC.Decoder" type="video/avc" /> > + <MediaCodec name="OMX.SEC.VP8.Decoder" type="video/x-vnd.on2.vp8" /> > + > <MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg" /> > <MediaCodec name="OMX.google.amrnb.decoder" type="audio/3gpp" /> > <MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb" /> > @@ -91,6 +97,10 @@ Only the three quirks included above are recognized at > this point: > </Decoders> > > <Encoders> > + <MediaCodec name="OMX.SEC.MPEG4.Encoder" type="video/mp4v-es" /> > + <MediaCodec name="OMX.SEC.H263.Encoder" type="video/3gpp" /> > + <MediaCodec name="OMX.SEC.AVC.Encoder" type="video/avc" /> > + > <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp" /> > <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb" /> > <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm" /> -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom and privacy/security. Website: https://www.replicant.us/ Blog: https://blog.replicant.us/ Wiki/tracker/forums: https://redmine.replicant.us/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Replicant mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/replicant
