Home | History | Annotate | Download | only in nvc0
      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_decoder.h"
     28 #include "vl/vl_types.h"
     29 
     30 #include "util/u_video.h"
     31 
     32 extern unsigned
     33 nvc0_decoder_bsp_begin(struct nouveau_vp3_decoder *dec, unsigned comm_seq);
     34 
     35 extern unsigned
     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);
     39 
     40 extern unsigned
     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]);
     45 
     46 extern void
     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]);
     51 
     52 extern void
     53 nvc0_decoder_ppp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,
     54                  struct nouveau_vp3_video_buffer *target, unsigned comm_seq);
     55