summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-07-16drm: fix build without X11 headers.{merged}/staging.11.drmDmitry Ermilov4-16/+10
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16drm: add API to expose VA surface and image buffers.Gwenole Beauchesne5-1/+207
Add vaGet{Surface,Image}BufferDRM() APIs to retrieve the underlying DRM buffers to the supplied VA surface or image. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16drm: allow authentication through X11 server.Gwenole Beauchesne4-1/+219
Make it possible to authenticate a DRM connection through an X server that may already be running. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16drm: ensure DRM connection is authenticated.Gwenole Beauchesne4-2/+106
Make sure the DRM connection is authenticated prior to returning a valid display from vaGetDisplayDRM(). If an X or Wayland server is running then authentication will also fail. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16Allow build without VA/X11 API.Dmitry Ermilov7-9/+45
In this case, VA/GLX API is disabled and another backend shall be built instead. Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16tests: add support for raw DRM.Dmitry Ermilov3-0/+86
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16API: add support for raw DRM.Dmitry Ermilov8-2/+302
This API makes it possible to use DRM-based VA drivers without an X server. Since this is a renderless API, vaPutSurface() is not available. Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16API: backend: add VA display types.Gwenole Beauchesne4-1/+20
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16API: backend: rename VADriverContext.dri_state to drm_state.Gwenole Beauchesne6-19/+32
VADriverContext.drm_state holds data structures derived from struct drm_state, thus also including struct dri_state for VA/X11 drivers. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16API: introduce DRM common utilities and data structures.Benjamin Franzke6-39/+90
Add <va/va_drmcommon.h> header for DRM-based drivers to use common base utilities and data structures. So far, only the DRM state is shared to that to maintain binary compatibility. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-16tests: avcenc: allow selection of display.Gwenole Beauchesne1-0/+3
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-13rename NativeDisplay to VANativeDisplayXiang, Haihao1-1/+1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> [cherry-pick'ed from commit a65acb298894fa90e3cb7692795027143d6b1dbe]
2012-07-13tests: allow selection of display.Gwenole Beauchesne6-0/+85
Make it possible to select display for test applications that need to render the decoded surfaces. Usage: --display <name> args. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-13tests: avcenc: use common VA display creation routines.Dmitry Ermilov3-27/+28
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
2012-07-13tests: simplify VA display construction.Gwenole Beauchesne14-129/+503
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-13test: fix avcenc build on Android.Gwenole Beauchesne1-2/+1
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-11test/basic: changed build target to noinst so they are built by defaultHaitao Huang1-3/+3
Signed-off-by: Haitao Huang <haitao.huang@intel.com> (cherry picked from commit cc86031259117b3cd5607865858c9054cd44db0e)
2012-07-06test/encode: add avcenc target for Android.mk.Haitao Huang2-1/+32
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
2012-07-06test/encode/avcenc: rename swap32() to va_swap32().Haitao Huang1-3/+3
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
2012-07-06test: remove trailing whitespaces in Android.mk files.Haitao Huang4-25/+25
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
2012-07-06test/basic: fix build of basic tests.Haitao Huang1-1/+1
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
2012-07-06test/basic: update to new API.Haitao Huang6-8/+13
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
2012-06-28.gitignore: update.Gwenole Beauchesne1-11/+16
- Add new tests and generated files. - Sort the lines by alphabetical order. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> [cherry-pick'ed from master 09533757aca8b8764a925dfa92204a8bb3c396f4]
2012-06-28build: fix make dist.Gwenole Beauchesne2-0/+6
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-28Fix build with alternate X11, GLX and EGL prefixes.Gwenole Beauchesne3-3/+22
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-28Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6Xiang, Haihao1-2/+6
VA/EGL depends on EGL/egl.h, so checking for eglGetDisplay in -lEGL doesn't mean it could be compiled or not. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-06-28configure: fix GLX and EGL tests.Gwenole Beauchesne1-14/+18
Migrate checks for GLX and EGL to pkg-config checks or use default include and libraries for testing. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-28fix the check for EGLXiang, Haihao1-1/+5
It is possible that EGL/egl.h doesn't exist however EGL library is available. We don't want to build EGL related stuff in this case Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> [Gwenole: removed the non-existing check for the testcase]
2012-06-19API for MPEG-2 encodingXiang, Haihao4-2/+325
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-06-18jpeg: mark default Huffman table as valid.Gwenole Beauchesne1-0/+2
When no Huffman table is defined in the JPEG segments, then the default Huffman tables are used, but values were not marked as valid. Fixed this to notify HW decoder that it needs to load the default tables. Note: this is not specifically needed to be handled at the application level. The driver also ought to generate default tables, should the HW decoder require so and no table was provided from the application. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-18jpeg: fix display of dimensions.Gwenole Beauchesne1-1/+1
Use human-readable form for image dimensions. i.e. use decimal representation instead of hexadecimal one. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-21Add VP8 decoding APIJonathan Bian3-1/+215
Added new profile, buffer types and data structures for VP8 decoding Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
2012-05-21Add Deblocking and FRC filter to VPP APIJonathan Bian1-0/+21
Added Deblocking and FRC filter types and data structures Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
2012-05-20license header: add the missing license header to filesAustin Yuan9-0/+205
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2012-05-11jpeg: fix IQ matrix and Huffman table buffer name.Gwenole Beauchesne2-13/+13
Align quantiser matrix and Huffman table buffer names for JPEG to existing practice for other codecs. i.e. drop the "Parameter" suffix in the name. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-11Update JPEG decode demo to match current API.Gwenole Beauchesne2-45/+77
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-11A simple JPEG example to use VAAPIZhao Halley5-1/+1071
It is based on Luc Saillard <luc@saillard.org>'s JPEG program Usage: loadjpeg <input_filename.jpeg> Signed-off-by: Zhao Halley <halley.zhao@intel.com> Singed-off-by: Wind Yuan <feng.yuan@intel.com> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-05-11jpeg: cosmetics (vertical align).Gwenole Beauchesne1-5/+5
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-04-24Android.mk: install VPP header filesAustin Yuan1-1/+3
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2012-04-24VAEncXXXH264Baseline: start to drop VAEncXXXXBaselineAustin Yuan6-212/+120
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2012-04-24tpi: clean the old interface, and use new oneAustin Yuan3-241/+80
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2012-04-24android backend: add the new device ID into itAustin Yuan2-0/+23
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2012-04-24Add new fourcc codesJonathan Bian1-0/+2
Added fourcc codes for YV24 and YV32 (4:4:4 planar formats) Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
2012-04-24Add initial JPEG decoding API.Gwenole Beauchesne3-0/+196
This is work-in-progress API subject to changes. In particular, this API is only suitable to Baseline profile. Huffman and quantization tables also need to be refined. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-04-19vatrace: trace H.264 encode parametersErmilov, Dmitry1-1/+234
Signed-off-by: Ermilov, Dmitry <dmitry.ermilov@intel.com>
2012-04-08API: h264 decode: fix the definition of slice_data_bit_offset.Gwenole Beauchesne1-6/+6
Align with the existing practice in various media stacks available in Linux today. i.e. codec layer submits slice data that represents the original bitstream, thus including any emulation prevent bytes. However, the slice_data_bit_offset represents an offset relative to the buffer that contains the NAL unit byte and the rest of the slice with any emulation prevention bytes removed. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-04-08Revert "API: h264 decode: introduce num_emulation_prevention_bytes."Gwenole Beauchesne1-35/+0
This change turns out to be useless based on a survey of all existing drivers and codec layers implemented so far. It's better to stick to the behaviour whereby slice_data_bit_offset excludes emulation prevention bytes count. Let's schedule this change is this is really necessary. This reverts commit a870f078984ce829f797e5610b30d39a3921af4f. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-04-04API: h264 decode: introduce num_emulation_prevention_bytes.Gwenole Beauchesne1-0/+35
num_emulation_prevention_bytes represent the number of emulation prevention bytes available in the slice_header(). This helps VA drivers determine how many emulation prevention bytes there are so that to program the hardware appropriately, without having to parse the slice_header() again. Rationale: it is not always possible to parse the slice_header() again. For instance, if "protected slices" are used, the slice data is uploaded into a VAProtectedSliceDataBuffer and it is no longer possible to read bytes from it afterwards. e.g. it could be in encrypted memory region or protected memory region only accessible from the video decoder. In newly written code, this member shall be filled in appropriately along with emulation_prevention_bytes_flag set to 1. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-04-04API: h264 decode: clarify slice_data_bit_offset field.Gwenole Beauchesne1-2/+13
slice_data_bit_offset represents a bit offset from the NAL Header Unit byte to the begining of the slice_data(), thus including any emulation prevention bytes. Baiscally, this represents the number of bits parsed for slice_header(). Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-04-03API: vpp: remove extraneous flags member.Gwenole Beauchesne1-2/+0
VAProcPipelineCaps contained an extra flags member which existed before its split into pipeline_flags and filter_flags. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>