Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/drivers/nouveau/nv50/nv98_video.h
4574 views
1
/*
2
* Copyright 2011-2013 Maarten Lankhorst, Ilia Mirkin
3
*
4
* Permission is hereby granted, free of charge, to any person obtaining a
5
* copy of this software and associated documentation files (the "Software"),
6
* to deal in the Software without restriction, including without limitation
7
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
* and/or sell copies of the Software, and to permit persons to whom the
9
* Software is furnished to do so, subject to the following conditions:
10
*
11
* The above copyright notice and this permission notice shall be included in
12
* all copies or substantial portions of the Software.
13
*
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
* OTHER DEALINGS IN THE SOFTWARE.
21
*/
22
23
#include "nv50/nv50_context.h"
24
#include "nv50/nv50_screen.h"
25
#include "nouveau_vp3_video.h"
26
27
#include "vl/vl_decoder.h"
28
#include "vl/vl_types.h"
29
30
#include "util/u_video.h"
31
32
extern unsigned
33
nv98_decoder_bsp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,
34
struct nouveau_vp3_video_buffer *target,
35
unsigned comm_seq, unsigned num_buffers,
36
const void *const *data, const unsigned *num_bytes,
37
unsigned *vp_caps, unsigned *is_ref,
38
struct nouveau_vp3_video_buffer *refs[16]);
39
40
extern void
41
nv98_decoder_vp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,
42
struct nouveau_vp3_video_buffer *target, unsigned comm_seq,
43
unsigned caps, unsigned is_ref,
44
struct nouveau_vp3_video_buffer *refs[16]);
45
46
extern void
47
nv98_decoder_ppp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,
48
struct nouveau_vp3_video_buffer *target, unsigned comm_seq);
49
50