util.h 673 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2009-2010 Felipe Contreras
  3. *
  4. * Author: Felipe Contreras <felipe.contreras@gmail.com>
  5. *
  6. * This file may be used under the terms of the GNU Lesser General Public
  7. * License version 2.1, a copy of which is found in LICENSE included in the
  8. * packaging of this file.
  9. */
  10. #ifndef UTIL_H
  11. #define UTIL_H
  12. #include "dsp_bridge.h"
  13. #include "dmm_buffer.h"
  14. struct _GstBuffer;
  15. bool gstdsp_register(int dsp_handle,
  16. const struct dsp_uuid *uuid,
  17. int type,
  18. const char *filename);
  19. bool gstdsp_map_buffer(void *self,
  20. struct _GstBuffer *buf,
  21. dmm_buffer_t *b);
  22. #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
  23. #endif /* UTIL_H */