History log of /hardware/intel/img/psb_video/src/pnw_H264.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3b69182ad93e2631df476f5aebbd5fd0b7832117 25-Nov-2014 hding3 <haitao.ding@intel.com> VED: Serialize cmd submission for VED when using H264 slice header parsing

Fix VED fw hang issue in Monkey test

Bug: 17656112
Bug: 18306960

Change-Id: Ia5fa51e02ccb2765c4308db603559181144efe07
Signed-off-by: hding3 <haitao.ding@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
426fbf4b84c911fa48097f13c42548c3ab1b6ce6 03-Nov-2014 Rajesh Poornachandran <rajesh.poornachandran@intel.com> psb_video: Handle failure from psb_context_flush_cmdbuf gracefully.

Bug: 17656112
BZ: 226486

Change-Id: I2afd29356b600b3cc002bdd7394640122757a6ab
Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
ea8f3142b39bef0cbcfd3123446af4d527b10be3 28-Oct-2014 ywan171 <yi.a.wang@intel.com> psb_video: improve DBP order consitency

enhancement for maintaining the consistent of DBP also fix the CRC
issue in previous commit

Bug: 17693351
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Change-Id: I354dc662085463472a328b680fa01abe01751916
/hardware/intel/img/psb_video/src/pnw_H264.c
b54bdf091833afe2ecb9235a48b87418b2d1e544 25-Oct-2014 ywan171 <yi.a.wang@intel.com> Driver to keep consistent dpb order
This is needed to decode skiped MBs

Bug: 17693351

Change-Id: I6d602d14e3415a5dcf5546551b793201c59576a3
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.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_H264.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_H264.c
20f2ef257b798a174166858314731050410e31f4 16-Apr-2014 mahongpe <hongpeng.ma@intel.com> Fix HEVC video clip display issue.

BZ: 188865

HEVC is decoded by software, when rotation, it will use
VED to do rotation. so there is not coded_width and coded_height
in this case. when display, the start X/Y will be wrong.

Change-Id: Ic18b32315232046451f502897353f7139fd95355
Signed-off-by: mahongpe <hongpeng.ma@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
55dbfaffb153fbec01e82c471b7ea5bf7bcac5fe 01-Apr-2014 mahongpe <hongpeng.ma@intel.com> Pass real frame width and height to HWC.

BZ: 188861

When rotation is enabled, if source crop is not equal to source
region, HWC will need real width and height to calculate the
start position in rotation buffer.

Change-Id: Ib34bed57a293aa1ad5e181031e58575abe5e76e2
Signed-off-by: mahongpe <hongpeng.ma@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
ae7c13103552cd8b059d26d2926ad4e3eea86743 02-Apr-2014 Sun, Jian <jianx.sun@intel.com> fixed partial crc32 errors in h264 case.

BZ: 183779

When making test of crc32 based on h264 case, there are some crc errors appeared.
The patch can reduced crc32 errors.

Change-Id: I1e719808aaf87e5830498a2cedd0ba12c7fdde6c
Signed-off-by: Sun, Jian <jianx.sun@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
2672f866bdc3565173e11f598d7f3b95ff1dcb0b 08-Apr-2014 Elaine Wang <elaine.wang@intel.com> Fix one NPD.FUNC.MIGHT klocwork issue

BZ: 185211

Check pointer colocated_target_buffer before use it.

Change-Id: I8897f57bbf8c5abaabd968c54ffdaf80befae544
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
2c17e69ffe1f253e6827ee4b9cd018f3716ebb87 26-Mar-2014 Li Zeng <li.zeng@intel.com> VED: remove 1080p size limitation for H264 decode

BZ: 181914

remove 1080p size limitation for H264 decode

Change-Id: I190ec4fe9bf68170397358517e9c779a490feeb2
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
55d0b10049aa81097747aacbeb5565eaa9c5274d 24-Feb-2014 Nana GUo <nana.n.guo@intel.com> disable EC for clips with Flexible MB

BZ: 163500

VED could not handle EC correclty for clips with Flexible MB

Change-Id: Ida62e5a56f9ac7391ca1732a4815cd771948feeb
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
204e2714ec896991ecd8b444ec7cc742b7b3e785 28-Feb-2014 Li Zeng <li.zeng@intel.com> VED: correct one payload info

BZ: 174203

correct one payload info

Change-Id: I6f7cb152578a189bb39c0ee8a906f56f12aa5f69
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
989fca9ecb5d311beed4eb2354906f2f24430309 13-Mar-2014 mahongpe <hongpeng.ma@intel.com> update psb_video according to IMG's update to support modular drm.

