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

BZ: 209178

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

Change-Id: Ie1a05b5a92fa6666420f8fd7138bc9df0f6d5d42
Signed-off-by: root <root@feijiang-desktop.(none)>
Reviewed-on: https://android.intel.com/220814
Tested-by: Fourdan, Olivier <olivier.fourdan@intel.com>
Reviewed-by: Fourdan, Olivier <olivier.fourdan@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
919dea6b2625ea6e74e0f93819ffe874b2601b9a 20-Jul-2014 Thierry Strudel <thierry.strudel@intel.com> Fix relative path of included kernel header

BZ: 209178

Change-Id: I239cc7b2823c2a111596fafdaeabbb5287c5a47e
Signed-off-by: Thierry Strudel <thierry.strudel@intel.com>
Reviewed-on: https://android.intel.com/220106
Reviewed-by: Fert, Laurent <laurent.fert@intel.com>
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Tested-by: Imberton, Guilhem <guilhem.imberton@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.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_buffer.c
754cd5339e10013da6f7ff8e2b280851eade11ff 22-May-2014 Li Zeng <li.zeng@intel.com> video: surface buffer allocation from TT heap on MOFD

BZ: 193082

surface buffer allocation from TT heap on MOFD as GTT heap is enabled

Change-Id: I6c4bae136c8d6b269bacb02346fa1086e0449e62
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
f9b37afdf8d0bdc0c570ded077bf9f834cc74fc3 08-May-2014 Bolun <bolun.liu@intel.com> [PORT FROM MAIN]correct the RC mode setting in psb_video
Added workaround when vp8 encoder send out an empty coded frame.

BZ: 193452

1. change the default rcmode firmwre to CBR mode.
2. if app set vp8 encodet to VCM mode, set firmware to CBR_HRD mode.

when vsp vp8 encoder send out an empty coded frame.
1. set frame_size to 3.
2. set coded_buf to 00 00 00.

Change-Id: I31ee8a36e86b7bcbb46e0f403f1637d28d98904f
Signed-off-by: Bolun <bolun.liu@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
01f32633eef9438c9f3ceed244c25487b5274611 02-Apr-2014 edward lin <edward.lin@intel.com> fix 650 build warnings for VIDEO domain

BZ: 182614

modified the encoder part modification.

Change-Id: I966403901b6a22dc80238991866741585a686409
Signed-off-by: edward lin <edward.lin@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
bb1e9267a518cf047f09350dd3ec19932f923e74 10-Mar-2014 gji2 <guoliang.ji@intel.com> enable video encode 64bit in the psb_video

BZ: 178060

Refine the coded buf point move size.

Change-Id: Ib84a8a0d44e0b1596d425bce3c7b90bc29474a67
Signed-off-by: gji2 <guoliang.ji@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
74576871e9f7fd057cc270baccf5e0e11dd3265e 27-Feb-2014 Li Zeng <li.zeng@intel.com> Video: when there is tiling, allocate rotate buffer from tiling heap on MOFD

BZ: 169209

allocate rotate buffer from tiling heap for tiling rotated buffer for MOFD

Change-Id: I3518ac883d6c24955f619c51f078d5da4b927347
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
c1b2b79d09021bd55c39f38b8d08b4f17e65a18c 13-Feb-2014 Li Zeng <li.zeng@intel.com> video: not allocate TT buffer on MOFD

BZ: 169986

not allocate TT buffer on MOFD

Change-Id: Ie3511db100613d66d2f50ae5a741dd3312f08d3a
Signed-off-by: Li Zeng <li.zeng@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
aeee5382f933ef7b1aa54a0f12207fa3c9f6c89a 18-Nov-2013 Andy Qiu <junhai.qiu@intel.com> include ttm_placement.h header file explicitly

BZ: 152009

ttm_placement.h header file is now removed from psb_drm.h header file
so it needs to be included explicitly.

Change-Id: Ic75d80c7ca466a7561375b62f17fd65f933d76f4
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
1e6056363fa9a36f2014e9d0eb62f0bc4c7811d4 09-Sep-2013 Sun, Mingruo <mingruo.sun@intel.com> update VP8 encode driver to VIED 2.5 release

BZ: 137002

enable async encode mode
increase vp8 ref surface size
dump recon frame correctly
remove code about recon_buffer_mode=1

Change-Id: I3b08207178714c1537e92385f16fdc6815c64a29
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/132123
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_buffer.c
781d5d90f726d4d50151b5686348ce22f48937c7 03-Sep-2013 Li Zeng <li.zeng@intel.com> VED: allocate surface with cachable memory for raw-data mode

BZ: 130769

Allocate surface with cachable memory for raw-data mode to speed up CPU memory reading

Change-Id: I85f6fb5df447902211efc87b2dac8878e7c076c9
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/129423
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_buffer.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_buffer.c
20b931cf997abb618b4e74770cf71378e14494f4 09-Jul-2013 Sun, Mingruo <mingruo.sun@intel.com> update vp8 encoder driver to VIED2.3

