History log of /hardware/intel/img/psb_video/src/android/psb_output_android.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cecb10be5449aa74cd1d9a2eb41c2a6a76d9ee79 22-Jul-2014 ywan171 <yi.a.wang@intel.com> remove warning in psb video

BZ: 209178

remove warning in psb video
Signed-off-by: ywan171 <yi.a.wang@intel.com>

Change-Id: Ie1a05b5a92fa6666420f8fd7138bc9df0f6d5d42
Signed-off-by: root <root@feijiang-desktop.(none)>
Reviewed-on: https://android.intel.com/220814
Tested-by: Fourdan, Olivier <olivier.fourdan@intel.com>
Reviewed-by: Fourdan, Olivier <olivier.fourdan@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
850b6d4c015a2f7cd6442199ebee740c1ee0b22f 10-Nov-2013 Zhu,Tianyang <tianyang.zhu@intel.com> Enable "IMultiDisplayListener::onMdsMessage" for video driver

BZ:150907

1: Video driver need to get some MDS infos to do futher handling.
Currently, video driver uses polliing method through interfafe
"getDisplayMode", its efficientcy is low.
Now we Use "IMultiDisplayListener::onMdsMessage" to replace it,
it means MDS will inform video driver actively once mode is change.
2: Refine vpp interface

Change-Id: I3ec0e118d8d7f985cfb00305cd6fbedc1cd35bb7
Signed-off-by: Zhu,Tianyang <tianyang.zhu@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
b4483fbe2ebcb2be0217dea87d826cf24b549b1d 04-Sep-2013 Zhu,Tianyang <tianyang.zhu@intel.com> Add the namespace "android::intel" for MDS module

BZ:135276

Align to the patch 128728
1: add the namespace "android::intel"
2: Correct some interfaces name
3: Use macro "USE_MDS_LEGACY" to distinguish old or new MDS, and this
macro will be removed if new HWC from VPG is ready
4: this solution uses polling method to get mds mode, it is not efficient,
and a better solution will be submitted to replace it;

Change-Id: Ie5b11ccdf2e204f941bf138fb4faa8db5de97b34
Signed-off-by: Zhu,Tianyang <tianyang.zhu@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
4d06c1febaa800c6a9efb9908a2c6233472c7464 31-Aug-2013 Li Zeng <li.zeng@intel.com> VED: Enable VED buffer scaling

BZ: 134818

Enable VED buffer scaling

Change-Id: I084e15a29f3019f1b2c5f43ab20f798829229bd1
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
b7c527a64448cfeedb2fe114b673af667f92faf2 03-Apr-2013 hding3 <haitao.ding@intel.com> psb-video: enable vp8 decoding for Baytrail platform

BZ: 96355

Only vxd decoding is enabled for BYT platform.
Need use BAYTRIAL macro to disable compiling encode/vpp code.
On baytrail, currently NV12 linear format is not supported.
Need do CSC to convert NV12 to YV12.

Change-Id: I8b59b2bbbdf90f9612bc77db4ad63d7ae347f720
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/99805
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
8bc6a6aa815a18f936036b5a47106b47aa904b1b 12-Dec-2012 hding3 <haitao.ding@intel.com> [PORT FROM MAIN][psb-video] Fix klocwork issue on mainline

BZ: 72765 70530

Fix klocwork issues lik potential NULL pointer dereference, not relase mutex resource and
not used variables.

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>

Change-Id: I4dd65a457c8160612a5a38021a75b9d34c0f092c
Reviewed-on: http://android.intel.com:8080/82316
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
6d37ae34fcae80f2e898b61e2506ed8e887bd16a 17-Oct-2012 nguo <nana.n.guo@intel.com> psb-video: refine video driver code for error check

BZ: 62498

define macro to make readable