BZ: 179076

In this update, slice header extrace command will be changed,
so update corresponding stucture definations here.

Change-Id: Ie0c7232cf878e8156ba269666d64df7343d857a8
Signed-off-by: mahongpe <hongpeng.ma@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
79aba326cdfb39a46fc869927999f5002e879871 06-Mar-2014 Li Zeng <li.zeng@intel.com> Video: use unfence_flag to pass down a flag for clflush

BZ: 177155

use unfence_flag to pass down a flag for clflush

Change-Id: Iaedeca45b0d97c795d79573566bec60cb31f3882
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
bc222733c95473a832014871bbc7572198ca6b8c 25-Feb-2014 mahongpe <hongpeng.ma@intel.com> Enable Modular DRM in psb_video

BZ:174825

Change-Id: Ic2f46dd215278b03f71a87dac3ba52abf9aceaae
Signed-off-by: mahongpe <hongpeng.ma@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
6d59fc131522963176a693a06cd706f041fd899a 27-Jan-2014 Fei Jiang <fei.jiang@intel.com> psb_video: resolve memory leak issue when playback protecte video

BZ: 167746

For slice group buffer and frame buffer for slice header parsing,
they are not passed through vaRenderPictuer,
we still need suspend them to let them be reused.
Also need remove buffer suspend check to let slice group buffer be mapped.

Change-Id: I4154cd396a4ccaf5b499d7d61e8c119c4ef76b99
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
e6f5c18e378c3843e5ac976c7493fd48d5589954 13-Nov-2013 Sun, Jian <jianx.sun@intel.com> PSB_VIDEO: Segmentation fault crash and failed occurs when run some LibVA cases

BZ: 150436 150466 150427

Segmentation fault crash and failed occurs when run some LibVA cases

Change-Id: I31b10abbd55949f231e2e35afb8fe4f4d1def982
Signed-off-by: Sun, Jian <jianx.sun@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
70222cfb3379b427f6ed90c50946f5f84ea6a4ae 31-Oct-2013 ywan171 <yi.a.wang@intel.com> psb_video: enhance AVC psb to handle the case that num_ref_frame is set as max_ref_num in sps param.

BZ: 148999

when num_ref_frame in va slice param is set as max_ref_num in sps param, there will be corruption
in decoded frame. add the robustness in this case.

Change-Id: Ic7903e4ecb112772a2eb55df15433650e1914207
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
913999933b93af5ec1cc99a28b961fa12834c085 18-Sep-2013 Nana GUo <nana.n.guo@intel.com> psb-video: frame-level decoding with slice header parsing

BZ: 139405

frame-level decoding with slice header parsing when D0I3 enabled
to avoid VED power down between slice header parsing and decoding

Change-Id: I0b1be72e399fb90a0d88488dfcc49a37edac82da
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
9aa931cb8cdc82ca97500a3a642ba367ab456211 02-Nov-2013 Li Zeng <li.zeng@intel.com> VED: get next cmdbuf before submit host opp msg

BZ: 148901

get next cmdbuf before submit host opp msg

Change-Id: Id0358fac68e83e5fecda561b9d443cffbf02a7bf
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
39eff7a021afd8ec1a6f375dbc6476cbaa485d5d 12-Oct-2013 Li Zeng <li.zeng@intel.com> VED: switch on error concealment for MPEG4/VP8 codec

BZ: 144719

switch on error concealment for MPEG4 codec

Change-Id: I7362c8b4f3eac14052529072ec76b79910d287b1
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.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_H264.c
bf7467cc67edc15c630f8b32795f9779ede68da1 22-Oct-2013 Gu, Wangyi <wangyi.gu@intel.com> psb-video: limit AVC/MPEG4/VC1/VP8 max resolution to 1080p

BZ: 146858

limit AVC/MPEG4/VC1/VP8 max resolution to 1080p to avoid
middleware forces decoding of large resolution clips that
are not supported.

Change-Id: I2fb75247df0417ee183d6cd9b049729ea585d286
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
5c3a70e3d110fc71ec9b00955c8885310fdf70ae 01-Aug-2013 Li Zeng <li.zeng@intel.com> VED: Enable invoke VED two-pass rotation from HWC

BZ: 128654

Enable invoke VED two-pass rotation from HWC

Add VED stride mode and tiling support in psb_CreateSurfaceFromKBuf

Change-Id: Icf777b57c59c797eca21fb9aee8a5dc071a2a02e
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/124630
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.c
feee186c19ae8213aad756baeb51d2fa11f36730 27-Jul-2013 Li Zeng <li.zeng@intel.com> VED: Fix aux_buf re-write issue for VP8 decode, fix aux_buf leak issue

