Files
ANSCORE/MediaClient/rtp/mpeg4_rtp_rx.h

59 lines
1.7 KiB
C
Raw Normal View History

2026-03-28 16:54:11 +11:00
/***************************************************************************************
*
* 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-2024, 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 MPEG4_RTX_RX_H
#define MPEG4_RTX_RX_H
#include "rtp_rx.h"
typedef struct mpeg4_rtp_rx_info
{
RTPRXI rtprxi;
uint8 * p_buf_org; // Allocated buffer
uint8 * p_buf; // = p_buf_org + 32
uint32 buf_len; // Buffer length -32
uint32 d_offset; // Data offset
VRTPRXCBF pkt_func; // callback function
void * user_data; // user data
uint32 hdr_len; // header length
} MPEG4RXI;
#ifdef __cplusplus
extern "C" {
#endif
BOOL mpeg4_data_rx(MPEG4RXI * p_rxi, uint8 * p_data, int len);
BOOL mpeg4_rtp_rx(MPEG4RXI * p_rxi, uint8 * p_data, int len);
BOOL mpeg4_rxi_init(MPEG4RXI * p_rxi, VRTPRXCBF cbf, void * p_userdata);
void mpeg4_rxi_deinit(MPEG4RXI * p_rxi);
#ifdef __cplusplus
}
#endif
#endif // MPEG4_RTX_RX_H