mirror of
https://github.com/ADElectronics/RTL00_WEB_VS.git
synced 2026-07-08 05:25:39 +00:00
update
This commit is contained in:
parent
6a1f93f17b
commit
764b020238
1201 changed files with 527271 additions and 1 deletions
75
RTLGDB/USDK/component/common/media/codec/h264/h264.h
Normal file
75
RTLGDB/USDK/component/common/media/codec/h264/h264.h
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
#ifndef _H264_H
|
||||
#define _H264_H
|
||||
|
||||
#include "dlist.h" //list management
|
||||
#include "basic_types.h"
|
||||
#include "osdep_service.h"
|
||||
//#include "osdep_api.h"
|
||||
|
||||
#define H264_DEBUG 0
|
||||
|
||||
#if H264_DEBUG
|
||||
#define H264_PRINTF(fmt, args...) printf("\n\r%s: " fmt, __FUNCTION__, ## args)
|
||||
#define H264_ERROR(fmt, args...) printf("\n\r%s: " fmt, __FUNCTION__, ## args)
|
||||
#else
|
||||
#define H264_PRINTF(fmt, args...)
|
||||
#define H264_ERROR(fmt, args...)
|
||||
#endif
|
||||
|
||||
#define MAX_NUM_NAL_PER_FRM 4
|
||||
|
||||
struct rtp_nal_obj
|
||||
{
|
||||
u8 start_code_len;
|
||||
unsigned char nal_header;
|
||||
u8 is_fu_start;
|
||||
u8 is_fu_end;
|
||||
u8 must_not_drop;
|
||||
u8 do_not_send;
|
||||
int offset;
|
||||
};
|
||||
|
||||
struct rtp_h264_obj
|
||||
{
|
||||
int num_nal;
|
||||
struct rtp_nal_obj nal_obj[MAX_NUM_NAL_PER_FRM];
|
||||
};
|
||||
|
||||
#endif /*_H264_H*/
|
||||
|
||||
#if 0
|
||||
|
||||
#ifndef _H264_H
|
||||
#define _H264_H
|
||||
|
||||
#include "dlist.h" //list management
|
||||
#include "basic_types.h"
|
||||
#include "osdep_service.h"
|
||||
//#include "osdep_api.h"
|
||||
|
||||
#define H264_DEBUG 0
|
||||
|
||||
#if H264_DEBUG
|
||||
#define H264_PRINTF(fmt, args...) printf("\n\r%s: " fmt, __FUNCTION__, ## args)
|
||||
#define H264_ERROR(fmt, args...) printf("\n\r%s: " fmt, __FUNCTION__, ## args)
|
||||
#else
|
||||
#define H264_PRINTF(fmt, args...)
|
||||
#define H264_ERROR(fmt, args...)
|
||||
#endif
|
||||
|
||||
/* in favor of rtp fragmentation */
|
||||
struct rtp_h264_obj
|
||||
{
|
||||
u8 start_code_len;
|
||||
unsigned char nal_header;
|
||||
u8 is_fu_start;
|
||||
u8 is_fu_end;
|
||||
u8 must_not_drop;
|
||||
};
|
||||
|
||||
|
||||
/********************************h264 over rtp******************************/
|
||||
|
||||
|
||||
#endif /*_H264_H*/
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue