History log of /hardware/intel/img/psb_video/src/psb_drv_video.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4ad4af4508156a7abb6ec8d8278495c5d25d6024 14-May-2015 mahongpe <hongpeng.ma@intel.com> enable metadata mode support in psb_video
clear gfx buffer before decoding.

Bug: 19197299

Change-Id: I83f09fed7d38fc6698749756427771119a51003b
Signed-off-by: mahongpe <hongpeng.ma@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
f4c11867384e8c010264c10f0703e720bf2eefca 26-Jan-2015 Yuanjun Huang <yuanjun.huang@intel.com> psb_video: Enable MPEG2 in video driver

MPEG2 driver implementation

Change-Id: I43933536803788f31445e4eeb00d95e9dfa620c6
Signed-off-by: Yuanjun Huang <yuanjun.huang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
02f3955632048eb112d521f9c8e80ab2c911598a 14-Nov-2014 Xigui Wang <xigui.wang@intel.com> Support YV12 format for ISV functions

In current design, all YUV420 surface will be handled with VA_FOURCC_NV12.
The correct pixel format will be saved in extra_info[8].
VSP driver will indentify YV12 format with extra_info[8].

BZ: 229811
Bug: 17383204


Change-Id: I405b37bbac273e611b7415781b6dc586808b78ba
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
d50cf45fbdb02245b8d45b14935fc5f2f4575653 14-Nov-2014 Thierry Strudel <thierry.strudel@intel.com> Enable VSP driver

1. builds VSP vpp files.
2. remove dependency on libvpp
3. Remove the limitation of va surface can't be NULL when vaCreateContext
4. Fix a multiple thread issue when vaCreateSurfaces
When try to invoke gralloc_lock for the same native handle from different
thread, will return lock err.
Add a interface lock to protect the access to native handle.
5. Remove the compiling warning for VPP/VP8.
Update the data structure for parameters
Add "unused" attribute for unused function parameter.
7. Add flag in vaCreateSurfaces2 to explicit set NOT initialized share info
when creating surfaces.
8. Copy VPP input share info to output

Bug: 17383204
BZ: 227971

Change-Id: I6cfe01494d12f8704145294d391f4241801b05f6
Signed-off-by: Xigui Wang <xigui.wang@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.c
46ec2e2bd4bfdfe667d89afad353cf3c351e705e 17-Jul-2014 ywan171 <yi.a.wang@intel.com> enable video local playback on fugu

BZ: 209178

use #ifdef to comment out the VPP related code in psb video
Change-Id: Id649121deee29c8ae147c535fa4c4d4d96dbf8ba
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Reviewed-on: https://android.intel.com/218948
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Tested-by: Imberton, Guilhem <guilhem.imberton@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
c81215b4bf0f69e83b393d14bd6ffba2ec3f0ee5 23-Jun-2014 Tianmi Chen <tianmi.chen@intel.com> psb_video: use private_data to pass share info outside vaCreateSurface

BZ: 204482

use private_data to pass share info, so that we can fill out share info
outside vaCreateSurface, such as assigning crop width, crop height in
mediasdk

Change-Id: Ia98cc307bc00176742383a91b793c1484c900a81
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
e0c848575cd16a75a6f9b4d038cedbb77fc07873 19-Jun-2014 Li Zeng <li.zeng@intel.com> Video: Correct share_info->crop_width/height value for VPP usecase

BZ: 203151

Correct share_info->crop_width/height value for VPP usecase

Change-Id: Ie0f89016f14d601483cdb863b791e45577764ce1
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
ea19f5543d17793f6a03e37e27a9b4f1fbc781bc 27-May-2014 Sun, Jian <jianx.sun@intel.com> VED: pass video width information to kernel

BZ: 198675

pass video width information to kernel for VC1 decode, the info is needed for kernel to make workaround

Change-Id: Idf2d410bea6ace549248354f3d24ca9361a262b4
Signed-off-by: Sun, Jian <jianx.sun@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
2f3a46feb9905f73c9ad9e45177b755dbf5fbd0d 05-Jun-2014 Li Zeng <li.zeng@intel.com> decode: use VLD entrypoint for two pass rotation

BZ: 201085

use VLD entrypoint for two pass rotation so that kernel don't can distinguish VED and VSP ctx

Change-Id: Ie7bb8597d5e54585222e86a3520d94689b663d81
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
0f9ee6a4eb11c0827f244f8208bf252090617e48 14-May-2014 Lin Edward <edward.lin@intel.com> [CLONED FROM 196056] update buffer clflush

BZ: 196057

remove clflush for both video and jpeg encoding

Change-Id: Ib597f16ee83020b94bbe2883b669e00a6bb104ca
Signed-off-by: Lin Edward <edward.lin@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
d828d28d7d5789bffbc1a1fb3412de7c2bf63a8d 25-Apr-2014 hding3 <haitao.ding@intel.com> fix the performance issue when do video capture with 1080p30fps

BZ: 190222

fix the performance issue when do video capture with 1080p30fps

Change-Id: I489327d5c88ed3ae7bb25f6ce1195f8863c0d5e8
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
b98346100bc162073bc875598bbbdbfd409b2f8a 22-Apr-2014 Zhao Liang <leo.zhao@intel.com> expose VAProfileH264ConstrainedBaseline on MRFLD/MOFLD

BZ: 189361

Change-Id: Iffab04356838d741f616180504c54548530e3e47
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
c7eae429395441ab9d0953154e5d9fa51f00dba4 16-Apr-2014 Nana GUo <nana.n.guo@intel.com> psb-video: Video freeze during playing,then reboot with FABRICERR

BZ: 188863

Not to use two-pass rotation when VPP enabled

Change-Id: Iea94b5fc57cdeebbc2fcdedeafc323daf0abf48f
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
80512b077abec95c25376542d58e1ee4cb1a34ee 09-Apr-2014 Elaine Wang <elaine.wang@intel.com> Change the value of PSB_MAX_BUFFERTYPES from 1007 to 64