BZ: 122029

Fix aux_buf re-write issue for VP8 decode, fix aux_buf leak issue

Change-Id: I2d43625ed975bdba4311868a22c98cd28c366243
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/120672
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_H264.c
e853beb775a5de607bd080d7d43e638f95199e68 27-May-2013 Nana GUo <nana.n.guo@intel.com> psb-video: add slice header parsing support

BZ: 110655

add slice header parsing support in psb-video part

Change-Id: Ib382faf5f337eb5e82418f87896e48273e291c5e
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
Reviewed-on: http://android.intel.com:8080/110348
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_H264.c
367040d221af4e32e54530425f87fb576bc28ae0 10-Apr-2013 Li Zeng <li.zeng@intel.com> VED: not fence some buffer to make sync object more efficient

BZ: 92956

not fence some buffer to make sync object more efficient

Change-Id: I8e5ac72247047d468f1ec61aa98872453942ee78
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/103782
Reviewed-by: cactus <cactus@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_H264.c
925e65d1ed4a080e83ea5fcaea1c3c802e427e6c 21-Feb-2013 pingshix <pingx.shi@intel.com> ved: support ved output scaling

BZ: 87314

support ved output scaling

Change-Id: Ie65df2a29e7d928db75e7d1c6bce0858089973a7
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/92918
Reviewed-by: cactus <cactus@intel.com>
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/pnw_H264.c
81826d3ab4c9cf28ea853f1545042aa53a0f0abf 25-Dec-2012 Li Zeng <li.zeng@intel.com> ved: implment VPP function for msvdx

BZ: 78377

Implement VPP function for msvdx to support standalone rotation

Change-Id: I764ecc23fb440c6bc54860303341ba10fa52cc32
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/85117
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_H264.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_H264.c
a788d8bc8bd8a05d88b28cdf9fa70372671faa74 27-Oct-2012 Li Zeng <li.zeng@intel.com> video: fix H264 MBAFF decode issue

BZ: 64331

fix H264 MBAFF decode issue

Change-Id: I43294306bb05431885fe18d747cc134f3fb3c49a
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/71791
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@intel.com>
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/pnw_H264.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/pnw_H264.c
56ada57fd5c4a41fbf281589526d47850bed05fd 16-Oct-2012 hding3 <haitao.ding@intel.com> [PSB-VIDEO] enhancement msvdx YUV rotate code and fix some compile error

BZ: 62368

1. Modify psb__dump_NV_buffers so that can dump rotated buffer
2. Fix compile issue for FPGA making decode

Change-Id: I122deb5129d9b3b89b70f1f5f2cea295a6201812
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/70150
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_H264.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/pnw_H264.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_H264.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/pnw_H264.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_H264.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_H264.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/pnw_H264.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/pnw_H264.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_H264.c
680952832ef474a95bb0c4fee50c06e5126ad66d 03-Nov-2011 Kun Wang <kun.k.wang@intel.com> Video: ww45.4 Port the local psb-video and libva changes to MFLD Android.

BZ: 13645, 13068

DDK3.0 update for psb-video (NOT enable)
Error Concealment codes for MFLD (NOT enable)
Add CloverTrail deviceID
Fix segfault issue
Fix wrong cbp_size_value_minus1 calculation.
Need a new encode parameter buffer type for HRD parameter setting.

Change-Id: I6d9d1936bf2ade8dc4129a210e718a16e6b13933
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/23007
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_H264.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_H264.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_H264.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_H264.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_H264.c
3982f61b009483a53bdbc0391dc71934021fc8ab 28-Jul-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb_video to MFLD Android

BZ: 5493

Set bit MinLumaBipredSize8x8Flag
MR: make IMR functional (put slice data into IMR, and decode it by MSVDX)

Change-Id: I1fdddaf588ca48481a97924d435243e5adf5a9d6
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_H264.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_H264.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/pnw_H264.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/pnw_H264.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/pnw_H264.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/pnw_H264.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/pnw_H264.c
643778eb83b8dfe3bbf433855b311d4fefa95e21 10-Sep-2010 Fei Jiang <fei.jiang@intel.com> Update video driver to tag ww37.5_android.
Implement cisco's new requirement: dynamic bit rate control and IDR request.

Change-Id: I99ed1444fe0cc0f293eb3499574fc9c18d33030a
/hardware/intel/img/psb_video/src/pnw_H264.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/pnw_H264.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/pnw_H264.c