Path: blob/21.2-virgl/src/gallium/drivers/nouveau/nvc0/nvc0_video.h
4574 views
/*1* Copyright 2011-2013 Maarten Lankhorst2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR17* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19* OTHER DEALINGS IN THE SOFTWARE.20*/2122#include "nvc0/nvc0_context.h"23#include "nvc0/nvc0_screen.h"24#include "nouveau_vp3_video.h"2526#include "vl/vl_decoder.h"27#include "vl/vl_types.h"2829#include "util/u_video.h"3031extern unsigned32nvc0_decoder_bsp_begin(struct nouveau_vp3_decoder *dec, unsigned comm_seq);3334extern unsigned35nvc0_decoder_bsp_next(struct nouveau_vp3_decoder *dec,36unsigned comm_seq, unsigned num_buffers,37const void *const *data, const unsigned *num_bytes);3839extern unsigned40nvc0_decoder_bsp_end(struct nouveau_vp3_decoder *dec, union pipe_desc desc,41struct nouveau_vp3_video_buffer *target,42unsigned comm_seq, unsigned *vp_caps, unsigned *is_ref,43struct nouveau_vp3_video_buffer *refs[16]);4445extern void46nvc0_decoder_vp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,47struct nouveau_vp3_video_buffer *target, unsigned comm_seq,48unsigned caps, unsigned is_ref,49struct nouveau_vp3_video_buffer *refs[16]);5051extern void52nvc0_decoder_ppp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,53struct nouveau_vp3_video_buffer *target, unsigned comm_seq);545556