rtpmap.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 95 行

H
95
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: Map RTP protocol numbers and rtpmap names to input
 *               functions.
 *
 *  Author: Eric Knudstrup
 *  Created: Tue Jun 14 19:55:38 2005
 *
 *******************************************************************/

#ifndef RTPMAP_H
#define RTPMAP_H

/**
 * @file rtpmap.h
 * RTP protocol type mapping routines.  Provided by rtp.lib
 */

/** @addtogroup rtp */
/*@{*/

/*;emacs generated header for file rtpmap.c. Global function declarations only. */
/**
 * Add dynamic mapping functions for a given RTP protocol type.
 * @param[in] pt Protocol type.
 * @param[in] data_cb Callback for data input.
 * @param[in] init_cb Callback for initializing the stream.
 * @param[in] done_cb Callback for finishing playback.
 *
 * @returns TRUE allocation succeeded for the new \a pt.
 */
extern int
rtp_add_dynamic_map(char *pt, 
 rtp_data_callback data_cb, 
 rtp_init_callback init_cb,
 rtp_done_callback done_cb);

/**
 * Add static mapping functions for a given RTP protocol type.
 * @param[in] pt Protocol type. If another set of callbacks has already been 
 * registered it will be overwritten.
 * @param[in] data_cb Callback for data input.
 * @param[in] init_cb Callback for initializing the stream.
 * @param[in] done_cb Callback for finishing playback.
 *
 * @returns TRUE if the protocol type is within on of the static
 * protocol types (less than \a RTP_PT_DYN_LOW).
 */
extern int
rtp_add_static_map(int pt, 
 rtp_data_callback data_cb, 
 rtp_init_callback init_cb,
 rtp_done_callback done_cb);

/**
 * Given one of the RTP dynamic protocol types \a pt, retrieve the 
 * callback functions.
 * @param[in] pt Dynamic RTP Protocol type ("ac3").
 * @param[out] data_cb Callback for data input.
 * @param[out] init_cb Callback for initializing the stream.
 * @param[out] done_cb Callback for finishing playback.
 *
 * @returns TRUE if the given \a pt has been registered.
 */
extern int
rtp_map_dynamic(char *pt, 
 rtp_data_callback *data_cb, 
 rtp_init_callback *init_cb,
 rtp_done_callback *done_cb);

/**
 * Given one of the RTP static protocol types \a pt, retrieve the 
 * callback functions.
 * @param[in] pt Static RTP Protocol type.
 * @param[out] data_cb Callback for data input.
 * @param[out] init_cb Callback for initializing the stream.
 * @param[out] done_cb Callback for finishing playback.
 *
 * @returns TRUE if pt is less than \a RTP_PT_DYN_LOW and handlers have been registered.
 */
extern int
rtp_map_static(int pt, 
 rtp_data_callback *data_cb, 
 rtp_init_callback *init_cb,
 rtp_done_callback *done_cb);


/*;end emacs generated header for file rtpmap.c. Global function declarations only. */

#endif

/*@}*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?