BZ: 185572

VABufferTypeMax is large(1000+) because there is big blank space between common libva buffer
type and Intel specific buffer types(for GEN usage only). If use VABufferTypeMax as
PSB_MAX_BUFFERTYPES to define the size of buffer type related arrays in context object,
we will waste about 16K memory. Currently, the max value of buffer type used in psb_video is
VAParseSliceHeaderGroupBufferType(44). So change the value of PSB_MAX_BUFFERTYPES from 1007 to 64.

Change-Id: I0d9ff14e6a1b3ecc8b34a7a73005c462141b8c4d
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
98be9b15fdf9dd710170f4d47d9be9ad754614b8 07-Mar-2014 edward lin <edward.lin@intel.com> Implement buffer clflush

BZ: 185261

clflush cached coded buffer for each frame
add support for jpeg encoding

Change-Id: Idf4fa7444a399e935d60695cf3f69b32e95adf98
Signed-off-by: edward lin <edward.lin@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
143aac797006e992e07ad8e6cd0db3bbfa424039 21-Mar-2014 Nana GUo <nana.n.guo@intel.com> psb-video: disable EC for MPEG4 on MERR and MOFD

BZ: 170496

disable EC for MPEG4 on MERR and MOFD

Change-Id: I94bdcc8beb262c70a33575d16c83a751b0b89cb1
Signed-off-by: Nana GUo <nana.n.guo@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
0cb595fd6d4185c319a05ef6ba67c46349db10d9 12-Mar-2014 Sun, Mingruo <mingruo.sun@intel.com> Enable temporal layer scalability in VP8 encode driver for SAND

BZ: 178492

Support multiple layers in VP8 encode driver
Implement reference frame selection in different layer
refine coding style in VP8 encode driver

Change-Id: Ib2451d85844a11ae1b8038b6487a7a0668092ae1
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
dbf2ee864763f6da009b5455943917c72e31e9ec 12-Mar-2014 Gu, Wangyi <wangyi.gu@intel.com> psb-video: distinguish the sw decode and hw decode

BZ: 174522

distinguish the sw decode and hw decode with output method,
which is used by hwc. This patch works with optimization patch:
https://android.intel.com/#/c/166226/

Change-Id: I66f8b716af594baebba4213f3f9d1963bb270c58
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
686e11709b57bc57ee94c3166f187fec959fd43b 04-Mar-2014 Wang Kun <kun.k.wang@intel.com> Check the return value of psb_new_context() funtion.

BZ: 176019

The return value of psb_new_context() in psb_CreateContext hasn't been checked.
Remove the context number check for VP8 and this check will be done in kernel driver.

Change-Id: Ib550d28b4ad431792e22bf0164a628c23dbc21b9
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.c
030d8371cbd338afae0c5a7e753b6c890eaa34c3 27-Feb-2014 Fei Jiang <fei.jiang@intel.com> psb_video: enable 64bit support

BZ: 172915

correct IMG_INT32 and IMG_UINT32 typeO

Change-Id: I78d5625789fe69c7209957c06a160b05ae1cadda
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
5c4b66fce9e89d62f0b10a38aab9a97370cc861d 25-Feb-2014 Li Zeng <li.zeng@intel.com> Video: use uncached coded buffer for encoder

BZ: 172883

use uncached coded buffer for encoder
update patch to fix for multi-platform

Change-Id: I26085a72fcb608bc01afeb830925095c1dcda66b
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
a00cb65b12023108e935c5e285a7fcab5a16d0a9 20-Feb-2014 Dan Liang <dan.liang@intel.com> psb_video: fixing memory leak issues

BZ: 172176

Some arrays are malloced without free.

Change-Id: I40fcc2a8196d786595d668929f7f24837b1d88eb
Signed-off-by: Dan Liang <dan.liang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
eb5827ee91388bdeda5789ff6a84a918e14d580d 13-Jan-2014 Cheng Yao <yao.cheng@intel.com> BYT: Query surface status from Gralloc

BZ: 164129

psb_QuerySurfaceStatus now queries surface status
from VPG gralloc HAL

Change-Id: Idd12568adf974f91a4401d4575d85a77d72e65db
Signed-off-by: Cheng Yao <yao.cheng@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
7e43b596458b2cf81c794ec7e321ac219cc8793b 14-Jan-2014 Gu, Wangyi <wangyi.gu@intel.com> psb-video: To cover the 180 rotation case when use two pass rotation in HWC

BZ: 164395

refine the former patch https://android.intel.com/#/c/154706/ for 180 rotation case

Change-Id: I10721c0c8e37a4706243f06c020ef344a9e94552
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
625d3e005df3e82718cb7815c56ea3966b1177c6 07-Jan-2014 Gu, Wangyi <wangyi.gu@intel.com> psb-video: fix the scramble issue when play some protected content video

BZ: 159336

Hwc two pass rotation uses the rotated width and height to create surface,
but in psb_CreateContext, we need the original width(= rotated height) to
calculate the msvdx_tile flag(which is used for tiling setting in kernel),
which makes the mismatch.

Change-Id: Ie7ba8fd62097e77d653a48b74501dd3307480032
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
768afdd6990a634451b96fc0ada6855885e16d00 26-Dec-2013 Sun, Jian <jianx.sun@intel.com> export start_mb and end_mb in error report

BZ: 161205

export start_mb and end_mb to user space when there are error in decoding

Change-Id: I13a7782f57bb5d4b3e5ac6f44dc116a5213319dc
Signed-off-by: Sun, Jian <jianx.sun@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
a868322f86b75eddac71259cfc7eeaf2c466d86a 03-Dec-2013 Tang, XiaoxiX <xiaoxix.tang@intel.com> psb-video: enable tile format for VXD392 on Baytrail platform

