summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/vdpau/query.c
AgeCommit message (Collapse)AuthorFilesLines
2017-03-07gallium/util: replace pipe_mutex_unlock() with mtx_unlock()Timothy Arceri1-13/+13
pipe_mutex_unlock() was made unnecessary with fd33a6bcd7f12. Replaced using: find ./src -type f -exec sed -i -- \ 's:pipe_mutex_unlock(\([^)]*\)):mtx_unlock(\&\1):g' {} \; Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-03-07gallium/util: replace pipe_mutex_lock() with mtx_lock()Timothy Arceri1-9/+9
replace pipe_mutex_lock() was made unnecessary with fd33a6bcd7f12. Replaced using: find ./src -type f -exec sed -i -- \ 's:pipe_mutex_lock(\([^)]*\)):mtx_lock(\&\1):g' {} \; Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-02-24st/vdpau: Provide YV12 to NV12 putBits conversion v2Thomas Hellstrom1-0/+13
mplayer likes putting YV12 data, and if there is a buffer format mismatch, the vdpau state tracker would try to reallocate the video surface as an YV12 surface. A virtual driver doesn't like reallocating and doesn't like YV12 surfaces, so if we can't support YV12, try an YV12 to NV12 conversion instead. Also advertize that we actually can do the getBits and putBits conversion. v2: A previous version of this patch prioritized conversion before reallocating. This has been changed to prioritize reallocating in this version. Cc: Christian König <christian.koenig@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2016-07-01st/vdpau: use bicubic filter for scaling(v6.1)Nayan Deshmukh1-0/+1
use bicubic filtering as high quality scaling L1. v2: fix a typo and add a newline to code v3: -render the unscaled image on a temporary surface (Christian) -apply noise reduction and sharpness filter on unscaled surface -render the final scaled surface using bicubic interpolation v4: support high quality scaling v5: set dst_area and dst_clip in bicubic filter v6: set buffer layer before setting dst_area v6.1: add PIPE_BIND_LINEAR when creating resource Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2016-06-16st/vdpau: we support lumakeying nowChristian König1-0/+1
Signed-off-by: Christian König <christian.koenig@amd.com>
2016-06-14st/vdpau: replace 0.f and 1.f with 0.0f and 1.0f respectivelyNayan Deshmukh1-4/+4
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-03-29st/vdpau: move FormatRGBAToPipe into the interopChristian König1-5/+5
We are going to need that in the Mesa state tracker as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2014-02-14st/vdpau: add support for DEINTERLACE_TEMPORALGrigori Goronzy1-0/+1
Reviewed-by: Christian König <christian.koenig@amd.com>
2014-01-17s/Tungsten Graphics/VMware/José Fonseca1-1/+1
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/alanh@tungstengraphics.com/alanh@vmware.com/ s/jens@tungstengraphics.com/jowen@vmware.com/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g s/keithw\?@tungstengraphics.com/keithw@vmware.com/g s/michel@tungstengraphics.com/daenzer@vmware.com/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/zack@tungstengraphics.com/zackr@vmware.com/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <brianp@vmware.com>
2013-08-21vl/query: Only support VDP_CHROMA_TYPE_420 for 12 bit formats.Rico Schüller1-1/+6
Reviewed-by: Christian König <christian.koenig@amd.com>
2013-08-19st/vdpau: drop unnecessary variable profEmil Velikov1-3/+4
Any decent compiler will do this for us, although doing this will make grepping through the code alot easier. v2: In both mixer and query interface v3: rebase Reviewed-by: Christian König <christian.koenig@amd.com> [v1] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2013-08-19vl: add entrypoint to is_video_format_supportedChristian König1-2/+4
Signed-off-by: Christian König <christian.koenig@amd.com>
2013-08-19vl: add entrypoint to get_video_paramChristian König1-6/+12
Signed-off-by: Christian König <christian.koenig@amd.com>
2013-08-14vl: Add support for max level query v2Rico Schüller1-2/+2
This patch adds the level query support to the video decoders and uses some more reasonable defaults. v2: (ck) add commit message Reviewed-by: Christian König <christian.koenig@amd.com>
2012-03-28vl: move winsys helper out of winsys directoryChristian König1-1/+0
They aren't winsys of their own, just help dealing with them. v2: add some more comments in vl_winsys.h Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-08st/vdpau: fix chroma_format handling in ↵Christian König1-4/+18
VideoSurfaceQueryGetPutBitsYCbCrCapabilities Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-05st/vdpau: make the interface thread saveChristian König1-2/+28
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-02st/vdpau: implement OutputSurfaceQueryPutBitsYCbCrCapabilitiesChristian König1-1/+33
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-02st/vdpau: implement OutputSurfaceQueryGetPutBitsNativeCapabilitiesChristian König1-1/+23
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-02st/vdpau: implement OutputSurfaceQueryPutBitsIndexedCapabilitiesChristian König1-1/+43
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-02st/vdpau: implement BitmapSurfaceQueryCapabilitiesChristian König1-1/+35
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-02-21st/vdpau: remove unnecessary tracing and adjust tracing levels a bitChristian König1-16/+0
Tracing function entry/exits is a bit pointless when VDPAU_TRACE=1 does the same thing. v2: use WARN instead of ERR for application problems Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-02-10st/vdpau: use matrix filter to blur/sharpen videoChristian König1-0/+1
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-02-10st/vdpau: use median filter for noise reductionChristian König1-3/+9
And while at it implement the rest of the feature querying also. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-02-06st/vdpau: implement vlVdpOutputSurfaceQueryCapabilitiesChristian König1-2/+36
Fixing some problems with gstreamer. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-12-19vdpau: Add support for mixer attributesMaarten Lankhorst1-2/+35
It's harmless to add support for attributes we don't support, since they require a feature enabled for them to affect something. As long as they aren't enabled, nothing happens. This enables support for custom colorspaces and background colors. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com> Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-12-19vdpau: Add support for parametersMaarten Lankhorst1-3/+38
Currently only validating, since nothing else can be done with it yet Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com> v2: removed check_video_surface Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-14st/vdpau: Add documentation from the VDPAU API and update some tracesEmeric Grange1-10/+61
Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Reviewed-by: Christian König <deathsimple@vodafone.de>
2011-08-29vdpau: Fix include styleKai Wasserbäch1-5/+6
As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-07-12[g3dvl] add some more PIPE_VIDEO_CAPsChristian König1-20/+12
2011-07-10vdpau: make capabilities query more saneChristian König1-41/+32
2011-07-10vdpau: implement VdpOutputSurfaceGetParametersChristian König1-1/+1
2011-05-04vdpau: make state tracker far less noisyChristian König1-9/+9
2011-04-26vdpau: add stups for the missing functionsChristian König1-0/+15
2011-03-19Merge remote branch 'origin/master' into pipe-videoChristian König1-2/+1
Conflicts: src/gallium/drivers/r600/r600_asm.c src/gallium/tests/unit/SConscript
2011-03-19vdpau: make indention and formating more saneChristian König1-30/+30
2010-10-05vl: changed video pipe to use the new gallium API within masterThomas Balling Sørensen1-0/+1
2010-07-22Added stubs for the rest of the vdpau interfaceThomas Balling Sørensen1-2/+16
2010-07-20Made some decoding function for mpeg2-decodingThomas Balling Sørensen1-9/+54
2010-07-14vdpau changesThomas Balling Sørensen1-3/+54
2010-06-27st/vdpau: Initial commit.Younes Manton1-0/+171
Enough plumbing here to get vdpauinfo working.