| 1 |
/* |
| 2 |
* Copyright 2011-2013 Maarten Lankhorst |
| 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 "nvc0/nvc0_context.h" |
| 24 |
#include "nvc0/nvc0_screen.h" |
| 25 |
#include "nouveau_vp3_video.h" |
| 26 |
|
| 27 |
#include "vl/vl_types.h" |
| 28 |
|
| 29 |
#include "util/u_video.h" |
| 30 |
|
| 31 |
extern unsigned |
| 32 |
nvc0_decoder_bsp_begin(struct nouveau_vp3_decoder *dec, unsigned comm_seq); |
| 33 |
|
| 34 |
extern unsigned |
| 35 |
nvc0_decoder_bsp_next(struct nouveau_vp3_decoder *dec, |
| 36 |
unsigned comm_seq, unsigned num_buffers, |
| 37 |
const void *const *data, const unsigned *num_bytes); |
| 38 |
|
| 39 |
extern unsigned |
| 40 |
nvc0_decoder_bsp_end(struct nouveau_vp3_decoder *dec, union pipe_desc desc, |
| 41 |
struct nouveau_vp3_video_buffer *target, |
| 42 |
unsigned comm_seq, unsigned *vp_caps, unsigned *is_ref, |
| 43 |
struct nouveau_vp3_video_buffer *refs[16]); |
| 44 |
|
| 45 |
extern void |
| 46 |
nvc0_decoder_vp(struct nouveau_vp3_decoder *dec, union pipe_desc desc, |
| 47 |
struct nouveau_vp3_video_buffer *target, unsigned comm_seq, |
| 48 |
unsigned caps, unsigned is_ref, |
| 49 |
struct nouveau_vp3_video_buffer *refs[16]); |
| 50 |
|
| 51 |
extern void |
| 52 |
nvc0_decoder_ppp(struct nouveau_vp3_decoder *dec, union pipe_desc desc, |
| 53 |
struct nouveau_vp3_video_buffer *target, unsigned comm_seq); |