History log of /hardware/intel/img/psb_video/src/vsp_vp8.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fe436fee778fb0470d1d07150a8150eb38232533 15-Dec-2014 hding3 <haitao.ding@intel.com> Fix VP8 encoder realted CTS issue .

Bug: 18670741

Change-Id: If2e3c934a575a90583c53db3f9d734c2998558fa
Signed-off-by: hding3 <haitao.ding@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.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/vsp_vp8.c
b35344f5c0b8568df0630efe9fce076e810de8d3 10-Oct-2014 ywan171 <yi.a.wang@intel.com> add vsp vp8 encoder into build

Bug: 17783054
BZ: 225951

Change-Id: Ic0883ff983c2b34ac7c7c104ce312d5bf33bf405
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.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/vsp_vp8.c
4457eceae6652c2336b5a1440b846456cd0b455c 28-Apr-2014 Sun, Mingruo <mingruo.sun@intel.com> Update VSP driver to 2.19 release

BZ: 193134

Temporal layer settings are not required on 2.19 FW.

Change-Id: Ieeda5e80afcd2fb5e2bdf5b77bbe143ca584f985
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
94e440a7f8f0938610d62f01fa49f9d7c4e3feec 21-Apr-2014 zhangzha <zhangfei.zhang@intel.com> Setting bitrate for separate temporal layer.

BZ: 189372

Setting bitrate for separate temporal layer.

Change-Id: Iba6b26a667fa66df84897f78cd22b5dfbaa36361
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
24107ab13ea6d8feb3ff73ab64366793b465ff07 20-Apr-2014 zhangzha <zhangfei.zhang@intel.com> Removed hard code for temporal layer setting.

BZ: 189356

Removed hard code for temporal layer setting.

Change-Id: I2c6aa0f6577982075d49ee001cb1096744c257d4
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
daf2d4ff530a3c8ad9f789d5cceeccaf63825965 17-Apr-2014 Sun, Mingruo <mingruo.sun@intel.com> dump VP8 encode interface command data for debug use

BZ: 188866

dump VP8 encode interface command data

Change-Id: Idf7be722c2d012397225fd4b4af4d7f86b1e63c2
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
768afffeffa1b5e3e51534d26a6472e7e8d257bd 18-Apr-2014 Sun, Mingruo <mingruo.sun@intel.com> Init temporal layer setting for SAND

BZ: 188608

Init temporal layer setting for SAND

Change-Id: I10c1e5d05d026660bd727c53c70b8ea1f1fe12fa
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
16752f679f82f92454ac160f0457be83e0fa4b77 04-Apr-2014 zhangzha <zhangfei.zhang@intel.com> Added misc parameter for ts layer structure.

BZ: 143986

Added misc parameter for ts layer structure.

Change-Id: Id7fcebdb5d835430ddec9aa90bfc2b54f3c59afc
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.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/vsp_vp8.c
233384d7e88c1295775705f074fbe3fd2e57ff35 19-Feb-2014 zhangzha <zhangfei.zhang@intel.com> add new parameters for temporal_layer.

BZ: 172539

1. added five parameters for temporal layers;
2. refined codes.

Change-Id: Ia4e5196b3e9bae4b5ab13559733386ec42f35d84
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
6e762d8b43b8a9cf3b7111877d9dc9579a9170af 22-Jan-2014 Sun, Mingruo <mingruo.sun@intel.com> refine vp8 encode driver

BZ: 166007 164804

calculate max_intra_rate with max_frame_size
stop sending commands to firmware if driver have timeout issue

Change-Id: Ib390484193c8b66b91a095bb7516e9347db52d90
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
8f868258b5396c3d39dd33f2d05a829ff855aa0d 15-Jan-2014 Sun, Mingruo <mingruo.sun@intel.com> refine VP8 encode driver

BZ: 164804

Stop sending commands to firmware once kernel driver has timeout issue

Change-Id: I2c6111cd76de8f2091011d8fabe84a3d497ec316
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.c
8e4350a9cffb5ff22e7685c91523199b5d4ddf43 06-Jan-2014 zhangzha <zhangfei.zhang@intel.com> refine vp8 encoder setting.

BZ: 162278

refine vp8 encoder setting.

