History log of /hardware/intel/img/psb_video/src/pnw_rotate.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b35344f5c0b8568df0630efe9fce076e810de8d3 10-Oct-2014 ywan171 <yi.a.wang@intel.com> add vsp vp8 encoder into build

Bug: 17783054
BZ: 225951

Change-Id: Ic0883ff983c2b34ac7c7c104ce312d5bf33bf405
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
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/pnw_rotate.c
3068c8ca19189bf2d757686d207f44590347c8ba 04-Jun-2014 Sun, Jian <jianx.sun@intel.com> VED: support video rotation on MOFD

BZ: 200580

support video rotation on MOFD. Rotation angle is signal from HWC through payload buffer

Change-Id: I44e4a6309d1befc28b2b8e62b78b6e822fc0d467
Signed-off-by: Sun, Jian <jianx.sun@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
a7634d944fe745c4061b4b5c0d425cc585b923a2 06-May-2014 mahongpe <hongpeng.ma@intel.com> enable video rotation+scaling for WiDi usage.

BZ:188797

a). Video driver will provide 3 kinds of buffers as following:
scale rotate
normal buffer:1080P -------> scale buffer:720P -----------> rotate buffer:
specified size, such as 480P, 720P, 1080P, etc.
b). HWC will select rotate buffer and send to WiDi

Change-Id: I3e7b2343d4718533fdcd1e99741cdd7b0a83ed42
Signed-off-by: mahongpe <hongpeng.ma@intel.com>
Signed-off-by: Zhu,Tianyang <tianyang.zhu@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
dc57be785ecbcc966dd6f2631e118d1ea3ed17a3 04-Apr-2014 Nana GUo <nana.n.guo@intel.com> psb-video: reset disable_msvdx_rotate for WIDI

BZ: 184115

reset disable_msvdx_rotate for WIDI when metadata rotation
is not 0 and still use VED to do rotation

Change-Id: Ic0cb83b12baf5d3eaadb562c0f2d03ad25228133
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
52e0fe24be4fdd3f9c0b2b8a378518fbea7a3fee 28-Mar-2014 Nana GUo <nana.n.guo@intel.com> psb-video: to get rotation info from HWC for Mediacodec API interface

BZ: 182006

To get rotation info from HWC for Mediacodec API interface

Change-Id: Ifce2092201254f94d34cc8dd0a1262870274fb51
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
a619764ab35f004e6b54c8d3a656a3cf1ead2581 17-Mar-2014 Nana GUo <nana.n.guo@intel.com> psb-video: use VED rotation only for WIDI on ANN

BZ: 178394

Overlay supports rotation, but only
one OverlayA can rotate. Use VED rotation
only for WIDI, other cases disable VED rotation

Change-Id: I1dc9be01c63ad0e8b4b85e85f9052be9d0a9492d
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
e202f2ee721bf555410fd0cd4d5e2e2cb951f83f 12-Mar-2014 Li Zeng <li.zeng@intel.com> Video: handle video crop size from libva

BZ: 177403

handle video crop size from libva

Change-Id: Ie8807a25806250d6dcd93085b079b1384579d3db
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
539a49d14f466d64394588b7d080a7f027f13f71 07-Mar-2014 Li Zeng <li.zeng@intel.com> Video: handle video crop size from libva

BZ: 177403

handle video crop size from libva

Change-Id: Ibe9a603bce4980298a41a42f53724843fe1086a9
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
8a158b454ab3005c8faf8bd8c8511c34e9c0cce3 21-Jan-2014 Wang Kun <kun.k.wang@intel.com> Using macro to make sure "VPP rotation" function is just for VPP and MRFL

BZ: 165615

Use PSBVIDEO_MRFL_VPP_ROTATE macro to make sure it is just for MRFL platform.
Use VAEntrypointVideoProc entrypoit to make sure it's just for VPP.

Change-Id: I3b099042ca354e332c51c492dc998d575f83ae8e
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
208fdf0dfa4973738828afe4c0fee995d1c5079c 07-Jan-2014 Wang Kun <kun.k.wang@intel.com> Use VSP to do rotation for 1080P while vpp playback

BZ: 145877

In current design, GPU will do rotation for VPP output data.
To reduce the power, VPP will do rotation for 1080P.

