first commit

This commit is contained in:
wdp
2024-12-15 20:42:32 +08:00
commit 986b2fca12
586 changed files with 154149 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
/***************************************************************************************
*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
* Copyright (C) 2014-2022, Happytimesoft Corporation, all rights reserved.
*
* Redistribution and use in binary forms, with or without modification, are permitted.
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
****************************************************************************************/
#ifndef H264_RTP_RX_H
#define H264_RTP_RX_H
#include "h264.h"
#include "rtp_rx.h"
typedef struct h264_rtp_rx_info
{
RTPRXI rtprxi;
uint8 * p_buf_org; // Allocated buffer
uint8 * p_buf; // = p_buf_org + 32
int buf_len; // Buffer length -32
uint32 d_offset; // Data offset
VRTPRXCBF pkt_func; // callback function
void * user_data; // user data
BOOL full_pkt; // Have a full packet
BOOL multi_slice; // multi slices
uint32 pkt_ts; // full packet timestamp
uint16 pkt_seq; // full packet seq
H264ParamSets param_sets; // h264 sps pps parameter sets
} H264RXI;
#ifdef __cplusplus
extern "C" {
#endif
BOOL h264_data_rx(H264RXI * p_rxi, uint8 * p_data, int len);
BOOL h264_rtp_rx(H264RXI * p_rxi, uint8 * p_data, int len);
BOOL h264_rxi_init(H264RXI * p_rxi, VRTPRXCBF cbf, void * p_userdata);
void h264_rxi_deinit(H264RXI * p_rxi);
#ifdef __cplusplus
}
#endif
#endif // H264_RTP_RX_H