X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=theme.h;h=b17dbbd00de85764d866a02f22db8562636855b3;hb=c7969079ddaa7ac4aced304f039420435933715e;hp=49152637975c8d2df8a90325c8f2dbd247a5eebb;hpb=a472dcd2c9faec3e191539fb647237195047bbd4;p=nageru diff --git a/theme.h b/theme.h index 4915263..b17dbbd 100644 --- a/theme.h +++ b/theme.h @@ -12,6 +12,8 @@ #include #include +#define MAX_CARDS 16 + class NonBouncingYCbCrInput : public movit::YCbCrInput { public: NonBouncingYCbCrInput(const movit::ImageFormat &image_format, @@ -25,7 +27,7 @@ public: class Theme { public: - Theme(const char *filename, movit::ResourcePool *resource_pool); + Theme(const char *filename, movit::ResourcePool *resource_pool, unsigned num_cards); std::pair> get_chain(unsigned num, float t, unsigned width, unsigned height); @@ -50,8 +52,9 @@ private: movit::ResourcePool *resource_pool; struct { GLuint tex_y = 0, tex_cbcr = 0; - } input_textures[16]; // FIXME + } input_textures[MAX_CARDS]; int num_channels; + unsigned num_cards; }; class LiveInputWrapper {