• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**************************************************************************
2  *
3  * Copyright 2011 Advanced Micro Devices, Inc.
4  *
5  * SPDX-License-Identifier: MIT
6  *
7  **************************************************************************/
8 
9 #ifndef RADEON_UVD_H
10 #define RADEON_UVD_H
11 
12 #include "winsys/radeon_winsys.h"
13 #include "vl/vl_video_buffer.h"
14 
15 #include "ac_uvd_dec.h"
16 
17 /* driver dependent callback */
18 typedef struct pb_buffer_lean *(*ruvd_set_dtb)(struct ruvd_msg *msg, struct vl_video_buffer *vb);
19 
20 /* create an UVD decode */
21 struct pipe_video_codec *si_common_uvd_create_decoder(struct pipe_context *context,
22                                                       const struct pipe_video_codec *templat,
23                                                       ruvd_set_dtb set_dtb);
24 
25 /* fill decoding target field from the luma and chroma surfaces */
26 void si_uvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma,
27                             struct radeon_surf *chroma, enum ruvd_surface_type type);
28 #endif
29