2013-11-07 16:28:19 +01:00
|
|
|
|
2013-03-04 18:13:17 +01:00
|
|
|
/*
|
2013-11-07 16:28:19 +01:00
|
|
|
* Copyright (C) Roman Arutyunyan
|
2013-03-04 18:13:17 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _NGX_RTMP_MPEGTS_H_INCLUDED_
|
|
|
|
#define _NGX_RTMP_MPEGTS_H_INCLUDED_
|
|
|
|
|
|
|
|
|
2013-06-11 19:00:39 +02:00
|
|
|
#include <ngx_config.h>
|
2013-03-04 18:13:17 +01:00
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint64_t pts;
|
|
|
|
uint64_t dts;
|
|
|
|
ngx_uint_t pid;
|
|
|
|
ngx_uint_t sid;
|
|
|
|
ngx_uint_t cc;
|
|
|
|
unsigned key:1;
|
|
|
|
} ngx_rtmp_mpegts_frame_t;
|
|
|
|
|
|
|
|
|
|
|
|
ngx_int_t ngx_rtmp_mpegts_write_header(ngx_file_t *file);
|
|
|
|
ngx_int_t ngx_rtmp_mpegts_write_frame(ngx_file_t *file,
|
|
|
|
ngx_rtmp_mpegts_frame_t *f, ngx_buf_t *b);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _NGX_RTMP_MPEGTS_H_INCLUDED_ */
|