2 * Copyright 2011-2013 Maarten Lankhorst
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:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
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.
23 #include "nvc0/nvc0_context.h"
24 #include "nvc0/nvc0_screen.h"
25 #include "nouveau_vp3_video.h"
27 #include "vl/vl_decoder.h"
28 #include "vl/vl_types.h"
30 #include "util/u_video.h"
33 nvc0_decoder_bsp_begin(struct nouveau_vp3_decoder
*dec
, unsigned comm_seq
);
36 nvc0_decoder_bsp_next(struct nouveau_vp3_decoder
*dec
,
37 unsigned comm_seq
, unsigned num_buffers
,
38 const void *const *data
, const unsigned *num_bytes
);
41 nvc0_decoder_bsp_end(struct nouveau_vp3_decoder
*dec
, union pipe_desc desc
,
42 struct nouveau_vp3_video_buffer
*target
,
43 unsigned comm_seq
, unsigned *vp_caps
, unsigned *is_ref
,
44 struct nouveau_vp3_video_buffer
*refs
[16]);
47 nvc0_decoder_vp(struct nouveau_vp3_decoder
*dec
, union pipe_desc desc
,
48 struct nouveau_vp3_video_buffer
*target
, unsigned comm_seq
,
49 unsigned caps
, unsigned is_ref
,
50 struct nouveau_vp3_video_buffer
*refs
[16]);
53 nvc0_decoder_ppp(struct nouveau_vp3_decoder
*dec
, union pipe_desc desc
,
54 struct nouveau_vp3_video_buffer
*target
, unsigned comm_seq
);