Changes between Initial Version and Version 1 of wip_sf_2_omx


Ignore:
Timestamp:
02/22/17 22:15:03 (7 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wip_sf_2_omx

    v1 v1  
     1== OMX on thea (video playback) ==
     2Steps to make video playback work
     3=== patch omx_vdec_msm8974.cpp ===
     4
     5patch the file $ANDROID_ROOT/hardware/qcom/media-caf/msm8974/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp according to this commit [https://github.com/guhl/android_hardware_qcom_media/commit/753fd171ea3240cd17195fffd7dd3c6a406bf370]
     6
     7
     8enter the HADK (ubuntu) and build libOmxVdec
     9{{{
     10cd $ANDROID_ROOT
     11. build/envsetup.sh
     12breakfast $DEVICE
     13make -j4 libOmxVdec
     14}}}
     15
     16=== edit /init.rc ===
     17edit the file $ANDROID_ROOT/system/core/rootdir/init.rc and preload the libOmxVdec with service minimedia. Make it look like this:
     18{{{
     19service minimedia /usr/libexec/droid-hybris/system/bin/minimediaservice
     20    class main
     21    user media
     22    group audio camera
     23    ioprio rt 4
     24#   hack to make recorded video playback work
     25    setenv LD_PRELOAD /usr/libexec/droid-hybris/system/lib/libOmxVdec.so
     26}}}
     27
     28in HADK build hybris-hal
     29{{{
     30cd $ANDROID_ROOT
     31. build/envsetup.sh
     32breakfast $DEVICE
     33make -j4 hybris-hal
     34}}}
     35
     36=== pack the hal ===
     37in SDK
     38{{{
     39cd $ANDROID_ROOT
     40rpm/dhd/helpers/build_packages.sh -d
     41}}}
     42
     43rebuild image with mic