gstdspvdec.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (C) 2009 Felipe Contreras
  3. *
  4. * Author: Felipe Contreras <felipe.contreras@gmail.com>
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation
  9. * version 2.1 of the License.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. *
  20. */
  21. #ifndef GST_DSP_VDEC_H
  22. #define GST_DSP_VDEC_H
  23. #include <gst/gst.h>
  24. G_BEGIN_DECLS
  25. #define GST_DSP_VDEC(obj) (GstDspVDec *)(obj)
  26. #define GST_DSP_VDEC_TYPE (gst_dsp_vdec_get_type())
  27. #define GST_DSP_VDEC_CLASS(obj) (GstDspVDecClass *)(obj)
  28. typedef struct GstDspVDec GstDspVDec;
  29. typedef struct GstDspVDecClass GstDspVDecClass;
  30. #include "gstdspbase.h"
  31. union vdec_priv_data {
  32. struct {
  33. gint lol;
  34. } h264;
  35. };
  36. struct GstDspVDec {
  37. GstDspBase element;
  38. gint width, height;
  39. gint frame_index;
  40. gboolean wmv_is_vc1;
  41. GstBuffer *codec_data;
  42. gboolean codec_data_sent;
  43. union vdec_priv_data priv;
  44. };
  45. struct GstDspVDecClass {
  46. GstDspBaseClass parent_class;
  47. };
  48. GType gst_dsp_vdec_get_type(void);
  49. G_END_DECLS
  50. #endif /* GST_DSP_VDEC_H */