aboutsummaryrefslogtreecommitdiff
path: root/rtmputils.h
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-12-20 05:09:26 +0800
committerMistivia <i@mistivia.com>2025-12-20 05:25:07 +0800
commit038c58b0ac053dbfe8aea3faab73863000d5fdc9 (patch)
tree5a7e477a5f75d76be7adc9dcaab82347bac82ae7 /rtmputils.h
parentbb725cc3802b42992666e18d0758459e4332cdd7 (diff)
use srt instead of rtmp
Diffstat (limited to 'rtmputils.h')
-rw-r--r--rtmputils.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/rtmputils.h b/rtmputils.h
deleted file mode 100644
index f873232..0000000
--- a/rtmputils.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * @file utils.h
- * @author Dean Zou (zoudingyuan@junjietech.com)
- * @brief
- * @version 1.0
- * @date 2019-06-27
- *
- * @copyright Copyright (c) - 2019 JunJie Intelligence(Shenzhen) Co.,LTD
- *
- */
-#ifndef RTMPUTILS_H_
-#define RTMPUTILS_H_
-
-#include <map>
-#include <string>
-#include <stdio.h>
-#include <stdint.h>
-
-#define FOR_EACH(type, i, where) \
- for (typename type::iterator i = (where).begin(); i != (where).end(); ++i)
-
-#define FOR_EACH_CONST(type, i, where) \
- for (typename type::const_iterator i = (where).begin(); \
- i != (where).end(); ++i)
-
-// #define debug(fmt...) fprintf(stderr, fmt)
-
-#define debug(fmt...)
-
-template<class Key, class Value>
-Value get(const std::map<Key, Value> &map, const Key &k,
- const Value &def = Value())
-{
- typename std::map<Key, Value>::const_iterator i = map.find(k);
- if (i == map.end())
- return def;
- return i->second;
-}
-
-uint32_t load_be32(const void *p);
-uint16_t load_be16(const void *p);
-uint32_t load_be24(const void *p);
-uint32_t load_le32(const void *p);
-void set_be24(void *p, uint32_t val);
-void set_le32(void *p, uint32_t val);
-
-const std::string strf(const char *fmt, ...);
-
-#endif