Path: blob/21.2-virgl/src/gallium/drivers/nouveau/nv50/nv98_video.h
4574 views
/*1* Copyright 2011-2013 Maarten Lankhorst, Ilia Mirkin2*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 "nv50/nv50_context.h"23#include "nv50/nv50_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 unsigned32nv98_decoder_bsp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,33struct nouveau_vp3_video_buffer *target,34unsigned comm_seq, unsigned num_buffers,35const void *const *data, const unsigned *num_bytes,36unsigned *vp_caps, unsigned *is_ref,37struct nouveau_vp3_video_buffer *refs[16]);3839extern void40nv98_decoder_vp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,41struct nouveau_vp3_video_buffer *target, unsigned comm_seq,42unsigned caps, unsigned is_ref,43struct nouveau_vp3_video_buffer *refs[16]);4445extern void46nv98_decoder_ppp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,47struct nouveau_vp3_video_buffer *target, unsigned comm_seq);484950