Change-Id: Ic44e2aa7b801d89400a9f5e9e4c9a86e73c5d723
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.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/pnw_rotate.c
cbfb938113dd9c9f00efdc1e6f9795c795461eb6 15-Nov-2013 Zhu,Tianyang <tianyang.zhu@intel.com> Call MDS interface to get vpp state for diffferent display device

BZ: 151192

MDS provides an interface to get vpp state for different display
devices.

Change-Id: I921524b2d1aa92fc7d8e46e4a858a97d7ddd1f28
Signed-off-by: Zhu,Tianyang <tianyang.zhu@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
8ce9cd6f8b24361d0aeef2df63480703ec3725d2 14-Nov-2013 Fei Jiang <fei.jiang@intel.com> psb_video: fix blocky corruption while playing VP8 media with Gallery on BYT

BZ: 151641

On BYT, vxd392 is not used for surface rotation,
instead use VPP to rotate/csc/scaling in hwc, so disable msvdx rotate here.

Change-Id: Idea5073b1dc7755377639d5d332d2a5e5f1a653d
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.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/pnw_rotate.c
698438ee2202ffd4a3d6d47a84de01578c5e2a39 31-Oct-2013 Weian Chen <weian.chen@intel.com> psb_video: Do not clear payload rotation information for all of the surfaces
when new degree comes driver

BZ: 148092

When new rotation degree comes to driver, do not reset the payload rotation
information for all of the surfaces, otherwise it will break frame-based
rotation use cases, cause it will also clear the rotation information of
surfaces already decoded and to be displayed

Change-Id: Iab5421c1524b085536d58bcd17f56d8e783a60b3
Signed-off-by: Weian Chen <weian.chen@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.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/pnw_rotate.c
a2b3094b637280f18cd4ab54954f74e010c38cc1 12-Sep-2013 Nana GUo <nana.n.guo@intel.com> psb-video: fix vc1 clip with green display in landscape mode

BZ: 136269

Not right check for interlace clip

Change-Id: I0537b1bd1b9b9642820e3c78ec1120fd9947d6ad
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
Reviewed-on: http://android.intel.com:8080/132408
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
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/pnw_rotate.c
367db07e47849df9d4a0b94cc893413eabd3f195 18-Sep-2013 Yu, Linda <linda.yu@intel.com> change vpp on/off criteria

BZ: 139035

because vpp_settings.xml is changed, so change vpp on/off criteria

Change-Id: I2e5eb2fbebd09184348c8289d881e3b986d25fbd
Signed-off-by: Yu, Linda <linda.yu@intel.com>
Reviewed-on: http://android.intel.com:8080/132422
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
f3292416221e111ee5edfe545bb7acd19789f915 30-Jul-2013 Dan Liang <dan.liang@intel.com> psb_video: fix a kw issue in pnw_rotate

BZ: 126890

Fix a kw issue introduced by the bug fixing for BZ#119799.

Change-Id: Ie31c1a0d4e38b13bbf3d18de14526cdfdd82844a
Signed-off-by: Dan Liang <dan.liang@intel.com>
Reviewed-on: http://android.intel.com:8080/121793
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
aee57676c71478ba2c45980ef0768a239e7c26ff 24-Jul-2013 Li Zeng <li.zeng@intel.com> Video: decoder generate rotation output in HDMI clone mode for MERR

BZ: 123971

decoder generate rotation output in HDMI clone mode for MERR

Change-Id: I1d21e4ce0d3b74f1afe2bea54eb0e83c3e856c9e
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/121474
Reviewed-by: Guo, Nana N <nana.n.guo@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/pnw_rotate.c
438ce6b6895ee98bc732cc15061eca5c41de8a45 18-Jul-2013 Dan Liang <dan.liang@intel.com> psb_video: query the transform from hwc when nativeWindow is absent

BZ: 119799

MediaCodec invokes video decoder across different processes and in
this case ANativeWindow cannot be passed directly. So share_info/payload
is utilized to pass the transform info from HWC.

Besides, one constraint is added here to allow only protected content
video playback go through this path. Other cases can fall back to ST.