BZ: 141202

Due to GEN's x tile format is 512x8,
then we need also switch VXD392's tile format from 256x16 to 512x8.
Tile info need be passed from upper layer.

Change-Id: I9cc84dc18c1309dd2e0209b8e1270e646ca5c046
Signed-off-by: Tang, XiaoxiX <xiaoxix.tang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
1e3daae79c77ac457bad20d3758ab1523c79e7f3 13-Nov-2013 Li Zeng <li.zeng@intel.com> Video: remove width check for tiling/linear selection

BZ: 151378

remove width check for tiling/linear selection, use libva's tiling flag instead

Change-Id: Id0243556ef0a16ad7ac7978a92e8e97a7f5f31c0
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
cdfed8e03773078a0a8677f584147e567b41d1d3 05-Nov-2013 Sun, Jian <jianx.sun@intel.com> PSB_VIDEO: Fix decode error report issue

BZ: 149197

Fix decode error report issue in querying surface error.

Change-Id: I7a19c4cb3fce1847a0be92f325bda1b9c1d12597
Signed-off-by: Sun, Jian <jianx.sun@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
73f29b82e83e14c3722d6ebb61205eed640bfef3 31-Oct-2013 ywan171 <yi.a.wang@intel.com> psb_video: check obj_buffer in DestroyBuffer, if null, return success instead of error

BZ: 148999

the buffer obj is reused in psb driver, the buffer obj will be suspended after render.
so it will return error when psb_DestroyBuffer since the buffer has been suspend.

Change-Id: I63a301643042654cdf3125f240adba9ee1800a1f
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
8ed711d50371b21e8611381b631b509dc566c9ff 28-Oct-2013 Andy Qiu <junhai.qiu@intel.com> set protected surface flag when playing protected video.

BZ: 146305

protected surface flag needs to be set when playing protected video.

Change-Id: I4ecbe69e4fe7be93aaa430f60cd521451f6ea73a
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
4ad595628e31164eaf3ba8d469d9d8f59eaf717e 22-Oct-2013 Sun, Mingruo <mingruo.sun@intel.com> enable dual vp8 encoding

BZ: 146028

get ctx_num from arg.value in psb_new_context

Change-Id: Ib62affd840e7a02de0cb8e78f65978ab3b8c0ca0
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/140122
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/psb_drv_video.c
4c4f8e3880628bde5f0538af93c8d84cc46c027d 21-Oct-2013 Sun, Mingruo <mingruo.sun@intel.com> keep num_attribs in psb_QuerySurfaceAttributes not change

BZ: 140073

refine code about removing TYPE_USER_PTR for vp8 encoding

Change-Id: I54c3906afcfd2999b76629ab26851202fed474d1
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/139816
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/psb_drv_video.c
901ada31b87b21f8fd87f64597581f55830f2669 14-Oct-2013 Sun, Mingruo <mingruo.sun@intel.com> set vp8 state buffer 1Mbytes
Remove VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR for vp8 encoding

BZ: 140073

refine vp8 encode driver

Change-Id: Icbb12c35498898d7117bf3ebc2da33dfe370b985
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/138434
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/psb_drv_video.c
fb8a31899f22ce7676739d47bfce3095b2b919a2 16-Oct-2013 Cheng Yao <yao.cheng@intel.com> H.263: accpet H263baseline profile in VA

BZ: 145276

Previous patch made VA accept H263baseline profile for
MERR/BYT, but left over CTP.
This patch enables it on CTP.

Change-Id: Ica40a117994753a9732df307c7b83631b078001b
Signed-off-by: Cheng Yao <yao.cheng@intel.com>
Reviewed-on: http://android.intel.com:8080/138729
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/psb_drv_video.c
e616984cef7f7bfd309d059104c118df19eeba76 14-Oct-2013 Shi, PingX <pingx.shi@intel.com> Revert "psb-video: enable tile format for VXD392 on Baytrail platform"

BZ: 141202

This reverts commit ffac75132f0e42aba292f8ba162cd709ea2d9baa.

Change-Id: I7874cec84b06f93b4bd7fb70cb27d584ab41683e
Reviewed-on: http://android.intel.com:8080/138166
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/psb_drv_video.c
e37fcc2bab81380c933f7a5f771b8c88a6069122 09-Oct-2013 Cheng Yao <yao.cheng@intel.com> H263: Limit max width/height to 720x576 in VA

BZ: 143181

Limit wxh to 720x576 to avoid middleware forces
decoding of large resolution clips that are
not supported.

Change-Id: Ia8bee943a1cbed07f708fb4dda1f3978c789654d
Signed-off-by: Cheng Yao <yao.cheng@intel.com>
Reviewed-on: http://android.intel.com:8080/137397
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-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/psb_drv_video.c
8f310b349f837dec52859cfdcf1949345f462c21 25-Sep-2013 Fei Jiang <fei.jiang@intel.com> psb-video: enable tile format for VXD392 on Baytrail platform

BZ: 141202

Due to GEN's x tile format is 512x8,
then we need also switch VXD392's tile format from 256x16 to 512x8.
Tile info need be passed from upper layer.

Change-Id: Ie9af91e6c7899f02f7fe6928df8a537a46a7087d
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/137396
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/psb_drv_video.c
8df70905be896f0669f6771f06be3963b54a0a24 21-Aug-2013 Zhao Liang <leo.zhao@intel.com> copy pivate_data in VASurfaceAttribExternalBuffers to reserved[0] in VASurfaceAttributeTPI

BZ: 132031

enable nativewindow handle setting in VASurfaceAttribExternalBuffers during GrallocBuffer mapping

Change-Id: I9fa7099261b386a12bb4b32837b726f129b276ba
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/126959
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/psb_drv_video.c
8b9d488edafa54dce4d1fa4ae99e493ad840517d 14-Aug-2013 Li Zeng <li.zeng@intel.com> VED: Enable two-pass rotation for merrifield

