Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
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>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
[cherry-pick'ed from commit a65acb298894fa90e3cb7692795027143d6b1dbe]
|
|
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>
|
|
Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
(cherry picked from commit cc86031259117b3cd5607865858c9054cd44db0e)
|
|
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
|
|
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
|
|
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
|
|
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
|
|
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
|
|
- 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]
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
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>
|
|
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>
|
|
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]
|
|
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
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>
|
|
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>
|
|
Added new profile, buffer types and data structures for VP8 decoding
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
|
|
Added Deblocking and FRC filter types and data structures
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
|
|
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
|
|
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>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
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>
|
|
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
|
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
|
|
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
|
|
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
|
|
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
|
|
Added fourcc codes for YV24 and YV32 (4:4:4 planar formats)
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
|
|
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>
|
|
Signed-off-by: Ermilov, Dmitry <dmitry.ermilov@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|