Change-Id: I7b18e8f48db1565bf23595a303c85c18f26ec85b
Signed-off-by: nguo <nana.n.guo@intel.com>
Reviewed-on: http://android.intel.com:8080/70537
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
ff410d8d5d8aeb6515dde481d0cfbc4b031a03fc 11-Oct-2012 hding3 <haitao.ding@intel.com> psb-video: remove HDMIExtMode and comment out I830SwitchPipe related code

BZ: 59207

remove HDMIExtMode and comment out I830SwitchPipe related code

Change-Id: I773f0ccc6a12748e9824151150dd9c4712f18f4f
Signed-off-by: nguo <nana.n.guo@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/69758
Reviewed-by: Hu, Jason <jason.hu@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
f135e75f6e385876c8007688802e7b38f10a2b7e 11-Oct-2012 hding3 <haitao.ding@intel.com> psb-video: remove and comment out IS_MRST related code.

BZ: 59207

remove IS_MRST related code

Change-Id: I3476185d53e3b7bdc9cae47f5c8c23f6c06b082a
Signed-off-by: nguo <nana.n.guo@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/69757
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
06c7c30796be2e6b18a6263956a0ca308616ecde 11-Sep-2012 Li Zeng <li.zeng@intel.com> ved: psbvideo msvdx code refine

BZ: 56431

Add new ved fw, remove unused ved fw, remove msvdx dead code, add VP fw
Refactor decode part

Change-Id: Ic03f1659a056cba91c2ccd3b0f96401d60872e3d
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/65458
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
fb55637b58442a42471e3493505cacfbee6dd77b 24-Aug-2012 Jason Hu <jason.hu@intel.com> fix build issue with multidisplay service disabled.

BZ: 53921

Change-Id: I3faab9c048dbcd891b9df17acc7f96b75e55afd8
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/63423
Reviewed-by: Xie, Lin <lin.xie@intel.com>
Reviewed-by: Wang, Lili A <lili.a.wang@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Zhu, Tianyang <tianyang.zhu@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
29781ffb2cbf9fb72df9fc538c537690c3dd7cab 08-Aug-2012 Guoliang Ji <guoliang.ji@intel.com> delete the unused variable and address some memory leak issue

BZ: 51416

delete the unused variable and address some memory leak issue
Signed-off-by: Guoliang Ji <guoliang.ji@intel.com>

Change-Id: Id2240e5a027977ed74ffb172c51a07cf0ee971cc
Signed-off-by: Guoliang Ji <guoliang.ji@intel.com>
Reviewed-on: http://android.intel.com:8080/61670
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
9516ea03c6311f5aa253038310950fc534df28e6 24-Jul-2012 Fei Jiang <fei.jiang@intel.com> psb-video: remove bcd/texture streaming related code

BZ: 48457

BCD driver is unused since Android ICS.

Change-Id: I862fc75630d47662a974e17c7bff7492fe9d6bf7
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/60895
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
98a9f0f7d9fd6f992c9be6750c941ce8723159ad 06-Jul-2012 ttao1 <tao.q.tao@intel.com> widi: add support for video that has rotation info for widi

BZ: 45538

Add support for video that has rotation info for widi. Because of
video encoder enhancement, buffer list is not required for encoder
setup. The khandle list is also removed from psb_surface_share_info_s

Change-Id: I7578be476df7e9eb5a6b85657d55a0e215ee7246
Orig-Change-Id: I0c83d4cb339c21be5980adafa17ca33e24e01809
Signed-off-by: ttao1 <tao.q.tao@intel.com>
Signed-off-by: Rajneesh Chowdhury <rajneesh.chowdhury@intel.com>
Reviewed-on: http://android.intel.com:8080/59669
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Tested-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
d03b75a0bb7d76d8d05509f5b581ab3b5d36a20d 13-Jul-2012 Xiaolin Zhang <xiaolin.zhang@intel.com> fixed the JB compileration error.

BZ: 47236

fixed the JB compileration error by changing some header files path.