BZ: 128654

Enable two-pass rotation for merrifield

Change-Id: I7876d9f154966809d90482f22de524dedda7e2db
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/125867
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/psb_drv_video.c
dd2d514a0bb30cb343ebdba69d514b2596a753ac 16-Aug-2013 zhangzha <zhangfei.zhang@intel.com> use un-cacheable coded buf for vp8 encoding.

BZ: 124706

use un-cacheable coded buf for vp8 encoding.

Change-Id: I5c3729766e0c257e35ba13bf01546f5f1ee3cd97
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/125868
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/psb_drv_video.c
827ab37731506073b2073b33e236090490403fb8 08-Aug-2013 Zhao Liang <leo.zhao@intel.com> Support vaQuerySurfaceAttributes

BZ: 129308

Change-Id: I7fe3758df322a0e84e3aed51bb1358e8625c01b5
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/124673
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/psb_drv_video.c
025f7c7e9643d6bffae04ee17b0e7cc29103bf8d 29-Jul-2013 Sun, Mingruo <mingruo.sun@intel.com> update vp8 encode driver to the new libva interface

BZ: 126685

update vp8 encode driver to the new libva interface

Change-Id: I9a1ba6ba7041fca7fb6e3bc5d18fdcf12c17cc2b
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/121792
Reviewed-by: buildbot <buildbot@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/psb_drv_video.c
1a1e7d281a187cf1060078f0f428e7e5e7244265 21-Jun-2013 Chang Ying <ying.chang@intel.com> psb_CreateSurfaces2: update branch logic

BZ: 115782

Consider VAExternalMemoryNULL as a valid external memory
type.

Change-Id: I9154150ffa8f848fe5a31a1bc5a0432aae584576
Signed-off-by: Chang Ying <ying.chang@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/116001
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
7fe83028016237543fd7ffb31036023398dd62b6 26-Jun-2013 pingshix <pingx.shi@intel.com> 1. vaDeriveImage() return error on reconstructed frames 2. Added tiled to linear memory conversion in vaGetImage()

BZ: 118261

This patch is submitted according to newencode test tool,reconstructed
frames is tiled format so vaDeriveImage() return error which only support
linear format. vaGetImage() should be invoked to dump reconstructed frames.

Change-Id: I170940e38302171f10d03912268c85723ea83e33
Signed-off-by: Ren Zhaohan <zhaohan.ren@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/115373
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
f23adf39b5fe431aacd30ce342ea6189eca346fe 18-Jun-2013 Chang Ying <ying.chang@intel.com> psb_CreateSurfaces2: update brach logic

BZ: 115782

If memory type is VAExternalMemoryNULL, we can skip validating the
buffer descriptor.

Change-Id: I55cd94f49990bcdf3e34f6cd4ecc390454bc98fb
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/114211
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@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/psb_drv_video.c
27808811fe309b3d00a3202579da07209fc8b812 05-Jun-2013 Elaine Wang <elaine.wang@intel.com> Encode: Check frame skip flag on surfaces without context

BZ: 113121

libmix doesn't set all rendering surfaces to libva in video recording
share buffer mode. To cope with this case on MFLD/CTP, video driver
checks frame skip flag if the surface isn't assicated with a decode
context.

Change-Id: Iab069dfc0b278fde694cbbc688c29a58ada74aee
Orig-Change-Id: I9f746dbbbc062fd8032e4405b194bc35f9612dd8
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/111738
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@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/psb_drv_video.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/psb_drv_video.c
8086c50ddd6fa200beba8d1878a4f0a4ae4de7ee 26-Apr-2013 Fei Jiang <fei.jiang@intel.com> psb_video: remove NV12->YV12 CSC

BZ: 101129

gralloc and egl driver can directly support NV12 linear format,
then don't need add such sw CSC in psb_video driver.
Signed-off-by: Fei Jiang <fei.jiang@intel.com>

Change-Id: I03085fee3cabc6b0f17a20bb373737a704a3cfbd
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/105031
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Stimson, Dale B <dale.b.stimson@intel.com>
Tested-by: Stimson, Dale B <dale.b.stimson@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
c0e6f471caaf5a546775399b166334fb2dfdeffc 28-Apr-2013 Dan Liang <dan.liang@intel.com> psb_video: clean up unused code

BZ: 104348

Revert patch#41752(dynamic support 1080p 60fps) as this code will not be used anymore.

Change-Id: I5986bc69285409458253e93744be9bb68ffcad37
Signed-off-by: Dan Liang <dan.liang@intel.com>
Reviewed-on: http://android.intel.com:8080/106695
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/psb_drv_video.c
83266deb53e8e836724ac1f18a94adbebd050170 29-Apr-2013 Austin Yuan <shengquan.yuan@intel.com> avoid DRM fd double free

BZ: 102232

DRM fd will be closed in libva library

Change-Id: I486d320eca678ca3c301827d1a1d9ba0e3894d2e
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Reviewed-on: http://android.intel.com:8080/105681
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: Verdu, Miguel <miguel.verdu@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@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/psb_drv_video.c
dd070ae3f019bbd4b2aba434b7c6a47d7885c8d2 07-Apr-2013 Chang Ying <ying.chang@intel.com> Add VASurfaceAttrib support in psb_CreateSurfaces2

BZ: 98592

Currently only support VASurfaceAttribExternalBufferDescriptor.

Change-Id: I23cb328e21fad085b66f58ac3a83e899d0486281
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/102268
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@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/psb_drv_video.c
cd6ff35c6e6dbbc5975462a37cfae59a2064ecad 09-Apr-2013 Wang Kun <kun.k.wang@intel.com> Use the correct MACRO for baytrail platform

BZ: 98458

These codes are used by MFLD and MRFL.

