diff options
| author | Xiaoqing MA <[email protected]> | 2018-07-11 13:31:12 +0800 |
|---|---|---|
| committer | Xiaoqing MA <[email protected]> | 2018-07-11 13:31:12 +0800 |
| commit | f7a9db56525c435d6b4131305b1ab8d7cc15b86c (patch) | |
| tree | 1ea1097949307d3520062b62d861d036ecf5af5e /inc | |
| parent | 72e8c76611054f86a32ae9e212ab939cddc4f7fc (diff) | |
new ed17
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/vdefine.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/inc/vdefine.h b/inc/vdefine.h index 9cd812d..be6c4b6 100644 --- a/inc/vdefine.h +++ b/inc/vdefine.h @@ -17,18 +17,32 @@ extern const char *mp4_box_type_all[]; extern int count_type; -int is_mpeg_ts_each(const char *buff_each, size_t size_each, const char *buff, size_t size); +/*To find that whether the initial size bytes pointed to by buff satisfies the rules of MPEG-TS AV Container + * by supposing that its first 1 byte is sync_byte in ts header.*/ +int is_mpeg_ts_each(const char *buff, size_t size); +/*To identify whether the whole byte stream belongs to MPEG_TS container*/ int is_mpeg_ts(const char* buff, size_t size); -void *memchr_flv(const char *buff_each, size_t size_each); -int is_flv_each(const char* buff_each, size_t size_each,const char *buff); +/*Scanning the initial size bytes of the memory area pointed to by buff for the first instance of 0x08, 0x09 or 0x12*/ +void *memchr_flv(const char *buff, size_t size); +/*To find that whether the initial size bytes pointed to by buff satisfies the rules of FLV AV Container + * by supposing that its first 1 byte is TagType in FLV Tag Header.*/ +int is_flv_each(const char* buff, size_t size); +/*To identify whether the whole byte stream belongs to FLV container*/ int is_flv(const char* buff, size_t size); +/*whether all of those initial 4 bytes of the memory area pointed to by buff are number or lower case */ int is_mp4_part_boxtype(const char *buff); +/*whether one byte is number or lower case*/ int char_is_mp4(char c); -int is_mp4_part_4char(const char *buff_part); -void *memmem_mp4(const char *buff_each, size_t size_each); -int is_mp4_each(const char* buff_each, size_t size_each, const char *buff); +/*whether the initial several bytes of the memory area pointed to by buff_part is one kind of Boxtype of MP4 file*/ +int is_mp4_part_4char(const char *buff); +/*Scanning the initial size bytes of the memory area pointed to by buff for the first instance of continuous 4 bytes of number or lower case*/ +void *memmem_mp4(const char *buff, size_t size); +/*To find that whether the initial size bytes pointed to by buff satisfies the rules of MP4 AV Container + * by supposing that its first 4 byte is Boxtype in Box of MP4 file.*/ +int is_mp4_each(const char* buff, size_t size); +/*To identify whether the whole byte stream belongs to MP4 container*/ int is_mp4(const char* buff, size_t size); int AV_container_identify(const char* buff, size_t size); |