Change-Id: I924f7fd4d794ee6dff5ba09d894f3cdc5759d3df
Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/56587
Reviewed-by: Beare, Bruce J <bruce.j.beare@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
9769d6a0972207564efb82e397f19ec002841f65 08-Jun-2012 Li Zeng <li.zeng@intel.com> video: support ved error concealment

BZ: 42768 42035

Initially support ved concealment when decode error h264 stream
In psb_PutSurface, restrict srcw to 2047
Change prefix "pnw" to "tng" for VP8 drier
Clear up non DE3 code for jpeg dec

#this is the MFLD part of original MRFLD patch 53380.

Change-Id: Idbe04ed9c6f767248965d010e72027eef55777c1
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/53380
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
f31d5416a60f83e184b0906a7ec77ba021840531 11-Jun-2012 hding3 <haitao.ding@intel.com> porting MRFL branch to ICS mainline

BZ: 35390

porting MRFL branch to ICS mainline.update version r7.
#this is the MFLD part of original MRFLD patch 52337.

Change-Id: I77b60e88fdda5ad8166a6578fac99b4523c5a29c
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/52337
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
c60d5b7bdb5616ca37e0b912c10725bec4320f33 13-May-2012 Fei Jiang <fei.jiang@intel.com> psb-video: refine video driver debug/trace function

BZ: 36116

Previous video driver debug/trace function is a bit of mess, not easy to use.
Divide the debug/trace to different levels and remove some redundant code. With this commit, the example psbvideo.conf would be like:
PSB_VIDEO_TRACE=/data/log
PSB_VIDEO_TRACE_LEVEL=1
PSB_VIDEO_TRACE_OPTION=16
Details of level and option can be seen from the psb_drv_debug.h.

Change-Id: Icd2789522deca6e7b2469547d10a11b815636e8f
Reviewed-on: http://android.intel.com:8080/48610
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
3ec8b9246e4ac0f5d61b3f884bdc34775d72cd68 01-Apr-2012 Jason Hu <jason.hu@intel.com> Adviod creating mdc client in video driver initialization process when
it is not needed.

BZ: 30042

Initialize mdc client when it is used at first time.

Change-Id: I3b1cf881e30b17a48f85c798d4d495ee4032bba6
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/42010
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Zhu, Tianyang <tianyang.zhu@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
cfc668eacb1652c56048e5d656f664216ad54132 29-Mar-2012 Jason Hu <jason.hu@intel.com> Refine mds client and remove global variable.

BZ: 28225

Change-Id: I674a59c7f26ac9895670c4eb46dd9bb6f461d22d
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/41613
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Zhu, Tianyang <tianyang.zhu@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
476f382b52ba06226b1ce473b56c388e6718e5e2 21-Mar-2012 Jason Hu <jason.hu@intel.com> Revert "Revert "handle correct rotation display for extended video mode""

BZ: 22802

This reverts commit b32eb5176b5d6f9ff190271d9b8166c35d976bb5.

Change-Id: I5b947c2a332f0447f3e5bea7eeaef18f534cd1c1
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/39888
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
d3db4564737d5b54b21a7e603cca1a3307c1dcca 20-Mar-2012 Olivier Monnier <olivierx.monnier@intel.com> Revert "handle correct rotation display for extended video mode"

BZ: 22802

Regression during cat0 testing:
Video playback shows corruption in landscape mode for recording video of portrait mode

This reverts commit b699ed82836d68ffc930827b7b7b35372ac4407e.

Change-Id: Ia95625cd20eec5eb7a33f5d599fa3af31194d0a2
Signed-off-by: Olivier Monnier <olivierx.monnier@intel.com>
Reviewed-on: http://android.intel.com:8080/39755
/hardware/intel/img/psb_video/src/android/psb_output_android.c
105e633fc049869fb3d28e2587626d710b09d409 12-Mar-2012 hding3 <haitao.ding@intel.com> handle correct rotation display for extended video mode

BZ: 22802