Change-Id: Ia0ead77dbc2446025285c657499529139b074d13
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/100809
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@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/psb_drv_video.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/psb_drv_video.c
ea2c7216b1b3a8b7a00ffd63ef4ae46c5e8f9fe5 28-Mar-2013 Sun, Mingruo <mingruo.sun@intel.com> Integrate VSP VP8 Encoder user space driver code[Video-MRFLD]

BZ: 90819

Integrate VSP VP8 Encoder user space driver code(VIED 1.5)

Change-Id: Iaaa3d80dd0f9908e92c48c6b80f9e4ab0d3bbd0a
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/99033
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@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/psb_drv_video.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/psb_drv_video.c
e6359146a25c756bac42a75024138ec4b242f477 08-Feb-2013 Li Zeng <li.zeng@intel.com> video: profile and level takes 16 lower bits of ctp_ctx

BZ: 85920

profile and level takes 16 lower bits of ctp_ctx

Change-Id: Ia0ecd7858f158515ebd70351cb663cfd895a1071
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/90980
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Ma, Hongpeng <hongpeng.ma@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@intel.com>
Reviewed-by: Wang, Yi A <yi.a.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/psb_drv_video.c
96f9540d0bfe9d52a7243b9172c7904867fc1fa4 25-Feb-2013 Jason Hu <jason.hu@intel.com> don't check buffer's display status if it is not allocated by graphic HAL.

BZ: 88641

Change-Id: Id8694572b93d64db7f90677b029a7f0e3b5118b6
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/93515
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@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/psb_drv_video.c
94d9df223ac4c604d6ce73c47c4199623a36766d 05-Feb-2013 liubolun <bolunx.liu@intel.com> Fix libva api test case failures. Clean up internal BZ issues.

BZ: 85072

1. Create_Destroy_Surface_err_list_null_Destory: Adding null list check
before destroy surface;
2. CreateSurfacesForUserPtr_err_resolution: Adding resolution check before
creating suface for userPtr;
3. Put_Image_err_xy: Adding invalid xy value check before putting image.
Commit again for correct status and component.
Signed-off-by: liubolun <bolunx.liu@intel.com>

Change-Id: I8051dc4b14542c996c6a3478c2fcee00b82459b5
Reviewed-on: http://android.intel.com:8080/90149
Reviewed-by: Liu, BolunX <bolunx.liu@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@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/psb_drv_video.c
74fdfaede5fe6bf12c298d8424418e72a1e82464 16-Jan-2013 Elaine Wang <elaine.wang@intel.com> Fix one klocwork issue in psb_drv_debug.c and psb_drv_video.c

BZ: 77254

Fix one klocwork issue in psb_drv_debug.c and one in psb_drv_video.c
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: I0a127d4c8ab83361ee635eb6aa54da6b012cdab5
Reviewed-on: http://android.intel.com:8080/87190
Reviewed-by: Wang, Elaine <elaine.wang@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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
d87d8c35ea58a64352072c3fee78cf1d1c412a59 12-Dec-2012 hding3 <haitao.ding@intel.com> [PORT FROM MAIN]psb-video: code refactor and README added

BZ: 70928 70530

move MRST related code to new folder mrst, add README to describe code
structure and naming rule in psb_video

Change-Id: Ia1f93b172d13cf3014e3bc8d9caeb44cf1123f4d
Signed-off-by: nguo <nana.n.guo@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/82315
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.c
177fefd650f1a011212701d03dd9af811fd5ebfa 31-Oct-2012 hding3 <haitao.ding@intel.com> psb_video: decode/display sync with GetDisplayStatus[2]

BZ: 58783

to build on PURE linux environment, added a limit "#ifdef ANDROID" for some part of code.

Change-Id: I45029c5dbdf32d309ce729b5400eb2b600029c07
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/72323
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: lab_cactus <lab_cactus@intel.com>
Tested-by: lab_cactus <lab_cactus@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
59d4599456ad95f1f066cacd03156f1e70a4fea6 25-Oct-2012 edward lin <edward.lin@intel.com> added one macro to note the fixed [MRFLD-VIDEO].

BZ: 64135

added one macro to note the mrfld code

Change-Id: I978baa39d1049de61a7263e310080fde4db301db
Signed-off-by: edward lin <edward.lin@intel.com>
Reviewed-on: http://android.intel.com:8080/71934
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/psb_drv_video.c
e79deb274ba55edd65e6c5d55f8e50954ff5b967 24-Oct-2012 edward lin <edward.lin@intel.com> fixed the status information of skipped-frames missing issue [MRFLD-VIDEO].

BZ: 64135

added some code to fix this issue

Change-Id: Iccbb0540c3aa878500a84cafea9db4a4f967f437
Signed-off-by: edward lin <edward.lin@intel.com>
Reviewed-on: http://android.intel.com:8080/71933
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/psb_drv_video.c
707b8b113fe163bc866f6de89ce08385772ef4e7 26-Sep-2012 nguo <nana.n.guo@intel.com> psb_video: decode/display sync with GetDisplayStatus

BZ: 58783

call GetDisplayStatus to get sync info. It is the sync
mechanism between video and display for video buffer
safety. It is mainly used to avoid video tearing issue.

Change-Id: Ie714eda3e88039386b471a35fde6d7f774d6a37a
Signed-off-by: nguo <nana.n.guo@intel.com>
Reviewed-on: http://android.intel.com:8080/65851
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: Zeng, Li <li.zeng@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/psb_drv_video.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/psb_drv_video.c
0fdd686c06bf9fc6b23419d277e452d559e8ea03 16-Oct-2012 nguo <nana.n.guo@intel.com> psb-video: libva api cases failed by VA_RT_FORMAT_YUV420

BZ: 62210

Enable MPEG2 decode for libva api cases

