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