• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  */
13 bool
vl_profile_supported(struct pipe_screen * screen,enum pipe_video_profile profile,enum pipe_video_entrypoint entrypoint)14 vl_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 
22 int
vl_level_supported(struct pipe_screen * screen,enum pipe_video_profile profile)23 vl_level_supported(struct pipe_screen *screen,
24                    enum pipe_video_profile profile)
25 {
26    assert(0);
27    return 0;
28 }
29 
30 struct pipe_video_codec *
vl_create_decoder(struct pipe_context * pipe,const struct pipe_video_codec * templat)31 vl_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  */
42 const enum pipe_format *
vl_video_buffer_formats(struct pipe_screen * screen,enum pipe_format format)43 vl_video_buffer_formats(struct pipe_screen *screen, enum pipe_format format)
44 {
45    assert(0);
46    return NULL;
47 }
48 
49 boolean
vl_video_buffer_is_format_supported(struct pipe_screen * screen,enum pipe_format format,enum pipe_video_profile profile,enum pipe_video_entrypoint entrypoint)50 vl_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 
59 unsigned
vl_video_buffer_max_size(struct pipe_screen * screen)60 vl_video_buffer_max_size(struct pipe_screen *screen)
61 {
62    assert(0);
63    return 0;
64 }
65 
66 void
vl_video_buffer_set_associated_data(struct pipe_video_buffer * vbuf,struct pipe_video_codec * vcodec,void * associated_data,void (* destroy_associated_data)(void *))67 vl_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 
75 void *
vl_video_buffer_get_associated_data(struct pipe_video_buffer * vbuf,struct pipe_video_codec * vcodec)76 vl_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 
83 void
vl_video_buffer_template(struct pipe_resource * templ,const struct pipe_video_buffer * tmpl,enum pipe_format resource_format,unsigned depth,unsigned array_size,unsigned usage,unsigned plane)84 vl_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 {
90    assert(0);
91 }
92 
93 struct pipe_video_buffer *
vl_video_buffer_create(struct pipe_context * pipe,const struct pipe_video_buffer * tmpl)94 vl_video_buffer_create(struct pipe_context *pipe,
95                        const struct pipe_video_buffer *tmpl)
96 {
97    assert(0);
98    return NULL;
99 }
100 
101 struct pipe_video_buffer *
vl_video_buffer_create_ex2(struct pipe_context * pipe,const struct pipe_video_buffer * tmpl,struct pipe_resource * resources[VL_NUM_COMPONENTS])102 vl_video_buffer_create_ex2(struct pipe_context *pipe,
103                            const struct pipe_video_buffer *tmpl,
104                            struct pipe_resource *resources[VL_NUM_COMPONENTS])
105 {
106    assert(0);
107    return NULL;
108 }
109 
110 
111 /*
112  * vl_mpeg12_bitstream stubs
113  */
114 void
vl_mpg12_bs_init(struct vl_mpg12_bs * bs,struct pipe_video_codec * decoder)115 vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_codec *decoder)
116 {
117    assert(0);
118 }
119 
120 void
vl_mpg12_bs_decode(struct vl_mpg12_bs * bs,struct pipe_video_buffer * target,struct pipe_mpeg12_picture_desc * picture,unsigned num_buffers,const void * const * buffers,const unsigned * sizes)121 vl_mpg12_bs_decode(struct vl_mpg12_bs *bs,
122                    struct pipe_video_buffer *target,
123                    struct pipe_mpeg12_picture_desc *picture,
124                    unsigned num_buffers,
125                    const void * const *buffers,
126                    const unsigned *sizes)
127 {
128    assert(0);
129 }
130 
131 
132 /*
133  * vl_mpeg12_decoder stubs
134  */
135 struct pipe_video_codec *
vl_create_mpeg12_decoder(struct pipe_context * pipe,const struct pipe_video_codec * templat)136 vl_create_mpeg12_decoder(struct pipe_context *pipe,
137                          const struct pipe_video_codec *templat)
138 {
139    assert(0);
140    return NULL;
141 }
142 
143 /*
144  * vl_zscan
145  */
146 const int vl_zscan_normal[] = {0};
147 const int vl_zscan_alternate[] = {0};
148