Change-Id: I8357c87352dbdcf00bf2819034797d3daa696426
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
/hardware/intel/img/psb_video/src/vsp_vp8.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/vsp_vp8.c
19fc7221d7f03f50d8508136ed306c6fb905f03c 23-Sep-2013 Sun, Mingruo <mingruo.sun@intel.com> update VP8 encode driver to VIED 2.6

BZ: 140194

1. set VP8_ENC_CBR=0 and VP8_ENC_CBR_HRD=1
2. remove hard code

Change-Id: I40fb9392988fa77f2d9e9bc1a01d257efaea1850
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/134062
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/vsp_vp8.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/vsp_vp8.c
ac309081b871fae9abf0c2c6827979ec83b09cf3 13-Aug-2013 hding3 <haitao.ding@intel.com> Fix two kw issues for vsp_vp8.c

BZ: 130246

fix below two issues
1. Suspicious dereference of pointer 'ref_surf' before NULL check at line 321
2. Pointer 'ref_surf' returned from call to function 'object_heap_lookup' at line 319 may be NULL and will be dereferenced at line 320.

Change-Id: I0db6379404cb0c54379f6fcc26fb88089726df7d
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/125105
Reviewed-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/vsp_vp8.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/vsp_vp8.c
115592518cc10686777609f874b567201a108d06 22-Jul-2013 zhangzha <zhangfei.zhang@intel.com> added function: vsp vp8 tiled formart -> NV12 convertion.

BZ: 124969

added function: vsp vp8 tiled formart -> NV12 convertion.

Change-Id: Ia1f87d2932a5292737f296c743035a3447a1984b
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/120486
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/vsp_vp8.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/vsp_vp8.c
5edcdaae5ef783c1f711f69da4ab47be30f4289b 16-Jul-2013 zhangzha <zhangfei.zhang@intel.com> fixed kw issue.

BZ: 123464

removed the related codes.

Change-Id: I320f3831df6ccacd6b9da082912158b79808e787
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/119355
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/vsp_vp8.c
4dadd5529a552fd10d5f270b8423bee758c42fc5 19-Jun-2013 zhangzha <zhangfei.zhang@intel.com> Add dynamic rate control/intra_refresh support.

BZ: 114965

1. add two functions: vsp_vp8_process_misc_param and vsp_vp8_process_dynamic_seqence_param.
2. these two functions will handle the following va_misc_params:
VAEncMiscParameterTypeMaxFrameSize
VAEncMiscParameterTypeAIR
VAEncMiscParameterTypeRateControl
VAEncMiscParameterTypeFrameRate
3. add VAConfigAttribRateControl values.

Change-Id: Idfb369f6a711651f4c2ec692f437a926fd9f88e6
Signed-off-by: zhangzha <zhangfei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/115745
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/vsp_vp8.c
8672be7b10df4af6bd6e0902f6588ab4f7599176 19-Jun-2013 Sun, Mingruo <mingruo.sun@intel.com> set context_id=1 for vp8 enc to support context switch with VPP

BZ: 117413

set context_id=1 and then pass its value to firmware

Change-Id: I300babdf7104171d34617714a4626c3b571de035
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/115746
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/vsp_vp8.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/vsp_vp8.c
9ab46f9986463a0a5e6ba912fffb71be24d119d9 13-May-2013 Sun, Mingruo <mingruo.sun@intel.com> Refine vp8 encode user space driver

BZ: 107457

remove hard code and unused code in vp8 encode driver

Change-Id: I6dff586e471ddc9e99f0ac449c0a9623d43c4bb2
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/107721
Reviewed-by: Ding, Haitao <haitao.ding@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/vsp_vp8.c
de74d37a8fb1eef75af159f486a52b419f9d3a00 28-Apr-2013 Sun, Mingruo <mingruo.sun@intel.com> update VSP VP8 encode driver to VIED 1.6 release

BZ: 101933

update VSP VP8 encode driver to VIED 1.6 release

Change-Id: Ib735c73e7de7a2a1b07082921b70d49e550053dd
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/106252
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/vsp_vp8.c
0b79338c7b34af6f2baade29264bcf27cab80e83 03-May-2013 Wang Kun <kun.k.wang@intel.com> Fix the VSP clock work issues.

BZ: 105405

Fix the VSP clock work issues.

Change-Id: Ib2215bcdf644162dadaa17be9f228fc8a0412a77
Signed-off-by: Wang Kun <kun.k.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/106250
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/vsp_vp8.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/vsp_vp8.c