1#include <assert.h> 2 3#include "vl_decoder.h" 4#include "vl_mpeg12_bitstream.h" 5#include "vl_mpeg12_decoder.h" 6#include "vl_video_buffer.h" 7#include "vl_zscan.h" 8 9 10/* 11 * vl_decoder stubs 12 */ 13bool 14vl_profile_supported(struct pipe_screen *screen, 15 enum pipe_video_profile profile, 16 enum pipe_video_entrypoint entrypoint) 17{ 18 assert(0); 19 return false; 20} 21 22int 23vl_level_supported(struct pipe_screen *screen, 24 enum pipe_video_profile profile) 25{ 26 assert(0); 27 return 0; 28} 29 30struct pipe_video_codec * 31vl_create_decoder(struct pipe_context *pipe, 32 const struct pipe_video_codec *templat) 33{ 34 assert(0); 35 return NULL; 36} 37 38 39/* 40 * vl_video_buffer stubs 41 */ 42void 43vl_get_video_buffer_formats(struct pipe_screen *screen, enum pipe_format format, 44 enum pipe_format out_format[VL_NUM_COMPONENTS]) 45{ 46 assert(0); 47} 48 49bool 50vl_video_buffer_is_format_supported(struct pipe_screen *screen, 51 enum pipe_format format, 52 enum pipe_video_profile profile, 53 enum pipe_video_entrypoint entrypoint) 54{ 55 assert(0); 56 return false; 57} 58 59unsigned 60vl_video_buffer_max_size(struct pipe_screen *screen) 61{ 62 assert(0); 63 return 0; 64} 65 66void 67vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, 68 struct pipe_video_codec *vcodec, 69 void *associated_data, 70 void (*destroy_associated_data)(void *)) 71{ 72 assert(0); 73} 74 75void * 76vl_video_buffer_get_associated_data(struct pipe_video_buffer *vbuf, 77 struct pipe_video_codec *vcodec) 78{ 79 assert(0); 80 return NULL; 81} 82 83void 84vl_video_buffer_template(struct pipe_resource *templ, 85 const struct pipe_video_buffer *tmpl, 86 enum pipe_format resource_format, 87 unsigned depth, unsigned array_size, 88 unsigned usage, unsigned plane, 89 enum pipe_video_chroma_format chroma_format) 90{ 91 assert(0); 92} 93 94struct pipe_video_buffer * 95vl_video_buffer_create(struct pipe_context *pipe, 96 const struct pipe_video_buffer *tmpl) 97{ 98 assert(0); 99 return NULL; 100} 101 102struct pipe_video_buffer * 103vl_video_buffer_create_ex2(struct pipe_context *pipe, 104 const struct pipe_video_buffer *tmpl, 105 struct pipe_resource *resources[VL_NUM_COMPONENTS]) 106{ 107 assert(0); 108 return NULL; 109} 110 111 112/* 113 * vl_mpeg12_bitstream stubs 114 */ 115void 116vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_codec *decoder) 117{ 118 assert(0); 119} 120 121void 122vl_mpg12_bs_decode(struct vl_mpg12_bs *bs, 123 struct pipe_video_buffer *target, 124 struct pipe_mpeg12_picture_desc *picture, 125 unsigned num_buffers, 126 const void * const *buffers, 127 const unsigned *sizes) 128{ 129 assert(0); 130} 131 132 133/* 134 * vl_mpeg12_decoder stubs 135 */ 136struct pipe_video_codec * 137vl_create_mpeg12_decoder(struct pipe_context *pipe, 138 const struct pipe_video_codec *templat) 139{ 140 assert(0); 141 return NULL; 142} 143 144/* 145 * vl_zscan 146 */ 147const int vl_zscan_normal[] = {0}; 148const int vl_zscan_alternate[] = {0}; 149