BZ: 122096

remove ref_frame_buffers[4] from VssVp8encSequenceParameterBuffer
add Vss_Sys_Ref_Frame_COMMAND
add two rate control mode VA_RC_CBR and VA_RC_VBR
save ctx->frame_rate and bits_per_second in vsp_vp8_process_seqence_param
add saving vp8 output coded data for partitions not consecutive

Change-Id: Ib328e44d11f737955c5f1a996c3ab757412f7028
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/119454
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
4d0eeaef88c523ad9fdc0a82f815ef3d989e4e35 13-Jul-2013 Austin Yuan <shengquan.yuan@intel.com> Encode with IED enabled:increase the size of coded slice to including the padding bytes

BZ: 123356

Tangier IED encryption operates on the chunks with 16bytes, and we must include
the extra bytes beyond slice data as a whole chunk for decryption

Per IMG ticket 26132, topaz always outputs 16 byte aligned data. It pads it up to
16 bytes by inserting stuffing bytes depending on the standard being used.
This stuffing byte is 0xFF for MPEG4 and Ox00 for all other standards.

Need to handle it according to IED status (enable or disable), but from UC level,
IED is only enabled for DRM over WiDi and only uses H264 BP. So here simply includes
the padding for H264 BP always, regardless IED enabled or disabled

Change-Id: Ic5b7e03c1874aafbb73c560754485796a95ef712
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Reviewed-on: http://android.intel.com:8080/118880
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_buffer.c
591565b9a60b10365dd813a19c9d4b8ba44c970b 24-May-2013 Sun, Mingruo <mingruo.sun@intel.com> update vp8 user space driver to VIED 1.7 release

BZ: 106078

no API change on ver 1.7 from 1.6
just use vaCreateSurfaceWithAttribute with to create surface

Change-Id: I368b75e7232fb1ebc25564a6a6569c134e3d52ba
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/109873
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_buffer.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_buffer.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_buffer.c
5dded681fc06f6f765840c45a5e6d57cdf79e561 11-Mar-2013 edward lin <edward.lin@intel.com> [MRFLD-VIDEO] Enable dump reconstructed frames in va_encode for Merrifield Video Encoder

BZ: 88656

This patch enabled the transferring extra-buffer as thereference/reconstruction buffer, and return the buffer index to identify which buffer is the reconstruction buffer by reserved variable.

Change-Id: I1a24d6a762a45da5ef55bb384a379a73ce7c02e8
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/96083
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
eb4e7a2a0d7357995e994c50d2185f966d6f1985 25-Feb-2013 pingshix <pingx.shi@intel.com> [MRFLD-VIDEO] Enable two pipe kernel module for Merrifield Video Encoder

BZ: 88978

enable user-space to fit kernel space's change on this bug.

Change-Id: I6d4873b4e0cb9723b5ace895c7a00f4a038f02f9
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/93534
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
c7902b7f72b041c4f2317a9806505257a737d49b 30-Jan-2013 Li Zeng <li.zeng@intel.com> ved: enable memory tiling for CTP 1080p video playback

BZ: 80881

enable memory tiling for CTP 1080p video playback

Change-Id: Ie4406524594d407deae6e5a535379f03494ffffa
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/89970
Reviewed-by: Ma, Hongpeng <hongpeng.ma@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
ba4bbde36b64f076cfb1dd1783fe08e71a5fd671 28-Jan-2013 hding3 <haitao.ding@intel.com> Enable TWO pipe for Merrifield Video Encoder

BZ: 71956

add one flag TOPAZHP_PIPE_NUM to control the pvr lib using 2 pipe or 1 pipe.
add one function in psb_buffer.c to get the coded data from segment buffer

Change-Id: I04b9038e1b28b9a28475a15ae832f7ca536b82bd
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/88881
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_buffer.c
7bb84b457d5658da0c850ed13dff3d212af70771 06-Dec-2012 Edward Lin <edward.lin@intel.com> [PORT FROM MAIN][MRFLD_VIDEO] Enable video encode on VP with Merrifield video driver

BZ: 66906

Merged video encoder user-space part
Added fw/topazhp/Android.mk

Change-Id: I779ddb5f77d6cf75b13d6b2d077285247cd7d342
Signed-off-by: Edward Lin <edward.lin@intel.com>
Reviewed-on: http://android.intel.com:8080/82278
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_buffer.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_buffer.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_buffer.c
f0f865c2db20a7b794606f7532b2de7c04a893c7 05-Dec-2012 Elaine Wang <elaine.wang@intel.com> [PORT FROM MAIN]Checking coded buffer size before pass it to middleware

BZ: 72863

Observe random crash while playing video via widi extended mode.
It's very hard to reproduce. According to the log, it seems middlware
invoke memcpy with wrong buffer size.
log backtrace:
#00 pc 00020920 /system/lib/libc.so (memcpy+7392)
#01 pc 000091ff /system/lib/libva_videoencoder.so (VideoEncoderAVC::getOutput(VideoEncOutputBuffer*)+383)