For local video mode, we get the correct display degree according
to layer's transform. Layer's transform equal surfaceflinger's
transform adds to clip's meta data rotate info. However, For
extend video mode, we need to ignore surfaceflinger's transform
and only care clip's meta data rotate degree.

Change-Id: I03bc140bd6cc3a178e1fc0027ae537423e0ae848
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/38297
Reviewed-by: Hu, Jason <jason.hu@intel.com>
Reviewed-by: Zhu, Tianyang <tianyang.zhu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
751400dde1eac64dd41c7de33fcddf8a939e4ab2 20-Jan-2012 hding3 <haitao.ding@intel.com> psb_video: porting patches from R2 to R3 for psb_video

BZ: 20870,19404,15626

Patch porting from R2 to R3 for psb_video

Change-Id: I152c61118e9945181f0f70a85d87528a04b432c2
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/32630
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
fa6f2e9012a890942a47eae9f6f1a0ddcd97e9a4 18-Dec-2011 Fei Jiang <fei.jiang@intel.com> video: enable ICS graphic buffer decoding and rendering.

BZ: 18370

This patch enabled to use external buffer for video decoding, will wrap a gralloc buffer to TTM buffer.

Change-Id: I06c5746c22b94c46fb0e7194c554c9d798743ff5
Reviewed-on: http://android.intel.com:8080/28068
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
5e116884381ae450b82c3d7e6c6372214e03ae29 22-Nov-2011 Shuo Liu <shuo.liu@intel.com> expose psb_GetBufferID to obtain bcd device id and buffer id

Change-Id: I6d181a35e80a0ff811eb122dcd9254329e16bf83
Signed-off-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/24916
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
35405e1aaaefd5bb307ba7f7161e138a86880020 07-Nov-2011 Kun Wang <kun.k.wang@intel.com> Video: ww46.1 Porting local psb-video to MFLD Android R2

BZ: 13659, 5822

BZ13659. Whether to recalculate final rotation depend on both va rotation
from app and window manager rotation. So set rotation dirty flag when app set
va rotation, and delay to recalculate final rotation until we know WM rotation.

BZ5822. Bypass overlay color correction and suppose to be replaced by pipe color correction in future.

surface_extinfo: Remove the extra memset
psb_surface.h: define SET/GET_SURFACE_INFO_rotate/protect in a common place
protected decode: the rotated surface should derive the protected flag from the main surface

Change-Id: I64a838a70e627aee3aa4298eb1e861e6221e093b
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/23375
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
3f3d1e8746d2b793c982ac19a73061e006b1b178 24-Oct-2011 Kun Wang <kun.k.wang@intel.com> Video: ww44. Refine the codes and fix bug 12552

BZ: 12552

Remove trailing space, and codying style refine

Change-Id: Ie30298ce78b12dd668d5a9e46d59b79278b43003
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/22262
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
e9f11f100c212e9aeb194337ae43bbfea6a130db 18-Oct-2011 Kun Wang <kun.k.wang@intel.com> Video: ww43.2 disable local rendering when widi in extvideo mode

BZ: 11225, 11226

widi support: disable local rendering when widi in extvideo mode
Fix most of the compiler warnings
Remove bcd_ttm_handles which is not used now
Correct the chroma_offset calcualtion in pnw_hostcodec
modify the chroma offset in the func pnw_RenderPictureParameter() to make grabencode work correctly on grabencoding 720P clip

Change-Id: If76829fed5169efe080bf4043c4cac855a3f75dc
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/21909
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
c3077df94073dd4c035f86e5f1428e4611a0cf73 08-Oct-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1] Video: ww40.2 porting local psb-video to MFLD Android

BZ: 10634

BZ10634: No sync mechanism to hold surface buffer b/w msvdx and display(overlay), so disable dynamic surface destroy/create for avoi
ding buffer corruption.
vaLockSurface: set the buffer kernel handle of a VA surface into buffer_name
vaCreateSurfaceFromUserPtr: set the SHARE flag, so that the surface created can be accessed by other process.
Update cur_displaying_surface and last_displaying_surface in psb_putsurface_ts
Clean up the license headers
psb_kbuf_reference: must set the placement, or else run into a buffer "Move" in kernel

