History log of /hardware/intel/img/psb_video/src/pnw_hostcode.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/pnw_hostcode.c
ca233809072f8567ebde25af27e2405608dda7ff 11-Jul-2013 Elaine Wang <elaine.wang@intel.com> Encode: Support setting num_unit_in_tick and time_scale

BZ: 121092

Support setting num_unit_in_tick and time_scale in H264 SPS VUI header
If num_unit_in_tick or time_scale is zero, video driver will
set num_unit_in_tick to 1 and time_scale to 2 * framerate.

Change-Id: I7aaf952b04967a5b2417d8d227d74366fb0af8d3
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: Karthik Veeramani <karthik.veeramani@intel.com>
Reviewed-on: http://android.intel.com:8080/118595
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
0884d56511a0450d08dcd0fb4adca1754ab66d76 18-Jun-2013 Elaine Wang <elaine.wang@intel.com> [PORT FROM R42S]Encoder: Support for dynamic Min QP change

BZ: 116990

It's a request from TW. They need libva to support dynamic
Min QP change. Then WiDi can set a bigger min QP for I frame to
reduce the I frame size.
Note: The min QP can't be zero if it's changing dyanmically.
Also correct the cpb intial level and delay when window size
is changed.
Refined the RC parameter calculation in VCM mode. With this change,
the resulted average bitrate will be closed to target one. It used to
be 90% of target bitate.

Change-Id: I441deebecd8a9e95dbdb5fb0a2a16e6487743c3c
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/115496
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
a47683a8d7fdb8387bc5ac032d8419ceab0e9aeb 24-Apr-2013 Liu, Bolun <bolun.liu@intel.com> Modify MinQP from 2 to 4 for H263 codec.

BZ: 100853

It is IMG issue that the first AC coefficients is too big to be encoded
under some special circumstances.
This is just workaround to avoid this issue.

Change-Id: I41b386e139b78846e7678bcab76760455b3684a9
Signed-off-by: Liu, Bolun <bolun.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/104294
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: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
de544cc003301c73bea912022f0d8f9295a278f2 10-Apr-2013 Elaine Wang <elaine.wang@intel.com> Fix encoder crash issue with dynamic intra period

BZ: 87101

The crash is caused by driver trying to update the
rate control parameters in 2nd core's PIC_PARAMS.
With slice number set to 1, there isn't PIC_PARAMS
of 2nd core and no need to update its rate control
parameters.

Change-Id: I1ea361d018d9859afdd6d73fe1deea8ae9f2ddda
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/100808
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/pnw_hostcode.c
e6da98f5ac1372fe4af4eef50115654b3ce6ef6f 24-Dec-2012 hding3 <haitao.ding@intel.com> Encoder: fix vcm tearing issue

BZ: 75730

The old VCM firmware uses P macroblock skipping when the averate
bitrate or slice size trend to exceed the target one. Port new DDKv435
to change the behavior, which will use high QP to encode macroblock
instead of skipping them.

Change-Id: If9770983038971158935fa04ded520fa89b884e5
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/83597
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.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/pnw_hostcode.c
cc1d39bd855e16d86c44af75a09eb40cba4c9963 06-Dec-2012 hding3 <haitao.ding@intel.com> [PORT FROM MAIN]Remove bitstuffing disable flag and add CBR flag for VCM mode

BZ:73089

Compared to the encoded clip from DDK, the QP isn't changing on P frames of
clip encoded in VCM mode on CTP. Correct the flags according to DDK code.

Change-Id: I616ab88d4b3eb6ca9f833c1603992aa5fdfe4f23
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/81248
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
1d811fe90c2c081bace158571af380706b993d26 26-Nov-2012 Elaine Wang <elaine.wang@intel.com> [PORT FROM MAIN] Encoder: Cope with wrong target bitrate

BZ: 67609

The exported video is messy when trimming the beginning and end of the video.
This bug can be reproduce when use 50M as target bitrate and 5 as frame rate.
It violates ITU-T Rec. H.264 (03/2005) A.3.1. Video driver didn't cope with
this case correctly and caused wrong initial QP. To fix this, video driver
force the bitrate to be under the limitation.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: If0b906544edc78ada54a26c6049c3c07f30cc41d
Reviewed-on: http://android.intel.com:8080/80443
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
06058f8a842eeb32b8629a5fc06489f6ec9ee7a9 02-Nov-2012 Elaine Wang <elaine.wang@intel.com> Check bunit size before use it as a divisor

BZ: 65805

App might send a wrong basic unit size, which could be very
unreasonable. Video driver should check basic unit size carefully
before use it in rate control functions.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: Ia3425372017c77f1600833779a18cfdb537dcc6e
Reviewed-on: http://android.intel.com:8080/72496
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
176e0a50d1dc1d3cc1ea7fc456007a1816fee7fc 05-Sep-2012 hding3 <haitao.ding@intel.com> [PSB-VIDEO] Port TopazSCDDKv424 and Update the rate control parameters in a more effcient way.