Change-Id: I0aca9454ad4f8806b297a633743ec077897b3500
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/81249
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_buffer.c
f69cb8fcb72989fcef10484c3f5cbd16db9789d1 20-Nov-2012 Elaine Wang <elaine.wang@intel.com> [PORT FROM MAIN] Fix virtual memory leaks of VAExternalMemoryKernelDRMBufffer

BZ: 67733

Perform the following actions and find the mapped buffer isn't
released in process virtual memory
1. vaSurfaceAttrib->type = VAExternalMemoryKernelDRMBufffer;
vaSurfaceAttrib->... = ...;
vaCreateSurfacesWithAttribute(...); // done with one surface at a time
2. vaDeriveImage(...);
3. vaMapBuffer(..., ..., &dataBuffer);
4. vaUnmapBuffer(...);
5. vaDestroyImage(...);
6. vaDestroySurfaces(...); // also done with one surface at a time
7. Cat /proc/xxx/maps and still see mapped memory space

It's caused by the wrong status of the surface buffer, which should
be psb_bs_ready.

Change-Id: I1814700a27f892740ac6eeafa06ae21e8ecbe663
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/76779
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
f848388b2f173b141fe2e375a07b4f17435ca814 27-Nov-2012 wfeng6 <wei.feng@intel.com> [PORT FROM MAIN] psb-video: fix compiling issue when bionic psb_drm.h is updated

BZ: 69216

Need remove TTM_PL_CI in psb-video, which has been removed in kernel psb_drm.h.
Signed-off-by: wfeng6 <wei.feng@intel.com>

Change-Id: I576e4dba9a9b4a8f66992631fb32b5d1d71a2c05
Reviewed-on: http://android.intel.com:8080/76494
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.c
1dec8be53962e939debd8d4a1d49d659898520c4 11-Oct-2012 hding3 <haitao.ding@intel.com> Fix the map issue if the surface is created from use buffers.

BZ: 61749

Return use mode pointer directly if the surface/buffer is created
from use mode buffers

Change-Id: Id19d6aa89a3efca8273a2f31bb05b917803ccb2f
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/69755
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_buffer.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_buffer.c
cc2673c315517dd5a4bd294fb8707cf40c0d2088 19-Sep-2012 Fei Jiang <fei.jiang@intel.com> kernel-drm: refine video driver decode/encode common code

BZ: 58132

Correct PSB_ENGINE_VIDEO to PSB_ENGINE_DECODE.
Signed-off-by: Fei Jiang <fei.jiang@intel.com>

Change-Id: I62a369103031c329e29c390d9070be7ef17f097a
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/67180
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Guo, Nana N <nana.n.guo@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
38d89d625f11c0c3f0ff313cef450252e6467baf 17-Sep-2012 hding3 <haitao.ding@intel.com> Merged the latest Merrifield video encoder code here, and fixed some compiling error

BZ: 57543

fix some compile error to make psb-video can pass compile both android and linux development env.
#MFLD part.

Change-Id: I45f10c52d75c0b429f78b5d0fe21c2d8898a2815
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/66662
Reviewed-by: Zeng, Li <li.zeng@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_buffer.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_buffer.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_buffer.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_buffer.c
5ed159b49cff6b05d923bcf00d09c67ee2ce1f80 15-Jul-2012 hding3 <haitao.ding@intel.com> psb-video code checkin for below BZ fixing.

BZ: 46156 46985 37563 45878 44851 45455

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

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

Change-Id: Id4ee76ae2a9d8e35c0da68dbb1767325c7064b26
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: msun9 <mingruo.sun@intel.com>
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/59861
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.c
d03b75a0bb7d76d8d05509f5b581ab3b5d36a20d 13-Jul-2012 Xiaolin Zhang <xiaolin.zhang@intel.com> fixed the JB compileration error.

BZ: 47236

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

Change-Id: I924f7fd4d794ee6dff5ba09d894f3cdc5759d3df
Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/56587
Reviewed-by: Beare, Bruce J <bruce.j.beare@intel.com>
/hardware/intel/img/psb_video/src/psb_buffer.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_buffer.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_buffer.c
fe2118793f5ae0b13844ba7bb5b4dc9ddcd4f450 12-Jun-2012 Elaine Wang <elaine.wang@intel.com> Set UNCACHED flag to user buffer.

BZ: 37816

Video encoder takes more time to return from encode() call when tapping screen in widi ext mode.

The surfaces that are only access by VXE, VXD and GFX, should be UNCACHED buffer for better performance.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Org-Change-Id: Ibd8f9c4510cc37ed8a4c47618b7cc317a00a1a38
Change-Id: I1a5e12d82803b6dba95cf713d4d9dfc516a909ed
Reviewed-on: http://android.intel.com:8080/52424
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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.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_buffer.c