h264packetizationhandler.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * libdatachannel client example
  3. * Copyright (c) 2020 Filip Klembara (in2core)
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version 2
  8. * of the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef H264_PACKETIZATION_HANDLER_H
  19. #define H264_PACKETIZATION_HANDLER_H
  20. #if RTC_ENABLE_MEDIA
  21. #include "h264rtppacketizer.hpp"
  22. #include "nalunit.hpp"
  23. #include "mediachainablehandler.hpp"
  24. namespace rtc {
  25. /// Handler for H264 packetization
  26. class RTC_CPP_EXPORT H264PacketizationHandler : public MediaChainableHandler {
  27. public:
  28. /// Construct handler for H264 packetization.
  29. /// @param packetizer RTP packetizer for h264
  30. H264PacketizationHandler(std::shared_ptr<H264RtpPacketizer> packetizer);
  31. };
  32. } // namespace rtc
  33. #endif /* RTC_ENABLE_MEDIA */
  34. #endif /* H264_PACKETIZATION_HANDLER_H */