BZ: 53505

With the new version firmware v424, video qaulity is improved in
fast chaning scenes. It also fix following problems:
1. See grey I frame while changing intra period on a new GOP without
disabling frame skip in CBR/VBR mode.
2. Macroblocking/pixelization on quick scene change clip
3. WR of issue BRN38292 that VXE285 (H263 pdump) failed when run together with VXD391

Change-Id: Ia796c5f28c9b826d83c492846a95475ff325db28
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/64516
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
6d37ae34fcae80f2e898b61e2506ed8e887bd16a 17-Oct-2012 nguo <nana.n.guo@intel.com> psb-video: refine video driver code for error check

BZ: 62498

define macro to make readable

Change-Id: I7b18e8f48db1565bf23595a303c85c18f26ec85b
Signed-off-by: nguo <nana.n.guo@intel.com>
Reviewed-on: http://android.intel.com:8080/70537
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
71b1808f0df8bb656c45f3282042ccc4bc98a154 17-Sep-2012 hding3 <haitao.ding@intel.com> Set minqp to 2 in H263 encoding.

BZ: 55358

The particular macroblocks this occurs on have a sharp white to black transition,
and the coefficients generated by the forward DCT on intra blocks are large.
With the QP of 1 being used, after quantization the first AC coefficient is
still larger then H263 can encode. So the h/w is clipping the coefficient to
the maximum value allowed by H263. Specifically, the first AC coeff is 227
after quantization, but is being clipped to range +/-127. That's why visual
artifacts are seen. Set minqp to 2 as WR. IMG will continue to look into this
issue and find a way to fix it in encoder firmware.

Change-Id: If4f057a52e298c2224e9f37e1a49faa1aeecb0dd
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/66640
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
29781ffb2cbf9fb72df9fc538c537690c3dd7cab 08-Aug-2012 Guoliang Ji <guoliang.ji@intel.com> delete the unused variable and address some memory leak issue

BZ: 51416

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

Change-Id: Id2240e5a027977ed74ffb172c51a07cf0ee971cc
Signed-off-by: Guoliang Ji <guoliang.ji@intel.com>
Reviewed-on: http://android.intel.com:8080/61670
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.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/pnw_hostcode.c
fa5187172318915e6a7f4b766267c5582b2e182b 25-Jul-2012 Elaine Wang <elaine.wang@intel.com> Tuning MinQP and initial QP calculation function.

BZ: 47812 44763

For low bitrate encoding, reduce the initial QP and
increase MinQP a little to improve quality. This patch also
fixes BZ44763. The PSNR of video content in
1080p2_848x480_low_1000Kbps.mp4 increased from 39.70 to 39.81
with same encoding parameter(bitrate, intracnt, framerate).

Encoder use high QP to keep bitrate under the tagert one,
while scence changes quickly with QVGA 128K encoding, the video
will be blur. This phenomenon is expected, not a bug. The other
Baseline encoders on reference phones behave in the same way.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: I63dee5f6aa6734bd3799258b69b4495f10e3eb90
Reviewed-on: http://android.intel.com:8080/61657
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
5ed159b49cff6b05d923bcf00d09c67ee2ce1f80 15-Jul-2012 hding3 <haitao.ding@intel.com> psb-video code checkin for below BZ fixing.

BZ: 46156 46985 37563 45878 44851 45455

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

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

Change-Id: Id4ee76ae2a9d8e35c0da68dbb1767325c7064b26
Signed-off-by: edward lin <edward.lin@intel.com>
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: msun9 <mingruo.sun@intel.com>
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/59861
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
1bdc5491b9efa0d2b6818bb05f23ab5c12fc9a3f 26-Jun-2012 Elaine Wang <elaine.wang@intel.com> Disable scanning intra macroblock refreshment in encoding.

BZ: 42460

Vertical line sweeps the video.

Scanning intra macroblock refreshment cause a visible vertical line
while browse pictures in WiDi clone mode, due to the different image quality.
Org-Change-Id: I4c333af05f798381458f189ecae1d1f1eecb24d3
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: If48e87bedb6e6608ef5eeed6a6beede5fc95e17a
Reviewed-on: http://android.intel.com:8080/54075
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
f31d5416a60f83e184b0906a7ec77ba021840531 11-Jun-2012 hding3 <haitao.ding@intel.com> porting MRFL branch to ICS mainline

BZ: 35390

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

Change-Id: I77b60e88fdda5ad8166a6578fac99b4523c5a29c
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/52337
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
7f145b934434c14dd2603e50b28e0264c05bdb68 24-May-2012 Elaine Wang <elaine.wang@intel.com> [PORT FROM R3] Set a lower QP for CBR mode.

BZ: 33565

