diff options
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/av_format_identify.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/inc/av_format_identify.h b/inc/av_format_identify.h index e136d43..328d0a9 100644 --- a/inc/av_format_identify.h +++ b/inc/av_format_identify.h @@ -1,15 +1,29 @@ +#ifndef AV_CONTAINER_IDENTIFY_H_INC +#define AV_CONTAINER_IDENTIFY_H_INC #include <stdio.h> -#ifndef _AV_FORMAT_IDENTIFY_H -#define _AV_FORMAT_IDENTIFY_H - - +#ifdef __cplusplus +extern "C" +{ +#endif #define AV_CONTAINER_UNKNOWN 0 #define AV_CONTAINER_MPEGTS 1 #define AV_CONTAINER_FLV 2 #define AV_CONTAINER_MP4 3 - -/*To identify the container type of the whole byte stream*/ +/* +Description:to identify the container type of the whole bytestream; +Paraments: + para1:[IN] buff, a pointer to the beginning of this bytestream; + para1:[IN] size, how long is this bytestream; +Return: + AV_CONTAINER_UNKNOWN(0):can not identifying its container format; + AV_CONTAINER_MPEGTS(1):this bytestream belongs to MPEG-TS container; + AV_CONTAINER_FLV(2):this bytestream belongs to FLV container; + AV_CONTAINER_MP4(3):this bytestream belongs to MP4 container; +*/ int AV_container_identify(const char* buff, size_t size); +#ifdef __cplusplus +} +#endif #endif |