Change-Id: Ie7a9deef2a52e892822b6c2cb460dfb89f251277
Orig-Change-Id: If0bfe2d31da21b86a244c8d6e3abc8f7eb6c240e
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/20860
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
6e19dd0fd3388e704d0ee5d180bcb9c356aacc44 08-Oct-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1] Video: ww40.5 Porting local psbvideo to MFLD Android

BZ: 11126, 11008, 11086, 11496

Delay overlay init to the first render and add more error handling when create overlay cmd buffer.

Origianlly when create decode surfaces, the surface is registered into BCD
But the surface may not be used for rendering. This patch delay surface
BCD register later, so that only when rendering, the surface is registered into BCD

Change-Id: Id2250e9096a6e64aca322c0c85d496efc4998d94
Orig-Change-Id: Ie4dc9bea3797bc06cfed54816fb0f9afaa9f8863
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/20863
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
b6b9c482c9c72f4e2bc90260813cc00b454e011d 20-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][Video] ww38.5 -- Porting the 8998,9421 and 9915 patches.

BZ: 8998, 9421, 9915

BZ8998: remove check ref surface of P frame in MPEG4
BZ9421: If one thread never create texture stream source, it should not destroy texture stream source either.
BZ9915: Youtube video is not full screen play on HDMI device sometimes.

Change-Id: I4430eabdbc130fcdb82cf996c5bf391e21f4616a
Orig-Change-Id: Icf67b3a15c9778432b1683f1bcb9964c1a32fd3d
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/19058
Reviewed-by: Sang, Shuduo <shuduo.sang@intel.com>
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
0a86723905982451dd72a9cad792b8cb8e8528ae 14-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][psb_video] Video: ww38.1 Porting the local psb-video

BZ: 9432

Discard the rotation frame if rotation surface not ready for overlay under HDMI video mode.

Change-Id: Ie19eee0fefd42e73ad71e842658ef2fc0dcef4d5
Orig-Change-Id: I497c2847f4af390354bf241ccf71581f6c6b6699
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/18493
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: Monnier, OlivierX <olivierx.monnier@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
dd4b7893a4762e97aab7d10fbe32c16da494cbdd 13-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][psb_video] Video: Merge the local psb-video into MFLD Android-- ww36.4

BZ: 8531, 8602, 8795

BZ8531: Switch from extend mode to local mode, we need recalculate the rotation.
BZ8602: Optimize hdmi status query mechanism to save about 2ms time consumption.
BZ8795: Video should be rendered as lock aspect ratio under HDMI extend video mode.
Changed max unused buffer count to 5.

Change-Id: I6915f2c9c57071f1b88d4cc4786234c86037c200
Orig-Change-Id: I9df7eae5f5d08a78e4e4e2f17c59acb140423453
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/18334
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: Monnier, OlivierX <olivierx.monnier@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
09998e330bbcbf835798128768e590772f5a5737 13-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][psb_video] Video: Porting the local psb-video to MFLD Android

BZ: 7590, 8250, 8294, 8311

BZ7590: 1080P video performance is low when bitrate > 40M bps in landscape mode
BZ8250,8294 and 8311: Tune the overlay idle frame to make render switch more smoothly.

Change-Id: I94e146fa669edf333d70bf3a305167a73b76e2d4
Orig-Change-Id: I97dd9b0921b83e8a3bc4193503921dbb6d230993
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/18332
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: Monnier, OlivierX <olivierx.monnier@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
2d4ed17a7b4c8d106f4d894f84576a7ab7501d91 13-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][psbvideo] fix the encode crashed problem, fix the error ratation and the UI button disappear problem and fix the screen black problem

