summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
Commit message (Collapse)AuthorAgeFilesLines
* gallium: extend pipe_context::flush for it to accept an END_OF_FRAME flagMarek Olšák2013-01-041-1/+1
| | | | | | | | | | | | | | | | | Usage with pipe_context: pipe->flush(pipe, NULL, PIPE_FLUSH_END_OF_FRAME); Usage with st_context_iface: st->flush(st, ST_FLUSH_END_OF_FRAME, NULL); The flag is only a hint for drivers. Radeon will use it for buffer eviction heuristics in the kernel (e.g. for queries like how many frames have passed since a buffer was used). The flag is currently only generated by st/dri on SwapBuffers. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Stéphane Marchesin <[email protected]>
* st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffersMaarten Lankhorst2012-11-171-2/+2
| | | | Signed-off-by: Maarten Lankhorst <[email protected]>
* gallium: unify transfer functionsMarek Olšák2012-10-111-10/+3
| | | | | | | | | | | | | | "get_transfer + transfer_map" becomes "transfer_map". "transfer_unmap + transfer_destroy" becomes "transfer_unmap". transfer_map must create and return the transfer object and transfer_unmap must destroy it. transfer_map is successful if the returned buffer pointer is not NULL. If transfer_map fails, the pointer to the transfer object remains unchanged (i.e. doesn't have to be NULL). Acked-by: Brian Paul <[email protected]>
* st/vdpau: clear Cb&Cr with 0.5fChristian König2012-06-201-2/+5
| | | | | | That makes the output black in case of decoding errors. Signed-off-by: Christian König <[email protected]>
* st/vdpau: fix YCbCr down/up-loads for buffers larger than requestedChristian König2012-06-141-2/+27
| | | | | | | | | | When the video buffer turns out to be larger than requested by the application we shouldn't upload or download more data into / from it original requested. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39309 Signed-off-by: Christian König <[email protected]>
* st/vdpau: clear video surface at least onceChristian König2012-03-261-0/+29
| | | | | | | | So if anything goes wrong we won't display a random image. v2: flush before using the surface with the decoder. Signed-off-by: Christian König <[email protected]>
* st/vdpau: add xine workaroundChristian König2012-03-091-1/+1
| | | | | | | For reasons I don't understand xine tries to set the surface format by using a zero pitch. Signed-off-by: Christian König <[email protected]>
* st/vdpau: make the interface thread saveChristian König2012-03-051-4/+21
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement VideoSurfaceGetBitsYCbCrChristian König2012-03-021-8/+53
| | | | Signed-off-by: Christian König <[email protected]>
* vl: rework winsys interfaceChristian König2012-02-251-2/+2
| | | | | | Throw out all the old and now unneeded stuff. Signed-off-by: Christian König <[email protected]>
* st/vdpau: Use transfer_inline_write to upload ycbcr dataChristian König2012-02-211-18/+5
| | | | | | Uses less code and looks at least a bit cleaner than mapping manually. Signed-off-by: Christian König <[email protected]>
* st/vdpau: remove unnecessary tracing and adjust tracing levels a bitChristian König2012-02-211-2/+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 <[email protected]>
* st/vdpau: use interlacing capabilitiesChristian König2012-02-061-0/+6
| | | | | | Recreate video buffer if need arises. Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement uploads to interlaced video buffersChristian König2012-02-061-21/+27
| | | | Signed-off-by: Christian König <[email protected]>
* vl: fix YV12 handlingChristian König2012-01-151-1/+1
| | | | | | We actually implemented YV21 instead of YV12, so fix the plane ordering. Signed-off-by: Christian König <[email protected]>
* st/vdpau: recreate video buffer if format doesn't matchChristian König2012-01-151-18/+36
| | | | | | Recreate the video buffer in PutBitsYCbCr if the format doesn't match. Signed-off-by: Christian König <[email protected]>
* vl: reintroduce PIPE_VIDEO_CAP_PREFERED_FORMATChristian König2012-01-151-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 <[email protected]>
* vl/video_buffer: use template style create paramsChristian König2012-01-151-3/+7
| | | | | | | Just like in the rest of gallium, this reduces the number of parameters significantly. Signed-off-by: Christian König <[email protected]>
* st/vdpau: Add documentation from the VDPAU API and update some tracesEmeric Grange2011-09-141-0/+17
| | | | | Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
* vdpau: Fix include styleKai Wasserbäch2011-08-291-4/+4
| | | | | | | | | | | 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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* vdpau: implement VdpOutputSurfaceGetParametersChristian König2011-07-101-1/+1
|
* [g3dvl] and finally remove pipe_video_contextChristian König2011-07-081-4/+1
|
* [g3dvl] move video buffer creation out of video contextChristian König2011-07-081-2/+2
|
* [g3dvl] remove sampler view handling from video contextChristian König2011-07-081-2/+22
|
* vdpau: make state tracker far less noisyChristian König2011-05-041-1/+1
|
* vdpau: add stups for the missing functionsChristian König2011-04-261-5/+8
|
* [g3dvl] start supporting different render target formatsChristian König2011-04-241-1/+1
| | | | Let's start with NV12, but anything else shouldn't be much of a problem any more.
* [g3dvl] remove resource_format workaroundChristian König2011-04-241-7/+0
|
* vdpau: switch cb cr planes in vlVdpVideoSurfacePutBitsYCbCrChristian König2011-04-121-1/+1
|
* [g3dvl] make resource format selection a public interfaceChristian König2011-04-121-0/+7
|
* vdpau: Implement basic output functionalityChristian König2011-04-091-1/+1
| | | | | Even with totally wrong color space conversion we finally se a picture with VDPAU. Yeah!
* vdpau: implement vlVdpVideoSurfacePutBitsYCbCrChristian König2011-04-061-35/+47
|
* [g3dvl] start to cleanup the mess and provide at least basic functionalityChristian König2011-04-031-2/+2
|
* [g3dvl] start over with vdpau decodingChristian König2011-04-031-9/+9
|
* vdpau: fix formating and idention of surface.cChristian König2011-03-191-127/+112
|
* vdpau: merge fixes for vdpau state trackerChristian König2011-03-191-1/+1
|
* vl: bitstream decoder finds startcodesThomas Balling Sørensen2010-10-081-2/+3
|
* vl: Made the project compile again.Thomas Balling Sørensen2010-09-211-0/+192
|
* Stubs for the bitstream mpeg2 decoderThomas Balling Sørensen2010-08-011-192/+0
|
* Added stubs for the rest of the vdpau interfaceThomas Balling Sørensen2010-07-221-0/+3
|
* Made some decoding function for mpeg2-decodingThomas Balling Sørensen2010-07-201-31/+58
|
* fixed compilationThomas Balling Sørensen2010-07-141-0/+1
|
* added surface.c and made some changes in device.cThomas Balling Sørensen2010-07-141-0/+161