Change-Id: I38236e4d766e45ffb13abe98f816049f52207e00
Signed-off-by: Dan Liang <dan.liang@intel.com>
Reviewed-on: http://android.intel.com:8080/119443
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/pnw_rotate.c
7724e6ba621485d5e4f281edbac7565cfadb6a65 17-Jul-2013 Li Zeng <li.zeng@intel.com> VED: When there is meta rotation, also need windows rotation

BZ: 123701

When there is meta rotation, also need windows rotation

Change-Id: I8a5085933e2ba06fd48d10797f6d856cb3e15592
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/119228
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/pnw_rotate.c
8462f054cf7371250bee530d5eef4796664bb9aa 09-Jun-2013 wanglili <lili.a.wang@intel.com> Disable MSVDX rotation when VPP enabled.

BZ: 96675 114051

From Android design, original buffer is a must have
even in rotation mode because animation effect will
fall back to GPU for certain, so we have a big problem
still if VSP can only generate rotated frame.

I would like to firstly unblock VPP rotation UC by
disabling MSVDX and forcing GPU to conduct rotation,
and then communiate with VIED to discuss two pipe output
for both original frame and rotated frame.

Change-Id: I50de988fe43dba497c7fa786ab63995449d0d6aa
Signed-off-by: wanglili <lili.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/112552
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/pnw_rotate.c
afee71a4d88efb527222b5907dd5a92e1961dff6 05-Mar-2013 Austin Yuan <shengquan.yuan@gmail.com> Rebase libVA to latest freedesktop "staging" branch

BZ: 90494

Fix psbvideo build issue which is caused by libva change

Change-Id: I9c470cfd3613aa74bbc618cdb464c1b6816b8b26
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/95038
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@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/pnw_rotate.c
f3feab9872cdb67fd1914f3a25a6425963c61361 17-Feb-2013 Li Zeng <li.zeng@intel.com> Video: fix one Klocwork critical issue

BZ: 87188

fix one Klocwork critical issue

Change-Id: I3eb73606a11e3da021a659a8dcc3820c2dbb6419
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/92192
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@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/pnw_rotate.c
2f28b8d35c93da3d84054427c35961090a368058 14-Jan-2013 Li Zeng <li.zeng@intel.com> ved: support rotate from testsuite

BZ: 81292

support rotate from testsuite

Change-Id: Ifa0bb68871fda5b47702980a431736f00561ea4c
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/86464
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.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/pnw_rotate.c
684f0e29e29ca32fad49439cfe0392417361d34d 27-Nov-2012 Li Zeng <li.zeng@intel.com> [PORT FROM MAIN]ved: support memory tiling

BZ: 70693

support memory tiling for 1080p on CTP

Change-Id: Id342818a3d4b599c8e8416ea452c5ef3a118bb56
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/82314
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/pnw_rotate.c
17f42294e6f90d3f19c91a6c3c32c353adf3eb6f 11-Oct-2012 hding3 <haitao.ding@intel.com> psb-video: remove and comment out MRST related code.

BZ: 59207

remove MRST code and comment out dead code

Change-Id: I0460310d2d56f82ac18a8f892d4d7dc753e86584
Signed-off-by: nguo <nana.n.guo@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/69756
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/pnw_rotate.c
4a98dcd2483042879b67cee3cd51f5b4b2ea630a 31-Aug-2012 Jason Hu <jason.hu@intel.com> add a new buffer type psb_bt_surface_tt to indicate surfaces mapped into GTT.

BZ: 48819

Normal surfaces such as surface created by vaCreateSurfaces() should not be allocated
in TT heap. Only rotated surfaces and local overlay playback(testsuite) need to be
mapped into GTT. So add a new buffer type to separate these two kinds of surfaces.

Change-Id: Iedb2a6e8b8f95655d4e84382e21e985c160a5bba
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/64107
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Zhu, Tianyang <tianyang.zhu@intel.com>
Reviewed-by: Xie, Lin <lin.xie@intel.com>
Reviewed-by: Wang, Lili A <lili.a.wang@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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.c
b4af7d07494e5bb9ef5c5a509cc8880b8165463b 16-Jul-2012 hding3 <haitao.ding@intel.com> Fix some merge error relevant to video rotate function.

BZ: 44872

