1 Star 0 Fork 130

何阳/nginx-http-flv-module

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ngx_rtmp_bitop.h 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
winshining 提交于 2017-06-25 17:40 . [dev] initial commit.
/*
* Copyright (C) Roman Arutyunyan
*/
#ifndef _NGX_RTMP_BITOP_H_INCLUDED_
#define _NGX_RTMP_BITOP_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
typedef struct {
u_char *pos;
u_char *last;
ngx_uint_t offs;
ngx_uint_t err;
} ngx_rtmp_bit_reader_t;
void ngx_rtmp_bit_init_reader(ngx_rtmp_bit_reader_t *br, u_char *pos,
u_char *last);
uint64_t ngx_rtmp_bit_read(ngx_rtmp_bit_reader_t *br, ngx_uint_t n);
uint64_t ngx_rtmp_bit_read_golomb(ngx_rtmp_bit_reader_t *br);
#define ngx_rtmp_bit_read_err(br) ((br)->err)
#define ngx_rtmp_bit_read_eof(br) ((br)->pos == (br)->last)
#define ngx_rtmp_bit_read_8(br) \
((uint8_t) ngx_rtmp_bit_read(br, 8))
#define ngx_rtmp_bit_read_16(br) \
((uint16_t) ngx_rtmp_bit_read(br, 16))
#define ngx_rtmp_bit_read_32(br) \
((uint32_t) ngx_rtmp_bit_read(br, 32))
#define ngx_rtmp_bit_read_64(br) \
((uint64_t) ngx_rtmp_read(br, 64))
#endif /* _NGX_RTMP_BITOP_H_INCLUDED_ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/albb0608/nginx-http-flv-module.git
[email protected]:albb0608/nginx-http-flv-module.git
albb0608
nginx-http-flv-module
nginx-http-flv-module
master

搜索帮助