History log of /hardware/intel/img/psb_video/src/pnw_jpeg.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_jpeg.c
6c842d5ac51255092fc506a11e9795aa74c5c478 01-Aug-2013 Elaine Wang <elaine.wang@intel.com> JPEG: revert a wrong patch

BZ: 128774

When this patch was ported from R2 to R3, it was applied twice by
mistake and sometimes caused corruption in JPEG encoding.

Change-Id: I24d10f8f56913a83dba128de1c34e5198990f01e
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/122112
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/img/psb_video/src/pnw_jpeg.c
578d2ad7e1ef903d817be99a1aac92bd68b5ee53 26-Jun-2013 SUN,Jing <jing.a.sun@intel.com> Ported JPEG encoding drivers to the updated LibVA interfaces.

BZ: 119038

Issue: LibVA's JPEG encoding's interfaces had been updated.

Solution: Updated JPEG encoding drivers based on that.

Change-Id: I18bd67de9cf2fc717356703841545948b9d0f500
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/115725
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_jpeg.c
4985c4c7c4894dc1feb6b8d678e2f9b9d2f05543 07-Jun-2013 SUN,Jing <jing.a.sun@intel.com> Fixed JPEG encoding's quality setting taking no effect issue.

BZ: 111102

Issue: JPEG encoding's quality setting can't take any effect,
which was a regression issue caused by Patch 108062's typo.

Solution: Corrected its typo and the issue was fixed.

Change-Id: I03404f976904f7c6b272b0590a1337655620749d
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/112287
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_jpeg.c
bd16679767c401f15c980db157057d9458db8f06 16-May-2013 Elaine Wang <elaine.wang@intel.com> Filter out the zero values in QMatrixBuffer

BZ: 107740

Zero values will cause JPEG firmware timeout. So only allow user
to set none zero value to lum/chroma quantizer table.

Change-Id: I36f9b0dfc25ef36dc2062952c48b91d011cfc8ff
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/108062
Reviewed-by: cactus <cactus@intel.com>
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/pnw_jpeg.c
9bce84b451a52a186f4d3ea81f51225629a2287f 03-May-2013 SUN,Jing <jing.a.sun@intel.com> KW issue fix for a former patch "Balanced JPEG encoding's workloads which needed4 encode commands to 2-cores."

BZ: 103044

Issue: the patch for BZ 103044 solved it, but induced a KW issue.

Solution: fixed that potential buffer overrun issue found by KW.

Change-Id: I9ddff341726c8443fe294b785e9c45309ce51840
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/105941
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_jpeg.c
203fb45de1ddd2df6cbb12102adba4e2e77b727e 23-Apr-2013 SUN,Jing <jing.a.sun@intel.com> Balanced JPEG encoding's workloads which needed
4 encode commands to 2-cores.

BZ: 103044

Issue: The current core sequence being used was:
1# -> 0# -> 0# -> 0#. Only the first 2 jobs were
in parallel, the last 2 were run sequentially.

Solution: Changed it to 1# -> 0# -> 1# -> 0#. In
that way, 4 encoding jobs were best balanced and
executed in parallel. 15MP core encoding cost-time
was improved from 125ms to 91 ms by that.

Change-Id: I38c5a743b5ec196beb8d1a1f1d41370f7c1259b6
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/104254
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_jpeg.c
1310b1bf5d83c3ca7010ef491067cd79e4af448d 20-Mar-2013 SUN,Jing <jing.a.sun@intel.com> Worked around the issue that some JPEG decoders didn't
support parsing fill bytes before the EOI marker.

BZ: 94421

Issue: fill bytes (0xFF) before a marker were allowed
according to JPEG standard. JPEG HW encoder appended
fill bytes to the end of each coded segments automatically
for alignment. But some JPEG decoders/viewers didn't
support that and might prompt errors when encountering them.

Solution: Worked it around by removing fill bytes before EOI.

Change-Id: Ib426a65d1414b90d3d97a6810c5d1439d19e1e6d
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/97473
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Chen, Lei A <lei.a.chen@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_jpeg.c
c79caccb602f74ef23c5b82d194bf005a7009551 12-Mar-2013 SUN,Jing <jing.a.sun@intel.com> JPEG Encode Drivers' Quantization Table dumping
code needs to be improved for logcat.

BZ: 92192

Issue: Since logcat always adds a '\n' to the
end of every item of message, the current dumping
code outputs Quantization Table, which are two 8*8
tables, in an ugly format in the case that they are
dumped to logcat.

Solution: So both CTP's and MERR's JPEG Encode
Drivers' Quantization Table dumping code needs to
be improved to make the dumped info easier to read
if to logcat.

Change-Id: I81709242b7fda3fd7bf9ce898683b218ca267d06
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/96079
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_jpeg.c
3c3026ce2dadc43cf23137ca55a2461af4e27b7f 06-Feb-2013 pingshix <pingx.shi@intel.com> Enable JPEG HW encoder's IYUV source format support

BZ: 84972

Issue: NV12 costs more power to get than IYUV does from Camera ISP's
point of view,
while each's cost from JPEG HW encoder's point of view is at the same
level.

Solution: Adding IYUV support to JPEG HW encoder.

Change-Id: If7edf4073d2a295e3fbfe5ab9b34cd5c27d88fb3
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
Signed-off-by: SUN,Jing <jing.a.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/90481
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Lin, Edward <edward.lin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/img/psb_video/src/pnw_jpeg.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_jpeg.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/pnw_jpeg.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_jpeg.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_jpeg.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/pnw_jpeg.c
ce48ad222fbb9f0c3b47b2b663694afde6180d3f 06-Feb-2012 hding3 <haitao.ding@intel.com> [PORT FROM R2]JPEG: Change header structure to comply with Spec.

BZ: 17869

There should be no padding between respective JPEG Markers.

Change-Id: I2e5da59fcf1e86e664b58aa24b2592233c9acbc0
Orig-Change-Id: I14e9f67d71d95060a5837ffedfb2770312f1e75f
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/33994
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_jpeg.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_jpeg.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_jpeg.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_jpeg.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_jpeg.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/pnw_jpeg.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/pnw_jpeg.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_jpeg.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_jpeg.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_jpeg.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_jpeg.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_jpeg.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_jpeg.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_jpeg.c