BZ:8026,7905,7920,7594

set bitrate to a reasonable value if it's set to zero.
reset texture source status in the initialization.

Change-Id: I94ee7dbecd40252a330f2cf558777c8a4179a896
Orig-Change-Id: Ic8e64c18ea789108158a99c050304b2647762b88
Signed-off-by: jiguoliang <jiguoliang@localhost.ccr.corp.intel.com>
Reviewed-on: http://android.intel.com:8080/18331
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: Monnier, OlivierX <olivierx.monnier@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
605881752d4bbfb7c70d4d08f3cf1579b5473713 16-Aug-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb_video changes.

BZ: 5795, 6801, 7064

Skip the pad bytes in rotation surface.
For interlace stream, always disable msvdx rotation.

Change-Id: I0c509fa385e4e99fc9d0ec7bdfd6b1d82afbedb1
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
62eed835ef3be46cbdc2239b73f5b261b72bf1be 09-Aug-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb_video codes to MFLD Android

BZ: 6026, 6064, 6578, 6583, 6800

BZ6026,6064,6578: Enable the Overlay colorkey.
BZ6583,6800: Invalid gtt offset will cause overlay display a green frame. So ensure overlay disabled before surface destroyed.
Pass overlay register buffer handle to kernel for buffer validation

Change-Id: Iae555fc1039e3b9ac91e5dd045d68df3eac9a0b1
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
f91c8768670386683a281cc39141e21bdda9c97f 08-Aug-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb-video codes to MFLD Android

BZ: 6825

BZ6825 Add more check for rotate surface
rotate: make texstreaming/overlay VA rotation set from vaSetDisplayAttribute work
Aligned with opensource version
Fix ttm object count increase after capture a picture.

Change-Id: I4a593be8dd2736f10c045f41f70beba3423cf6e7
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
4338997831d19bf1d5d286ba4cb5620f24b237b0 22-Jul-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb_video to MFLD Android

BZ: 5276, 5562

BZ5276: Optimize the logic of getting render box and ensure rotation occur after render box updated.
BZ5562: Encoded H264 clips got wrong color while vec d0i3 is enabled.
Video kernel drier will save the chroma QP offset table according to the appended core id. Then restore them when resume from vec D0i3 state.

Change-Id: Ie355af95c1af9bae96d2eae8a1ce7f6c8a6be501
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
5b25aaf457f3ba02a4ff2a6243fa7c0f84f1e016 14-Jul-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local update to MFLD android

BZ: 4196, 4465, 5024

BZ4196: Append extra NULL command to JPEG encoding command buffer.
BZ4465: Concurrent invoke vaInitialize/vaTerminate will cause overlay is initialized
mutiple times even when overlay is used to rendering. Delay overlay initialization to the
first use of overlay.
BZ5025: Change the placement flag of surface allocated by psb_CreateSurfacesForUserPtr.

Change-Id: Ie4065997150ceae07de5604606f142e3583d3ae6
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
cafec1db7e3fab84fe6908d9b4398e1867978e23 06-Jul-2011 Austin Yuan <shengquan.yuan@gmail.com> video: more grain-fined error handling

BZ: 4217, 4283

1) not register BCD if VA surface is YUV422
2) not hard code BCD ioctl
3) stop overlay if overlay is not used

Change-Id: Ib19c981787c03fac4df4f70e48f739c2c22e7121
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
5fc4c9dad588a06fd9f9d03585991517ff59dad1 30-Jun-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb_video driver to MFLD Android

BZ: 3585, 3764, 3978, 3981, 3982

BZ3585: Modify obj_context->interlaced_stream for H264
BZ3764: Overlay destbox is properly intialized.
BZ3978,3981 and 3982,add code to check parameter
Other local changes.

Change-Id: Idd17413ac2fb0e764a45b894307a777356648e02
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
88c877ee20e8d71ac211a44103e4a9e80083de83 21-Jun-2011 Kun Wang <kun.k.wang@intel.com> Video: Merge the local psb_video codes to MFLD Android

