obs-x264.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /******************************************************************************
  2. Copyright (C) 2013 by Hugh Bailey <[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 "obs-x264.h"
  15. const char *obs_x264_getname(const char *locale)
  16. {
  17. /* TODO locale lookup */
  18. return "x264 (Software)";
  19. }
  20. struct obs_x264 *obs_x264_create(const char *settings, obs_encoder_t encoder)
  21. {
  22. struct obs_x264 *data = bmalloc(sizeof(struct obs_x264));
  23. }
  24. void obs_x264_destroy(struct obs_x264 *data)
  25. {
  26. }
  27. void obs_x264_update(struct obs_x264 *data, const char *settings)
  28. {
  29. }
  30. void obs_x264_reset(struct obs_x264 *data)
  31. {
  32. }
  33. int obs_x264_encode(struct obs_x264 *data, struct encoder_packet **packets)
  34. {
  35. }
  36. int obs_x264_getheader(struct obs_x264 *data, struct encoder_packet **packets)
  37. {
  38. }
  39. void obs_x264_setbitrate(struct obs_x264 *data, uint32_t bitrate,
  40. uint32_t buffersize)
  41. {
  42. }
  43. void obs_x264_request_keyframe(struct obs_x264 *data)
  44. {
  45. }