summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* va: add new ABGR/XBGR fourcc codes.staging-rebasedVictor Ying2013-08-271-0/+2
| | | | | | | | | Add VA_FOURCC_ABGR and its companion VA_FOURCC_XBGR definition. This represents a packed RGB format with 32 bpp, i.e. 8-bit per component. The components order in memory is A B G R. Signed-off-by: Victor Ying <victor.ying@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
* jpeg: include <va/va_dec_jpeg.h> into core VA header.staging-rebased-20130827Gwenole Beauchesne2013-08-271-0/+2
| | | | | Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> (cherry picked from commit de2df795a918d59140a737c1f364b6ba03f4272f)
* vaimage: extend VAImage to support 4 planesAustin Yuan2013-08-271-1/+7
| | | | | Change-Id: I1090f6cb4934cefd4f730e080e5f22ae17f51903 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* libva: change the types of all fields in VABoolCoderContextVPXTianmi Chen2013-08-271-3/+3
| | | | | | | | | | BZ: 120268 Change the types of all fields in VABoolCoderContextVPX to "unsigned char" to avoid potential bugs. Change-Id: I483f115080cefe45ae49503ff5737c7dfff305a8 Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
* va.h: move the parameter of VP8 encoding into misc data structureAustin Yuan2013-08-271-1/+18
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* vatrace: check the pointer against NULL before using itXiang, Haihao2013-08-271-8/+9
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* vatrace: dump the right parameters for VP8 encodeXiang, Haihao2013-08-271-37/+37
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* vatrace: Initialize the local variable 'i'Xiang, Haihao2013-08-271-1/+1
| | | | | | Otherwise the variable is used without being initialized. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Enhance LIBVA_TRACE to dump SPS/PPS/ for VP8 encode.Liu Bolun2013-08-271-0/+174
| | | | | | | Enhance LIBVA_TRACE tool to dump VP8 encode related parameters based on the new libva interface. Change-Id: I2c731761bb180061e18dac6b63d77572ca1abef6 Signed-off-by: Liu Bolun <bolun.liu@intel.com>
* Add support for dumping AVC short format related fields in libvawfeng62013-08-271-0/+3
| | | | | | | | | | num_ref_idx_l0_default_active_minus1 and num_ref_idx_l1_default_active_minus1 are added in H264PictureParameterBuffer. Their values should be printed out when dumping the libva buffers to ease the debugging. Change-Id: I4f543f1c2d12e2cfb7899bb677442fd96d1ec280 Signed-off-by: wfeng6 <wei.feng@intel.com>
* va_enc_vp8: update the vp8 interface againAustin Yuan2013-08-271-7/+17
| | | | | | previous update missed some changes Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* va: release VADisplayContext at the end of vaTerminate()Xiang, Haihao2013-08-271-3/+3
| | | | | | Otherwise it will result in invalid reading in va_TraceEnd() Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Removed fields in VP8 structures that duplicate VAEncMiscParameter ↵Jonathan Bian2013-08-271-34/+35
| | | | structures. Added reference frames to support non auto reference frame implementation. Changed VAQMatrixBufferVP8 to use quantization index deltas.
* vatrace: fix compile warnings and refine some formatAustin Yuan2013-08-271-59/+62
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* vatrace/vafool: save the context data into display contextAustin Yuan2013-08-274-988/+984
| | | | | | | | The static allocation of context data has issue in multiple threads environment. Put the allocation into display context strcuture Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* MPEG2ENC: Initialize the f_code based on supported level instead of hacked ↵Zhao Yakui2013-08-271-6/+22
| | | | | | | | | | setting The f_code of MPEG2 picture parameter indicates the max search range of the motion vector prediction. The small value will cause the unoptimized motion vector prediction. So remove the hack setting. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
* Added VAConfigEncQualityRange attribute and ↵Jonathan Bian2013-08-271-0/+26
| | | | VAEncMiscParameterBufferQualityLevel to support encoder quality settings.
* Added additional fields needed by certain types of hardware to the ↵Jonathan Bian2013-08-271-0/+2
| | | | VAPictureParameterBufferMPEG4 structure.
* Added additional output surfaces to the pipeline parameter and cap ↵Jonathan Bian2013-08-271-0/+6
| | | | structures, in case the VPP supports multiple outputs in a single iteration.
* vatrace: always printf RefPicListAustin Yuan2013-08-271-41/+40
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* va: Allow attribute-by-attribute configuration of the TCC filterOscar Mateo2013-08-271-28/+31
| | | | | | | | | A VA buffer can hold several total color correction attributes by creating a VA buffer of the desired number of elements, in such a way that you can independently modify the attribute or attributes (out of R, G, B, C, M and Y) that you need. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
* va_trace: avoid to dereference a NULL pointerXiang, Haihao2013-08-271-1/+2
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* test/decode/tinyjpeg: use the fourcc format Y800 for grayscale imagesXiang, Haihao2013-08-271-1/+1
| | | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: Beauchesne, Gwenole <gwenole.beauchesne@intel.com>
* test/decode/tinyjpeg: create VA surface with right render target formatXiang, Haihao2013-08-271-1/+1
| | | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: Beauchesne, Gwenole <gwenole.beauchesne@intel.com>
* Relocate VAProcFilterDeblocking in VAProcFilterTypeXiang, Haihao2013-08-271-2/+2
| | | | | | | To keep compatibility with master branch Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: Beauchesne, Gwenole <gwenole.beauchesne@intel.com>
* vatrace: trace JPEG encode parameters and vaQuerySurfaceAttributesAustin Yuan2013-08-273-34/+199
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* va: Add new color standard types to VPPOscar Mateo2013-08-271-0/+8
| | | | | | | | | | The four new color standards are: sRGB full range RGB [0,255] stRGB limited range RGB [16,235] xvYCC601 extended-gamut YCC upwardly compatible with BT.601 xvYCC709 extended-gamut YCC upwardly compatible with BT.709 Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
* va.h:Add new VAConfigAttribEncAutoReferenceAustin Yuan2013-08-271-0/+14
| | | | | | | | | | | Encoder usually has better knowledge about which reference frame are the best one than application. This attribute is used to signal application that driver has this capability, and application doesn't need to worry about reference frame settings Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* va_android: allow app to specify which driver it wants to loadAustin Yuan2013-08-271-1/+12
| | | | | | | | | | | | | | | | | | | | | | There is a platform which integrates two decode cores, and their drivers are sperated and independent. Application needs to know which driver it wants to use (e.g. H264 decode uses driver A, VP8 decode uses driver B) LIBVA_DRIVER_NAME has issues in one-process-multi-thread environment. This patch allows application to specify the driver name via vaGetDisplay: usage: 1. in normal case int android_display=0 vaGetDisplay((void *)&android_display) 2. specify driver name char driver_name[]="libva_driver_name=foo_drv_video.so" vaGetDisplay((void *)driver_name) Change-Id: I9f0f5ecb3565a25c1f6778093c80bb2fc24f24eb Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* va: Add new non-linear anamorphic scaling filterOscar Mateo2013-08-271-0/+24
| | | | | | NLAS scales contents with different aspect ratios so that letterboxing is not needed Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
* Extended existing JPEG encoding data structures and added configuration ↵Jonathan Bian2013-08-275-22/+202
| | | | attribute for JPEG encoding.
* Enhanced JPEG VA test appminu.mathai2013-08-272-184/+296
| | | | | | | | | | | | | | | | Added support for YUV422, YUV444 and YUV420 and multi-scan images. Changes 1. Added new functions for finding the start of image and end of image. This will be called while parsing the JIFF. This helps to detect the next image. The check for the bogus image format is removed as it is no longer valid with these new functions. 2. Since different images in the file has different width and height. The height and width will be stored in an array. These array variables will be passed while creating surfaces and contexts. 3. Added code to determine the format of the image from the h_sampling factor and v_sampling factor. This helps to support different image formats.
* va: Remove user_data from MPEG-2 encoding APIsXiang, Haihao2013-08-271-1/+0
| | | | | | The application can insert a raw packed header if user data is needed Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Refined TCC filter and added cap structure.Jonathan Bian2013-08-271-12/+28
|
* Added new status flag to VACodedBufferSegment for exchanging private data ↵Jonathan Bian2013-08-271-0/+10
| | | | between the app and the driver.
* va/android.mk: install va_dec_vp8.h fileAustin Yuan2013-08-272-0/+3
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* Check the returned handleXiang, Haihao2013-08-272-7/+7
| | | | | | This is to fix klockwork critical issue. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Check the device name before opening the deviceXiang, Haihao2013-08-271-3/+2
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Remove dummy backendAustin Yuan2013-08-271-24/+0
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* Added support for VP8 encoding.Jonathan Bian2013-08-274-0/+321
|
* Added mirroring, STE and TCC filters to the VPP pipeline.Jonathan Bian2013-08-272-0/+55
|
* Changes to VASliceParameterBufferVP8 to make it consistent with slice ↵Jonathan Bian2013-08-271-11/+18
| | | | parameter buffer structure for other formats.
* Renamed num_ref_ifx_lX_active_minus1 in VAPictureParameterBufferH264 to ↵Jonathan Bian2013-08-271-6/+2
| | | | match the latest spec.
* Added new attribute and data structure to support slice decoding base mode.Jonathan Bian2013-08-271-1/+51
|
* Added VASliceParameterBufferVP8 to describe data partition related fields.Jonathan Bian2013-08-271-2/+18
|
* vaPutSurface test on Android: fix build isste on Android JBAustin Yuan2013-08-271-6/+5
| | | | | Change-Id: Ibfb3d6a653f9af924422edb052e751b84015ffd0 Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
* vaPutSurface on Android: move the drawable to ANativeWindowAustin Yuan2013-08-272-4/+4
| | | | | Change-Id: I21b886966bbe70ff902daafe828de47ad3f0b956 Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
* Relocate rotation/blending related fields in VAProcPipelineParameterBuffer ↵Jonathan Bian2013-08-271-56/+56
| | | | and VAProcPipelineCaps.
* vainfo: Add the support for the new VA profilesXiang, Haihao2013-08-271-1/+3
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Added luma_scale2 and luma_shift2 to VAPictureParameterBufferVC1 to support ↵Jonathan Bian2013-08-271-0/+2
| | | | intensity compensation for P interlace picture