Change-Id: Ie92cdfe8c9aaeb36b647075e0a4ab0564eb4443e
Signed-off-by: nguo <nana.n.guo@intel.com>
Reviewed-on: http://android.intel.com:8080/70534
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/psb_drv_video.c
9c84210c502eba75e1db7a5284eb584452963c67 16-Oct-2012 hding3 <haitao.ding@intel.com> psb-video: refine patch 69757

BZ: 59207

refine patch 69757 to keep useful code

Change-Id: Ie8a873ef738ef89e552f396e3f20512e0e8156d3
Signed-off-by: nguo <nana.n.guo@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/70151
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@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/psb_drv_video.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/psb_drv_video.c
5e6d3b41c6a9e08d57b6894d65935253a111e834 11-Oct-2012 hding3 <haitao.ding@intel.com> code coverage: remove psb_ws_driver.c

BZ: 59255

psb_ws_driver.c is the Node callback function
for WSBM, but psb video driver doens't use
WSBM Node management, thus it is safe to pass
a NULL function to it

Change-Id: I9d70bcf47cb6028c7fe4cb3a39bd6c7b71351728
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/69753
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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
b3d52abe18fbfc58c5ccb43ed64073c8f5f79c51 11-Oct-2012 jiguoliang <guoliang.ji@intel.com> [PSB_VIDEO]Delete the redundant code of lnc command buffer related

BZ: 61480

Delete the redundant code of lnc command buffer related to meet the code
coverage requirment
Signed-off-by: jiguoliang <guoliang.ji@intel.com>

Change-Id: I8fbdb88f6cfdeadcc585d9a110551c72d6dd6802
Reviewed-on: http://android.intel.com:8080/69560
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/psb_drv_video.c
38f419a75e2994d6afe2ffb360d5f5b7670ce077 11-Oct-2012 hding3 <haitao.ding@intel.com> psb-video: remove and comment out dead code in driver part.

BZ: 59207 59255

remove lldma related code and comment out psb_fence_wait/destroy
delete the dead code in pnw_hosthead.c
comment the dead code in pnw_hosthead.c

Change-Id: Ic4cb4221cacbcae4e7721dbbdc4b1fea974bf9de
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Signed-off-by: nguo <nana.n.guo@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/69754
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/psb_drv_video.c
275f077b4bd66802efdbd5bc666b6938751fa03d 26-Sep-2012 Lin Xie <lin.xie@intel.com> Remove psb_texture.c from psb_video.

BZ: 59255

The functions in the psb_texture.c are not used anymore, but it
is still included in our build. So remove it from the makefile
and comment out the calling in other files.

Change-Id: I998584eb25adf31516773a170caf761d7db2924a
Signed-off-by: Lin Xie <lin.xie@intel.com>
Reviewed-on: http://android.intel.com:8080/67819
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Hu, Jason <jason.hu@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@intel.com>
Reviewed-by: Wang, Lili A <lili.a.wang@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/psb_drv_video.c
c188aa00cc5a56361298b94be444d70bc148eb40 18-Sep-2012 hding3 <haitao.ding@intel.com> Updated the psb code to fit for DDK3.2.0106

BZ: 57543

Updated the psb code to fit for DDK3.2.0106

Change-Id: Id63a82225d5d7ebf12698d68e2b4aaf5032787b6
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/66820
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/psb_drv_video.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/psb_drv_video.c
09a71c317aa9b4f03ac25edeb6e289be114c4935 05-Sep-2012 Wang Kun <kun.k.wang@intel.com> Do parameter "profile" check for both MFLD and MRFLD

BZ: 55663

Remove the MRFL macro to enable the checking.

Change-Id: Id7e8193db6e04a3c861fa1eb640236e615895c3c
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/64515
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Wang, Lili A <lili.a.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/psb_drv_video.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/psb_drv_video.c
8ad9853613fb16f48b9eaf95b4688f55bef4b5f4 30-Aug-2012 SUN,Jing <jing.a.sun@intel.com> Improving coded data copying speed by caching.

BZ: 54731

Issue: Without caching, coded data is too slow to be copied (a 590KB
JPEG file takes 7.Xms). So caching is needed to be set to coded buffers.

Solution: Enabling caching to coded buffers, then a 590KB JPEG file
only take <1ms.

Change-Id: I2adf7ccd35868bf7d14f11852a53a9b2d753472a
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/63967
Reviewed-by: Feng, Wei <wei.feng@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/psb_drv_video.c
7a7f243488d6d292901b6afcee37683635fc5a77 23-Aug-2012 Wang Kun <kun.k.wang@intel.com> Update the VSP to VIED 0711 release.

BZ: 51921

VAProfileNone was updated to -1 on libva, so we need to add a new vpp_profile for only VSP.
Add the support to query the filters capability for different frame.

Change-Id: I243b076b31547b18cbd0256f3b155b0fd10785fd
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/63242
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/psb_drv_video.c
9f225696a139f79036d3587b75eec7a8ec23732e 31-Jul-2012 Elaine Wang <elaine.wang@intel.com> Change the surface that stores frame skip flag

BZ: 47812 44763

In async mode, libmix need to know if ref and rec frame of frame N
should be swapped before frame N-1 encoding is finished. So store
the frame skip infor to N-2 frame.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: I10efacea422fd344411adb8df71b02ae4f6935c9
Reviewed-on: http://android.intel.com:8080/61658
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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
430ce5c32361119ed81a62c918be6afbdd053edd 13-Sep-2012 hding3 <haitao.ding@intel.com> merrifeild code checkin for jpeg, lnc_ospm, vp8 decode feature [MRFLD-VIDEO].

BZ: 44466

merrifeild code checkin for jpeg, lnc_ospm, vp8 decode feature.

Change-Id: Ie17729c87e9e10b5f231889769a2a1feac4aaa13
Signed-off-by: hding3 <haitao.ding@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
b0bdca543d797b3c3ce9565299f4bf33bca8fd30 01-Jul-2012 hding3 <haitao.ding@intel.com> merrifeild code checkin for jpeg, lnc_ospm, vp8 decode feature.

