63 lines
1.0 KiB
C
63 lines
1.0 KiB
C
#ifndef _COMMON_H
|
|
#define _COMMON_H
|
|
|
|
#if defined(_WIN32) && defined(_MSC_VER)
|
|
# define API_CALL __cdecl
|
|
# define SecMedia_Api_EXPORTS
|
|
#else
|
|
# define API_CALL
|
|
#endif
|
|
|
|
#if defined(_WIN32) && defined(_MSC_VER)
|
|
# if defined(SecMedia_Api_EXPORTS)
|
|
# define API_EXPORT __declspec(dllexport)
|
|
# else
|
|
# define API_EXPORT __declspec(dllimport)
|
|
# endif
|
|
#endif
|
|
|
|
# ifndef API_EXPORT
|
|
# define API_EXPORT __attribute__((visibility("default")))
|
|
# endif
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <stdlib.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
CodecInvalid = -1,
|
|
CodecH264 = 0,
|
|
CodecH265,
|
|
CodecAAC,
|
|
CodecG711A,
|
|
CodecG711U,
|
|
CodecOpus,
|
|
CodecSVAC,
|
|
CodecMax = 0x7FFF
|
|
} CodecId;
|
|
|
|
enum class DecEncType{
|
|
NONE=15,
|
|
SM1=0,
|
|
SM4=1,
|
|
RSA=2,
|
|
AES=3,
|
|
SVACEnc=4,
|
|
SVACDec=5,
|
|
SM3,
|
|
SM2_auth
|
|
};
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* MK_COMMON_H */ |