Change-Id: I63661bc6df7ee553815477d88e5975c0cc75c71c
Signed-off-by: Jason Hu <jason.hu@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/59862
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
5ed159b49cff6b05d923bcf00d09c67ee2ce1f80 15-Jul-2012 hding3 <haitao.ding@intel.com> psb-video code checkin for below BZ fixing.

BZ: 46156 46985 37563 45878 44851 45455

BZ: 44994 - [PORT FROM R3] remove ci_va.h and related code
BZ: 46985 - Blocky image on 1080p3_848x480_low_1000Kbps.mp4
BZ: 37563 - psb-video: fix some h264 ES clip CRC issue
BZ: 46156 - Restore VAImage structrue for binary compatible
BZ: 44851 - Set CACHED flag to external user buffer
BZ: 45878 - Merrifield H264 encoder does not support changing bitrate dynamically under VCM mode
Use extra_offset and extra_pitch for the 4th plane
BZ: 45455 - fix jag issue during one 1080i clip playback

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

Change-Id: Id4ee76ae2a9d8e35c0da68dbb1767325c7064b26
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: msun9 <mingruo.sun@intel.com>
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/59861
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.c
2c78ca7ccfd520fb38356dccc8ff025ad5de3903 10-Jul-2012 hding3 <haitao.ding@intel.com> merrifiled code checkin for h264 encoder, vp8 decoder features. this patch for spliting old patch 59860 to two patches which sperate MFLD and MRFL modifications to diff patch. BZ: 45158 45385 45609 42748 45878

BZ: 45158 45385 45609 42748 45878

(1) BZ45158 updated Merrifield video encoder user space driver
(2) modify the stride assignment, widi needed
(3) modify CMD_DMA_DMA_TYPE_SHIFT according to 1366FW and some errors after refine VP8 code
(4) BZ45385 Video: Enable VP8 decode with msvdx fw 1366ss on FPGA
(5) BZ45609 added the check for array's boundary
(6) BZ42748 The reconstructed frame is not supported well
(7) Support the Deblock filter while do capability check
(8) BZ45878 Merrifield H264 encoder does not support changing bitrate dynamically under VCM mode

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

Change-Id: Ia7ca62908494f19c37a6528dce8a2f24688925fe
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: Guoliang Ji <guoliang.ji@intel.com>
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/59860
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_rotate.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/pnw_rotate.c
52182c19a9fe774f60a73baa7c3de590446757c0 03-Jul-2012 Jason Hu <jason.hu@intel.com> Fix some merge error relevant to video rotate function.

BZ: 44872

Change-Id: I4ddfebd13fe0fa3f8cf4e6f56c87dd83808cf9e4
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/55124
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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.c
d3e97838845e2486aff54fc1ed9ba8b4af3d36fa 11-Apr-2012 Tianyang Zhu <tianyang.zhu@intel.com> Video: Query Widi status to decide whether to disable MSVDX_Rotation

BZ: 30544

It is a part of implemented for BZ30544, depends on patch 42633 and 42619.

Change-Id: I0a4c265111c53b33e6105d557ee14802d3b6c43f
Reviewed-on: http://android.intel.com:8080/43016
Reviewed-by: Zhu, Tianyang <tianyang.zhu@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/pnw_rotate.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/pnw_rotate.c
9190b606edae32a87310efe1027cdae8ef772656 08-Mar-2012 Fei Jiang <fei.jiang@intel.com> psb_video: enable bob deinterlace feature

BZ: 24913

Pass deinterlace info from video driver to hwc module.

Change-Id: I9edcc80d4a37e6147ee24b336d4a32b1e33a0e7e
Reviewed-on: http://android.intel.com:8080/38075
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.c
632959e77cf0fbcf6a6e2f9bad2d9032b9ac18f2 30-Dec-2011 Jason Hu <jason.hu@intel.com> Video: Enable overlay rotation for ics.

BZ: 15626

Use gralloc sub alloc to share rotate buffer handle b/w psb-video and hwc.
Enable native window pass down to psb-video from OMXcodec to query rotation
info from surface flinger.

Change-Id: Ica929021d9a8b41f3b3b807039e94cd0a7305b28
Reviewed-on: http://android.intel.com:8080/30225
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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.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/pnw_rotate.c