BZ: 44466

merrifeild code checkin for jpeg, lnc_ospm, vp8 decode feature.

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

Change-Id: I27310aaef06dadb7d06b693eca80f2716b4e87c8
Signed-off-by: hding3 <haitao.ding@intel.com>
Signed-off-by: msun9 <mingruo.sun@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Signed-off-by: Jing SUN <jing.a.sun@intel.com>
Signed-off-by: edward lin <edward.lin@intel.com>
Reviewed-on: http://android.intel.com:8080/54926
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
051e77b560fac8677666a57ac4860a804e7e0982 13-Sep-2012 hding3 <haitao.ding@intel.com> video: support ved error concealment [MRFLD-VIDEO].

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

Change-Id: Idc962052c780d59f8276d848a44c7e07b997eefa
Signed-off-by: hding3 <haitao.ding@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.c
25700ff311c88e7afca7b2e1e6fdfcc5fdda0a58 18-Jun-2012 hding3 <haitao.ding@intel.com> modify initialization handling of InitialQp and MinQP.

BZ: 41879

modify initialization handling of InitialQp and MinQP to make the two value can be re-calculation in psb-video.

Change-Id: Iffe316306f98e9b9d40318d356ffe3684383a7c1
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/53045
Reviewed-by: Ji, Guoliang <guoliang.ji@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
8e9a21e730449c10cac6e6f69d255611c93f63c2 13-Sep-2012 hding3 <haitao.ding@intel.com> porting MRFL branch to ICS mainline [MRFLD-VIDEO].

BZ: 35390

porting MRFL branch to ICS mainline.update version r7.

Change-Id: Ia48689ead949f44d32817d062accab06b1ecd3a6
Signed-off-by: hding3 <haitao.ding@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.c
a1756818411b990c978385ae425ea2d4610c7c08 29-May-2012 Fei Jiang <fei.jiang@intel.com> [PORT FROM R3] psb-video: set protected flag from mix to kernel through psb-video.

BZ: 37972

Pass VA_RT_FORMAT_PROTECTED flag to kernel driver to notify IED is on.

Change-Id: I4f88bcaf84fb96a5c2db7c18f60617b2e7b8beed
Orig-Change-Id: Ic82125cdf710a98f8dd71d03827e995bbc77e8cb
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/50632
Reviewed-by: Qiu, Junhai <junhai.qiu@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/psb_drv_video.c
f614fdcfc6d3b9802ab2501dbd84d42a82282fcc 24-May-2012 Fei Jiang <fei.jiang@intel.com> [PORT FROM R3] psb-video: add psb_SetTimestampForSurface to set timestamp in share_info for surface.

BZ: 37057

Need sent timestamp info to hwc through video driver for widi case.

Change-Id: Id8bedcd595477af0c282fb2293f00a898c177fe9
Orig-Change-Id: Ib0f2e167e5840474a243f1ff1ef0eeb9b8f96755
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/50116
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/psb_drv_video.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/psb_drv_video.c
0f58bd9727497db363668fb74af8b09a404283b0 29-Mar-2012 Fei Jiang <fei.jiang@intel.com> psb_video: dynamically support 1080p 60fps

BZ: 29113

By default 1080p/60fps clip display will use overlay/SurfaceTexture path dynamically like other clips.
If writing PSB_VIDEO_1080P_60FPS=texture to /etc/psbvideo.conf will force 1080p/60fps clip use SurfaceTexture path.

Change-Id: I8094871ef131884dbc94de68d0ea0fbef3397bb2
Reviewed-on: http://android.intel.com:8080/41752
Reviewed-by: Jiang, Fei <fei.jiang@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/psb_drv_video.c
5218326fef3ee99570e4c9d692d62872052ea219 11-Apr-2012 ttao1 <tao.q.tao@intel.com> widi: Add new flag, used_by_widi, to psb_surface_share_info_s.

BZ: 31003

Add flag used_by_widi into psb_surface_share_info_s structure.
psb_video sets the flag to be 0. HWC checks this flag, if the
flag is already set by widi, the native handle will not be used
for widi AVC encoder setup. HWC may still send the last native
handle even decoder relased the native buffers.

Change-Id: I2892f3a0bc6604422c6f5180d7cca4c3d65c08b1
Signed-off-by: ttao1 <tao.q.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/43023
Reviewed-by: Veeramani, Karthik <karthik.veeramani@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Tested-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
5f3de38f20083c7e9b40028fa5e4899f15f11ec0 06-Apr-2012 Jason Hu <jason.hu@intel.com> Optimize video performance specific for high bitrates stream.

BZ: 20854

Current buffer sync in decoder pipeline will block the video render thread
and cause serious frame drop in video framework. So move the video buffer sync
idle from libmix to hwc. That will remove blocking on pop up a output buffer
from OpenMax.

Change-Id: I016bb65ac5ec0f7c7a5056ab787419ca9dd218ed
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/42682
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/psb_drv_video.c
9f388f4488bba39eeac0c97ddaa6480362edf952 01-Apr-2012 Jason Hu <jason.hu@intel.com> force to use overlay for protected content video.

BZ: 29326

set force overlay flag for protected content in payload buffer.

Change-Id: I0dcc9f2f671662ed742a0489e5f6317529fab2fc
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/42049
Reviewed-by: Qiu, Junhai <junhai.qiu@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/psb_drv_video.c
a53f777035596f2f2228b1d689adbdebd192c144 22-Mar-2012 ttao1 <tao.q.tao@intel.com> Add kbuf handle list into surface payload for HWC

BZ: 28395

During video playback, HWC maps payload from native handle to get list
of kbuf handles for Widi setting up AVC encoder.

