~ubuntu-branches/ubuntu/wily/vdpau-video/wily

« back to all changes in this revision

Viewing changes to .pc/02_purge_va_buffers_on_context_destroy_or_new_picture_decode_seq.patch/src/vdpau_buffer.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Ramacher
  • Date: 2014-05-09 17:17:38 UTC
  • mfrom: (2.2.3 sid)
  • Revision ID: package-import@ubuntu.com-20140509171738-p0zwgb5cyw6c77op
Tags: 0.7.4-1
* New upstream release.
* debian/control:
  - Add myself to Uploaders.
  - Remove Andres Mejia from Uploaders since he is MIA. Thank you for
    maintaing vdpau-video. (Closes: #743561)
  - Point Homepage to the new home at freedesktop.org.
  - Bump Standards-Version to 3.9.5.
  - Add dh-autoreconf to Build-Depends.
  - Update Vcs-* to use canonical URLs.
* debian/watch: Update watch file to fetch tarball from from the new home at
  freedesktop.org. Thanks to Ross Gammon.
* debian/patches:
  - autoreconf.patch: Removed, no longer needed.
  - cast.patch: Fix build with libvdpau-dev >= 0.7-2. Bump Build-Depends on
    libvdpau-dev accordingly.
  - GL-version-1_3.patch: Apply workaround from Ubuntu to fix build
    failure. (Closes: #713612)
  - libva-constants.patch: Apply patch from upstream to fix build with
    recent libva versions.
* debian/copyright: Convert to Copyright Format 1.0.
* debian/rules:
  - Install upstream changelog.
  - Build with autoreconf.
  - Remove obsolete bits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  vdpau_buffer.h - VDPAU backend for VA-API (VA buffers)
3
 
 *
4
 
 *  vdpau-video (C) 2009-2011 Splitted-Desktop Systems
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
10
 
 *
11
 
 *  This program is distributed in the hope that it will be useful,
12
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *  GNU General Public License for more details.
15
 
 *
16
 
 *  You should have received a copy of the GNU General Public License
17
 
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
19
 
 */
20
 
 
21
 
#ifndef VDPAU_BUFFER_H
22
 
#define VDPAU_BUFFER_H
23
 
 
24
 
#include "vdpau_driver.h"
25
 
 
26
 
typedef struct object_buffer object_buffer_t;
27
 
struct object_buffer {
28
 
    struct object_base  base;
29
 
    VAContextID         va_context;
30
 
    VABufferType        type;
31
 
    void               *buffer_data;
32
 
    unsigned int        buffer_size;
33
 
    unsigned int        max_num_elements;
34
 
    unsigned int        num_elements;
35
 
    uint64_t            mtime;
36
 
    unsigned int        delayed_destroy : 1;
37
 
};
38
 
 
39
 
// Create VA buffer object
40
 
object_buffer_p
41
 
create_va_buffer(
42
 
    vdpau_driver_data_p driver_data,
43
 
    VAContextID         context,
44
 
    VABufferType        buffer_type,
45
 
    unsigned int        num_elements,
46
 
    unsigned int        size
47
 
) attribute_hidden;
48
 
 
49
 
// Destroy VA buffer object
50
 
void
51
 
destroy_va_buffer(
52
 
    vdpau_driver_data_p driver_data,
53
 
    object_buffer_p     obj_buffer
54
 
) attribute_hidden;
55
 
 
56
 
// Schedule VA buffer object for destruction
57
 
void
58
 
schedule_destroy_va_buffer(
59
 
    vdpau_driver_data_p driver_data,
60
 
    object_buffer_p     obj_buffer
61
 
) attribute_hidden;
62
 
 
63
 
// vaCreateBuffer
64
 
VAStatus
65
 
vdpau_CreateBuffer(
66
 
    VADriverContextP    ctx,
67
 
    VAContextID         context,
68
 
    VABufferType        type,
69
 
    unsigned int        size,
70
 
    unsigned int        num_elements,
71
 
    void               *data,
72
 
    VABufferID         *buf_id
73
 
) attribute_hidden;
74
 
 
75
 
// vaDestroyBuffer
76
 
VAStatus
77
 
vdpau_DestroyBuffer(
78
 
    VADriverContextP    ctx,
79
 
    VABufferID          buffer_id
80
 
) attribute_hidden;
81
 
 
82
 
// vaBufferSetNumElements
83
 
VAStatus
84
 
vdpau_BufferSetNumElements(
85
 
    VADriverContextP    ctx,
86
 
    VABufferID          buf_id,
87
 
    unsigned int        num_elements
88
 
) attribute_hidden;
89
 
 
90
 
// vaMapBuffer
91
 
VAStatus
92
 
vdpau_MapBuffer(
93
 
    VADriverContextP    ctx,
94
 
    VABufferID          buf_id,
95
 
    void              **pbuf
96
 
) attribute_hidden;
97
 
 
98
 
// vaUnmapBuffer
99
 
VAStatus
100
 
vdpau_UnmapBuffer(
101
 
    VADriverContextP    ctx,
102
 
    VABufferID          buf_id
103
 
) attribute_hidden;
104
 
 
105
 
// vaBufferInfo
106
 
VAStatus
107
 
vdpau_BufferInfo(
108
 
    VADriverContextP    ctx,
109
 
    VAContextID         context,
110
 
    VABufferID          buf_id,
111
 
    VABufferType       *type,
112
 
    unsigned int       *size,
113
 
    unsigned int       *num_elements
114
 
) attribute_hidden;
115
 
 
116
 
#endif /* VDPAU_BUFFER_H */