BZ: 2992, 3257, 3366, 3443, 3450, 3624, 3729

BZ2992: Correct the boundary checking of H264 encoding max slice size.
BZ3257: Allow H263 encoding width and height not aligned to 16.
BZ3450: Overlay can only support max 2047x2047 src size. Fallback to texstreaming if exceed hw limit.
BZ3624: Update Topazsc firmware version to 327
BZ3366 and BZ3443: Add code to check parameters VARectangle and VAConfigAttrib
BZ3729: Avoid driver_data->output_method being overwrited after being set by environment variable.

Change-Id: I3e9fda343f993ca713d8e49f11caa67d06148b9a
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
0da1930627209986e8db220799a690f816494401 14-Jun-2011 Austin Yuan <shengquan.yuan@gmail.com> Video: msvdx rotation support and some sanity check of parameters

BZ: 2207, 2984, 2986, 3038

Enabled msvdx rotation:
1) when detectes surfaceflinger has rotate,
notify per-context msvdx rotate support
2) check if the incoming stream is interlaced or not by PicParams
if it is interlaced clip, doesn't use msvdx rotate
3) export PSB_VIDEO_NOROTATE to disable rotate support

for BZ2986 and BZ2984, add checking VASubpictureID and modify
function vaSetSubpictureChromakey

for BZ3038, Clear local drawable when texstreaming switch to
overlay render path

Change-Id: I4d8f8340c65615d02947b7388f9ddc744a57dec3
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
8803df709aec9d485d757c681791d708f9a88fe6 07-Jun-2011 Austin Yuan <shengquan.yuan@gmail.com> Video: not enabled CTEXTURE by default

BZ: 3102, 2992, 2746

there is thread-safe isue in CTEXTURE:PVR2D, and will cause HW libjpeg
hang (libjpeg will create many libVA threads during running)

Improve video 1080 the 2nd slice quality by a workaround

Change-Id: I9966a8912c71695277afb52732f77044c2a8f621
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
ca7d98aa1e54c9ee6ee79eb46ad25e0b897e7c51 26-May-2011 Austin Yuan <shengquan.yuan@gmail.com> Video: fallback to TS when detects rotate

BZ: 2529

This is the second patch to temp fix video playback rotate issue
getVideoPostMethod is used to return surfaceflinger layer compostion
status, in addition for it, add the screen rotation info into it, then
with a query, video driver can get the rotation information and fall
back to texsteaming (temporarily) accrordingly

Change-Id: Ic715ed3e4caa89869f55944e5055493797deb6fd
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
65174cf623a03bf5ce819778f8bca002674c2e7e 19-May-2011 Austin Yuan <shengquan.yuan@gmail.com> Video: fix some random uninitialized data which will capture hang

BZ: 2351, 1119

HDMI resource are local variables and not fully initialized, by
move it to driver private data to fix video capture random data
corruption issue, which will cause video caputre hang issue

Change-Id: I99437e72155ecf55ff218d80c7f6c586b70cdd7b
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
54752e65b02b1a84c491e3f9c964046faeea306e 09-May-2011 Kun Wang <kun.k.wang@intel.com> Video: porting the lastest psb_video to support overlay and HDMI extended video mode.

BZ: 1788, 1173, 1634, 817

Video driver should support dynamic switch b/w overlay and ts according to wherher video si covered by UI.
Video driver should support HDMI extended video mode.

Video driver will query visible region info from surface flinger to detemine render through ts or overlay path

Change-Id: I7d4081e14cf1b5813c742446c17dc48c8c9b6317
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
3f0344d71a79eccf65858fe5ba8a55f75dc5d7f5 03-May-2011 Austin Yuan <shengquan.yuan@gmail.com> video: integration ww19.2 libva/video driver

BZ: 1597

Fixed test/basic; test/decode; test/encode; test/putsurface bugs for Android

