mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-71d455b96fbf3807441f1b9bb82416928c77ac20 / contrib / si_uvd.c
blobda984163260b48daaf031b8c6147f81e8e4154a3
1 /**************************************************************************
3 * Copyright 2011 Advanced Micro Devices, Inc.
4 * All Rights Reserved.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
16 * of the Software.
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 **************************************************************************/
28 #include "si_pipe.h"
29 #include "radeonsi/radeon_video.h"
30 #include "radeonsi/radeon_uvd.h"
31 #include "radeonsi/radeon_vce.h"
32 #include "radeonsi/radeon_vcn_dec.h"
33 #include "radeonsi/radeon_vcn_enc.h"
34 #include "radeonsi/radeon_uvd_enc.h"
35 #include "util/u_video.h"
37 /**
38 * creates an video buffer with an UVD compatible memory layout
40 struct pipe_video_buffer *si_video_buffer_create(struct pipe_context *pipe,
41 const struct pipe_video_buffer *tmpl)
43 return 0;
46 /* set the decoding target buffer offsets */
47 static struct pb_buffer* si_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_buffer *buf)
50 return 0;
53 /* get the radeon resources for VCE */
54 static void si_vce_get_buffer(struct pipe_resource *resource,
55 struct pb_buffer **handle,
56 struct radeon_surf **surface)
58 if (handle)
59 *handle = 0;
61 if (surface)
62 *surface = 0;
65 /**
66 * creates an UVD compatible decoder
68 struct pipe_video_codec *si_uvd_create_decoder(struct pipe_context *context,
69 const struct pipe_video_codec *templ)
71 return 0;
73 struct pipe_video_buffer *si_video_buffer_create_with_modifiers(struct pipe_context *pipe,
74 const struct pipe_video_buffer *tmpl,
75 const uint64_t *modifiers,
76 unsigned int modifiers_count)
78 return 0;