Change-Id: I5c2c2b4a31a4de44c7a08ec4afd9c8c2356c0f7a
Signed-off-by: ttao1 <tao.q.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/40269
Reviewed-by: Chowdhury, RajneeshX <rajneeshx.chowdhury@intel.com>
Reviewed-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: Poornachandran, Rajesh <rajesh.poornachandran@intel.com>
Reviewed-by: Verdu, Miguel <miguel.verdu@intel.com>
Tested-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
2ce4449fad0d9c41797472ac686cd39bef75ce81 29-Feb-2012 Miguel Verdu <miguel.verdu@intel.com> Check sync flag for rendering set by HWC

BZ: 25331

The Hardware Composer sets this new flag when it sends the
surface to render target (HDMI, overlay or WiDi)
It clears once the surface has been succesfully render.

This can be queried by decoder using vaQuerySurfacestatus

Change-Id: I1de3cfe51ee4f3842efb147e1212f5c541975a6d
Signed-off-by: Miguel Verdu <miguel.verdu@intel.com>
Reviewed-on: http://android.intel.com:8080/37266
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Tested-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
5e4b33b23680bc064b25d38086a13380d37bb8a4 27-Feb-2012 hding3 <haitao.ding@intel.com> [PORT FROM R2]VED: Fix thumbnail mess issue

BZ: 22882

Generating thumbnail while playback video, will see thumbnails mess, root cause is multiple decode and driver don't handle context value correctly

Modify context value to fix this issue

Change-Id: I1461df5e907cff0840745fdd129f2b1f5dcc98ff
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/36817
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.c
67612a448651896b2557796ff98d46c5e0dbbdc6 24-Feb-2012 hding3 <haitao.ding@intel.com> psb_video: Fix klocwork issue.

BZ: 23921

There are some critical klocwork issues in MRST code.
Considering Android ICS doesn't support MRST platform, removing MRST
files from makefile is safe and it will clear these klocwork issues and
also make a smaller library binary.

Change-Id: I75d285f1acadf5e589045b1c42229335716419d5
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/36498
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/psb_drv_video.c
fd593d43e5240c6fd47aba3e5d436e5930c031aa 06-Feb-2012 Jason Hu <jason.hu@intel.com> psb_video: don't create rotate buffers for encode context.

BZ: 22270

Change-Id: Ic7bb2766afe214d7a7ec170684c94bb3f50fac3a
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/34043
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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
a73cdfe9b0e42226ae91d2a3a94a17b2a3414646 12-Oct-2011 Ding Haitao <haitao.ding@intel.com> [PORT FROM R1] Video: Limit the number of active video encoding session to one.

BZ: 11752, 9346, 9936

11752:Camera app exit automatically during 1080p encoding after system first boot up.
9346:Streaming sometimes stop when you enter the gallery.
9936:Camera recorder quality is poor after receiving video file successful via Bluetooth OPP mode

Both bugs are caused by sending JPEG encoding commands to HW while HW is encoding video stream.
TopazSC HW only allow one encoding stream running at the same time.
So vaCreateConfig should return error if there already is a video encoding session.
Then middleware can detect this error and fallback to software patch.

Change-Id: If77d3efb35599a369b6dba16c71bbb02b5141084
Orig-Change-Id: Ia997c4020b294fe22223a5862b467daeeaa3e100
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/21095
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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
439ac7d8f5824cd50eeab72deda0dcbf9f2aedbf 13-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][psb_video] Video: revert MSVDX context id setting code change for PWN D0

BZ: 8995

Context id setting change breaks TOPAZ D0i3. Revert this modification.

Change-Id: Ie525580f9b3fa3fbd9078fcff84818861922360a
Orig-Change-Id: Ia0ac5cabe3ba4ac0a171bc3bc5eec0c5b0b4cf80
Signed-off-by: Binglin Chen <binglin.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/18335
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: Monnier, OlivierX <olivierx.monnier@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.c
ba9074356bbc4239c3141e40dcec806886de48d8 13-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][psb_video] Video: Enable PNW D0 video playback

BZ: 7486

* change conext id for each stream decoding
* update FW to 1313

NOTE:
FW name should be change to DE2.1

Change-Id: I61416d7a12587e088e23700175b2538ff7413d37
Orig-Change-Id: Ic2d0c85f8fe26da63dfb70ad2ebf54b8c310c4dc
Signed-off-by: Binglin Chen <binglin.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/18333
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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
242b3ae871185c4759e8c4276cf8f2f8c1a48357 02-Jun-2011 Kun Wang <kun.k.wang@intel.com> Video driver: The value of VADisplayAttribute type is incorrect

BZ: 2435, 2438, 2485, 2693

The value of some VADisplayAttribute type is incorrect via vaGetDisplayAttribute() function.

Added some types in psb__DisplayAttribute[]; Changed psb_GetDisplayAttributes() and psb_SetDisplayAttributes()

Change-Id: I4985249cc55af91eff5a0b6736d9c0fe4d1b2880
Orig-Change-Id: I2623ce9c90d4bfc37467cd9e5e6baac23b014cfd
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
e968fbfc452194dd51c12901ffa338c312a5e3c7 25-Aug-2010 Fei Jiang <fei.jiang@intel.com> Update video driver to version 0X00000033.
Re-enabled Gfx D0i3 by default in kernel driver, while disable Gfx D0i3 when encode.

Change-Id: I3293fd33b2a124f2e0d85b5c8e87b5957f4818d9
/hardware/intel/img/psb_video/src/psb_drv_video.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/psb_drv_video.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/psb_drv_video.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/psb_drv_video.c
7e8d39a9d261ff6b5256d7cf9c7a127947b2b2a5 17-Apr-2010 Fei,Jiang <fjiang4> Copy wind river video driver to ABSP for the first step, and there is some change to the header files include.

Change-Id: I31670ad211ab08d6477fd8acf31581eb3f559a84
/hardware/intel/img/psb_video/src/psb_drv_video.c