Change-Id: I60b47c55d01a2705d8a8965cfe6a05a4a64f84de
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
bde3ed7517cc876cb2a6e174ea2a96a75938e787 18-Apr-2011 Kun Wang <kun.k.wang@intel.com> Video: Port the latest video psb_video library to MFLD Gingerbread. -BZ1229

Vido team have updated some changes for MRST and Meege. These changes include: fix Meego TTM error message; support resolution change feature; workaround to avoid TTM page leak message; Enable HDMI extend video corresponding to libva 1.0.12; refine codes style; Fix sighting 3471013; etc.

Port the latest video psb_video library from video team's local git server to MFLD Gingerbread.

Change-Id: I75f607e0bbd32d571ec723a52528330730bb13a3
Signed-off-by: kun.k.wang@intel.com
/hardware/intel/img/psb_video/src/android/psb_output_android.c
dc1209519284865899ca8d990b3a2c7dbca8ae08 09-Mar-2011 wangkun <kun.k.wang@intel.com> porting the latest psb_video codes to gingerbread-stable

Change-Id: I7f420c2fa49a3b6569171c077c10c35f32e03418
/hardware/intel/img/psb_video/src/android/psb_output_android.c
4b5b72d7dd3fe944d75029ff0ca6db1e74600e59 07-Jan-2011 Liu, Shuo <shuo.liu@intel.com> Update psb_video from medfield-meego 2010-12-15 release to enable
stagefright based video playback

Change-Id: I41ca5c27a819895ef3c0eed529b84edca0f1fa24
Signed-off-by: Liu, Shuo <shuo.liu@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
2f768e2db3e4074a6e9a3d5f0f6e321233d96e4c 29-Sep-2010 Fei Jiang <fei.jiang@intel.com> Update driver to DDK113 to support cicso's several features which include fw update.
The implemented cisco's new features include: AIR, maximum slice size ctrl, refined dynmaic bit rate ctrl.

Change-Id: Iaca7f518bf4626c6f798b694fadd528966ae7c9f
/hardware/intel/img/psb_video/src/android/psb_output_android.c
1f0ceeab52f69a9f6fc8817502fae178117292a7 01-Sep-2010 Bruce Beare <brucex.j.beare@intel.com> non void functions must always return a value.

Change-Id: I5d9302aacc69d2d75fd20f29d9d3207a7b23b436
Signed-off-by: Lu, Hongjiu <hongjiu.lu@intel.com>
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
/hardware/intel/img/psb_video/src/android/psb_output_android.c
2befccec034c13d34746a9e87149889d59ac767b 23-Aug-2010 Fei Jiang <fei.jiang@intel.com> Porting psb-video code change from Eclair.

Change-Id: I366119c332c0bdd791ce363b60ae60d20b1ba458
/hardware/intel/img/psb_video/src/android/psb_output_android.c
41051cf68a4a61406a5adcb9412cd83035eb8b0d 23-Jun-2010 Fei Jiang <fei.jiang@intel.com> Fix green bar problem when playback video with texture streaming path.
This commit need work with framework/base fix to add setTextureStreamDim API.
This commit also remove fourcc.h to resolve ipscan issue.

Change-Id: Ibe70339ec9556228852fe43cf36a084901e0c4b6
/hardware/intel/img/psb_video/src/android/psb_output_android.c
437b3eda28a4bf098efa80598cab67f190275266 11-Jun-2010 Fei Jiang <fei.jiang@intel.com> Replace wind river video driver with intel umg video driver, which also include texture streaming support.
Playback with texture streaming is for default, but overlay is also supported.
You can disabled "#define ANDROID_VIDEO_TEXTURE_STREAM 1" in psb_output.h to enable overlay.

Change-Id: Ia8e08c69d5f221c8e43d79ecd74993fd1e819a69
Reviewed-by:Francis Tharappel
/hardware/intel/img/psb_video/src/android/psb_output_android.c