summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/vdpau
AgeCommit message (Collapse)AuthorFilesLines
2012-01-31vl: fix some missing prototypes errorChristian König1-0/+1
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45444 Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: fix YV12 handlingChristian König1-1/+1
We actually implemented YV21 instead of YV12, so fix the plane ordering. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15st/vdpau: recreate video buffer if decode doesn't like itChristian König1-1/+21
Recreate the video buffer if the decoder can't handle it. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15st/vdpau: recreate video buffer if format doesn't matchChristian König2-19/+37
Recreate the video buffer in PutBitsYCbCr if the format doesn't match. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: reintroduce PIPE_VIDEO_CAP_PREFERED_FORMATChristian König1-1/+6
Create the video buffers in the format the driver preffers. This temporary creates problems with decoder less VDPAU video playback. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: add h264 infrastructureChristian König1-0/+64
No implementation so far, just the defines for VDPAUs picture info structure. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl: move away from state like parametersChristian König1-146/+130
Again based on Maartens work, but keep begin_frame and end_frame functions for now. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-15vl/video_buffer: use template style create paramsChristian König1-3/+7
Just like in the rest of gallium, this reduces the number of parameters significantly. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-09vl: replace decode_buffers with auxiliary data fieldChristian König2-44/+2
Based on patches from Maarten Lankhorst <m.b.lankhorst@gmail.com> Signed-off-by: Christian König <deathsimple@vodafone.de> Acked-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-12-26vl: call decode_bitstream only onceChristian König1-4/+7
Submit all bitstreams at once to decode_bitstream. Signed-off-by: Christian König <deathsimple@vodafone.de> Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-12-19vdpau: Add background surface supportMaarten Lankhorst1-1/+10
Sets rgba layer as zeroth layer if a custom background_surface is specified. 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 mixer attributesMaarten Lankhorst3-15/+147
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 Lankhorst3-6/+126
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-12-14st/vdpau: fix unwanted output scalingChristian König1-7/+12
vlVdpPresentationQueueDisplay shouldn't scale, so use size of destination surface as source rectangle. Based on work of Maarten Lankhorst <m.b.lankhorst@gmail.com> Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-12-14st/vdpau: some mixer fixesChristian König3-2/+8
Correctly use destination_rect and destination_video_rect in the mixer, and also use a dirty area tracking for output surfaces. Based on work of Maarten Lankhorst <m.b.lankhorst@gmail.com> Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-12-14g3dvl/compositor: improve dirty area handlingChristian König4-3/+7
Take viewport and scissors into account and make the dirty area a parameter instead of a member. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-12-11vl: Add missing mpeg fields to pipe_mpeg12_picture_descMaarten Lankhorst1-0/+3
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-11-03state_trackers/vdpau: Add support for VC-1 decodingMaarten Lankhorst2-2/+75
Add a struct with all the fields. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-11-03state_trackers/vdpau: Add mpeg4 part2 to PipeToProfile and ProfileToPipeMaarten Lankhorst1-0/+8
So it can actually be used when someone implements it. :) Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-11-03state_trackers/vdpau: Add support for MPEG4 Part 2Maarten Lankhorst1-20/+78
Just the support patch, no decoder implements it currently. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-11-03state_trackers/vdpau: Test if profile is supported first before trying to ↵Maarten Lankhorst1-0/+12
create decoder So a nicer error message is returned. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-11-03state_trackers/vdpau: Add num_slices to mpeg12 picture structureMaarten Lankhorst1-0/+1
Bitstream parsers might need that field. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-11-03state_trackers/vdpau: Implement VdpGenerateCSCMatrixMaarten Lankhorst1-1/+19
With the smpte240 profile, which was missing. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-10-04configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.Stéphane Marchesin1-1/+1
Us poor souls who cross compile mesa want to be able to specify which pkg-config to pick, or at least just change one place. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-18gallium: move clear paths from rgba to a pointer to a color union (v2)Dave Airlie1-2/+14
This moves the gallium interface for clears from using a pointer to 4 floats to a pointer to a union of float/unsigned/int values. Notes: 1. the value is opaque. 2. only when the value is used should it be interpretered according to the surface format it is going to be used with. 3. float clears on integer buffers and vice-versa are undefined. v2: fixed up vega and graw, dropped hunks that shouldn't have been in patch. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-09-14st/vdpau: Preliminary support for timestamped output surface into the ↵Emeric Grange2-6/+80
presentation queue Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-14st/vdpau: Output surfaces that are too large to fit into the display target ↵Emeric Grange1-1/+7
will be clipped Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Reviewed-by: Christian König <deathsimple@vodafone.de>
2011-09-14st/vdpau: Add get_clear_color capabilityEmeric Grange1-1/+9
Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Reviewed-by: Christian König <deathsimple@vodafone.de>
2011-09-14st/vdpau: Add documentation from the VDPAU API and update some tracesEmeric Grange10-20/+235
Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Reviewed-by: Christian König <deathsimple@vodafone.de>
2011-09-14st/vdpau: Various whitespace cleanups found while reading some codeEmeric Grange9-33/+34
Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Reviewed-by: Christian König <deathsimple@vodafone.de>
2011-09-14g3dvl: Add max_references parameter to vl_create_decoder()Emeric Grange1-2/+2
Signed-off-by: Emeric Grange <emeric.grange@gmail.com>
2011-09-01st/vdpau: Implement VdpOutputSurfacePutBitsIndexed and ↵Christian König4-19/+307
VdpOutputSurfaceRenderOutputSurface This gets mplayers menu overlay working. Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-09-01g3dvl: extend the functionality of the compositorChristian König2-2/+2
Prepares for vdpau menu overlay.
2011-08-29vdpau: Fix include styleKai Wasserbäch9-31/+32
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-08-29st/vdpau: Respect source_rect in VideoMixerRenderChristian König1-1/+11
Fixing a bug reported by Andy Furniss.
2011-08-26g3dvl: Rework the decoder interface part 5/5Christian König1-4/+8
Make setting the quant matrixes a generic interface. Also removes setting the quant matrix from the XvMC interface Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 4/5Christian König2-4/+2
Make the picture_structure enum spec complient. Also remove it from the compositor. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 3/5Christian König1-3/+2
Revert back to a macroblock based interface. The structure used tries to keep as close to the spec as possible. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 2/5Christian König2-15/+30
Implement PIPE_CAP_NUM_BUFFERS_DESIRED giving the decoder control over the number of buffers a state tracker should allocate. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 1/5Christian König2-27/+28
First of all get ride of the decode_buffer structure, while still giving the decoder the ability to organize it's buffers depending on the needs of the state tracker. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-07-25vdpau: enable mpeg1 hw decoding, using the exact same code path as mpeg2Emeric1-12/+13
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39307 Signed-off-by: Christian König <deathsimple@vodafone.de>
2011-07-15g3dvl: no need for flushing inside the compositor any moreChristian König2-2/+2
Move that also inside the state tracker where needed.
2011-07-15g3dvl: correctly distinct dst area and clip area in the compositorChristian König2-2/+2
Otherwise xine won't scale correctly.
2011-07-15g3dvl: change picture parameter of decode_bitstream to general versionChristian König1-1/+1
Using pipe_mpeg12_picture_desc was unintentional here.
2011-07-12[g3dvl] add some more PIPE_VIDEO_CAPsChristian König1-20/+12
2011-07-11[g3dvl] fix a whole bunch of memory leaksChristian König3-0/+10
2011-07-10vdpau: make capabilities query more saneChristian König3-45/+32
2011-07-10vdpau: implement VdpOutputSurfaceGetParametersChristian König4-18/+51
2011-07-08vdpau: add implementation of VdpDecoderGetParametersChristian König2-0/+34
2011-07-08[g3dvl] and finally remove pipe_video_contextChristian König7-24/+10