video corruption in Extended mode

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: I8f8ec0d26d6cbdefca5c1b096233bd16526d16ef
Reviewed-on: http://android.intel.com:8080/50020
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
c60d5b7bdb5616ca37e0b912c10725bec4320f33 13-May-2012 Fei Jiang <fei.jiang@intel.com> psb-video: refine video driver debug/trace function

BZ: 36116

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

Change-Id: Icd2789522deca6e7b2469547d10a11b815636e8f
Reviewed-on: http://android.intel.com:8080/48610
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
821693d7fddd36860666646a0b5da71585060f0a 28-Apr-2012 hding3 <haitao.ding@intel.com> Port TopazSC firmware version 385

BZ: 33634

Encoder produces some very large I-frames. DDKv385 implements macroblock scanning refreshment, which made I frame smaller, especailly with still video content, i.e. GUI.
so Update the TopazSC firmware files to version 385 and use a new binary license.

Change-Id: I0507b0d8a4859906e128fb09766d875fa19c793d
Reviewed-on: http://android.intel.com:8080/46650
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
751400dde1eac64dd41c7de33fcddf8a939e4ab2 20-Jan-2012 hding3 <haitao.ding@intel.com> psb_video: porting patches from R2 to R3 for psb_video

BZ: 20870,19404,15626

Patch porting from R2 to R3 for psb_video

Change-Id: I152c61118e9945181f0f70a85d87528a04b432c2
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/32630
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
26d4f5dbb551f602dfc7ce4cea8ff402744da210 10-Jan-2012 Elaine Wang <elaine.wang@intel.com> Port TopazSC DDKv245.

BZ: 15834

Fix the bug that cause the bitrate changes strangely after encoding more than 12000 frames.
Must update TopazSC firmware to version 245 to work with this patch.
Otherwise, video encoding won't work.
Signed-off-by: repo sync <elaine.wang@intel.com>

Change-Id: Ib894f44cc57701a085527dc26f437c3e0170eb02
Reviewed-on: http://android.intel.com:8080/31317
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Chang, Ying <ying.chang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
fa6f2e9012a890942a47eae9f6f1a0ddcd97e9a4 18-Dec-2011 Fei Jiang <fei.jiang@intel.com> video: enable ICS graphic buffer decoding and rendering.

BZ: 18370

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

Change-Id: I06c5746c22b94c46fb0e7194c554c9d798743ff5
Reviewed-on: http://android.intel.com:8080/28068
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
053a1f4a053e68b9d635ce58bdc1dec4470b5e22 09-Nov-2011 Elaine Wang <elaine.wang@intel.com> Correct cbr_flag in VCM mode.

BZ: 13997

cbr_flag is not set correctly in hrd_parameter() for VCM.

Also implement disabling frame skip and bit stuffing in rate control mode.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: I1b7aae1a177e8a01ca7d4423b26b1dddb8db5358
Reviewed-on: http://android.intel.com:8080/23683
Reviewed-by: Tao, Tao Q <tao.q.tao@intel.com>
Reviewed-by: Wang, Kun K <kun.k.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
680952832ef474a95bb0c4fee50c06e5126ad66d 03-Nov-2011 Kun Wang <kun.k.wang@intel.com> Video: ww45.4 Port the local psb-video and libva changes to MFLD Android.

BZ: 13645, 13068

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

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

BZ: 12552

Remove trailing space, and codying style refine

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

BZ: 11225, 11226

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

Change-Id: If76829fed5169efe080bf4043c4cac855a3f75dc
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/21909
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
f91c8768670386683a281cc39141e21bdda9c97f 08-Aug-2011 Kun Wang <kun.k.wang@intel.com> Video: Porting the local psb-video codes to MFLD Android

BZ: 6825

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

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

BZ: 5276, 5562

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

Change-Id: Ie355af95c1af9bae96d2eae8a1ce7f6c8a6be501
Signed-off-by: Kun Wang <kun.k.wang@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.c
bde3ed7517cc876cb2a6e174ea2a96a75938e787 18-Apr-2011 Kun Wang <kun.k.wang@intel.com> Video: Port the latest video psb_video library to MFLD Gingerbread. -BZ1229

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

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

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

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

Change-Id: I41ca5c27a819895ef3c0eed529b84edca0f1fa24
Signed-off-by: Liu, Shuo <shuo.liu@intel.com>
/hardware/intel/img/psb_video/src/pnw_hostcode.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/pnw_hostcode.c
643778eb83b8dfe3bbf433855b311d4fefa95e21 10-Sep-2010 Fei Jiang <fei.jiang@intel.com> Update video driver to tag ww37.5_android.
Implement cisco's new requirement: dynamic bit rate control and IDR request.

Change-Id: I99ed1444fe0cc0f293eb3499574fc9c18d33030a
/hardware/intel/img/psb_video/src/pnw_hostcode.c
2befccec034c13d34746a9e87149889d59ac767b 23-Aug-2010 Fei Jiang <fei.jiang@intel.com> Porting psb-video code change from Eclair.

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

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