media-remux.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /******************************************************************************
  2. Copyright (C) 2014 by Ruwen Hahn <[email protected]>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ******************************************************************************/
  14. #include "../util/c99defs.h"
  15. #pragma once
  16. struct media_remux_job;
  17. typedef struct media_remux_job *media_remux_job_t;
  18. typedef bool(media_remux_progress_callback)(void *data, float percent);
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. EXPORT bool media_remux_job_create(media_remux_job_t *job,
  23. const char *in_filename,
  24. const char *out_filename);
  25. EXPORT bool media_remux_job_process(media_remux_job_t job,
  26. media_remux_progress_callback callback,
  27. void *data);
  28. EXPORT void media_remux_job_destroy(media_remux_job_t job);
  29. #ifdef __cplusplus
  30. }
  31. #endif