TopsCodec API Reference¶
GCU是燧原的AI计算加速设备,TopsCodec基于GCU提供了用户进行多媒体编程的用户态接口, 并通过KMD和GCU多媒体单元交互完成用户任务.
- 1. 版权声明
- 2. Tops Codec API 文档
- 2.1. Global enum and defines
- 2.2. Codec APIs
- enum topscodecDevID_t
- enum topscodecRetCode_t
- enumerator TOPSCODEC_SUCCESS
- enumerator TOPSCODEC_ERROR_INVALID_VALUE
- enumerator TOPSCODEC_ERROR_INVALID_HANDLE
- enumerator TOPSCODEC_ERROR_INVALID_MEMORY
- enumerator TOPSCODEC_ERROR_CREATE_FAILED
- enumerator TOPSCODEC_ERROR_TIMEOUT
- enumerator TOPSCODEC_ERROR_OUT_OF_MEMORY
- enumerator TOPSCODEC_ERROR_BUFFER_EMPTY
- enumerator TOPSCODEC_ERROR_NOT_SUPPORTED
- enumerator TOPSCODEC_ERROR_NOT_PERMITED
- enumerator TOPSCODEC_ERROR_TRANSMIT_FAILED
- enumerator TOPSCODEC_ERROR_BAD_STREAM
- enumerator TOPSCODEC_ERROR_BUFFER_OVERFLOW
- enumerator TOPSCODEC_ERROR_DEVICE_NOT_OPEN
- enumerator TOPSCODEC_ERROR_UNKNOWN
- enum topscodecType_t
- enumerator TOPSCODEC_MPEG1
- enumerator TOPSCODEC_MPEG2
- enumerator TOPSCODEC_MPEG4
- enumerator TOPSCODEC_VC1
- enumerator TOPSCODEC_H263
- enumerator TOPSCODEC_H264
- enumerator TOPSCODEC_H264_SVC
- enumerator TOPSCODEC_H264_MVC
- enumerator TOPSCODEC_HEVC
- enumerator TOPSCODEC_VP8
- enumerator TOPSCODEC_VP9
- enumerator TOPSCODEC_AVS
- enumerator TOPSCODEC_AVS_PLUS
- enumerator TOPSCODEC_AVS2
- enumerator TOPSCODEC_JPEG
- enumerator TOPSCODEC_AV1
- enumerator TOPSCODEC_NUM_CODECS
- enum topscodecJpegBackend_t
- enum topscodecChromaFormat_t
- enumerator TOPSCODEC_CHROMA_FORMAT_MONOCHROME
- enumerator TOPSCODEC_CHROMA_FORMAT_420
- enumerator TOPSCODEC_CHROMA_FORMAT_422
- enumerator TOPSCODEC_CHROMA_FORMAT_444
- enumerator TOPSCODEC_CHROMA_FORMAT_440
- enumerator TOPSCODEC_CHROMA_FORMAT_411
- enumerator TOPSCODEC_CHROMA_FORMAT_410
- enumerator TOPSCODEC_CHROMA_FORMAT_400
- enumerator TOPSCODEC_CHROMA_FORMAT_UNKNOWN
- enum topscodecPicType_t
- enum topscodecStreamType_t
- enumerator TOPSCODEC_NALU_TYPE_P
- enumerator TOPSCODEC_NALU_TYPE_B
- enumerator TOPSCODEC_NALU_TYPE_I
- enumerator TOPSCODEC_NALU_TYPE_IDR
- enumerator TOPSCODEC_NALU_TYPE_EOS
- enumerator TOPSCODEC_NALU_TYPE_SEI
- enumerator TOPSCODEC_NALU_TYPE_SPS
- enumerator TOPSCODEC_NALU_TYPE_PPS
- enumerator TOPSCODEC_NALU_TYPE_VPS
- enumerator TOPSCODEC_H264_NALU_TYPE_SPS_PPS
- enumerator TOPSCODEC_HEVC_NALU_TYPE_VPS_SPS_PPS
- enumerator TOPSCODEC_NALU_TYPE_UNKNOWN
- enum topscodecEventType_t
- enumerator TOPSCODEC_EVENT_NEW_FRAME
- enumerator TOPSCODEC_EVENT_SEQUENCE
- enumerator TOPSCODEC_EVENT_EOS
- enumerator TOPSCODEC_EVENT_FRAME_PROCESSED
- enumerator TOPSCODEC_EVENT_BITSTREAM_PROCESSED
- enumerator TOPSCODEC_EVENT_OUT_OF_MEMORY
- enumerator TOPSCODEC_EVENT_STREAM_CORRUPT
- enumerator TOPSCODEC_EVENT_STREAM_NOT_SUPPORTED
- enumerator TOPSCODEC_EVENT_BUFFER_OVERFLOW
- enumerator TOPSCODEC_EVENT_FATAL_ERROR
- enum topscodecColorSpace_t
- enum topscodecMemType_t
- enum topscodecBufSource_t
- enum topscodecPixelFormat_t
- enumerator TOPSCODEC_PIX_FMT_NV12
- enumerator TOPSCODEC_PIX_FMT_NV21
- enumerator TOPSCODEC_PIX_FMT_I420
- enumerator TOPSCODEC_PIX_FMT_YV12
- enumerator TOPSCODEC_PIX_FMT_YUYV
- enumerator TOPSCODEC_PIX_FMT_UYVY
- enumerator TOPSCODEC_PIX_FMT_YVYU
- enumerator TOPSCODEC_PIX_FMT_VYUY
- enumerator TOPSCODEC_PIX_FMT_P010
- enumerator TOPSCODEC_PIX_FMT_P010LE
- enumerator TOPSCODEC_PIX_FMT_I010
- enumerator TOPSCODEC_PIX_FMT_YUV444
- enumerator TOPSCODEC_PIX_FMT_YUV444_10BIT
- enumerator TOPSCODEC_PIX_FMT_ARGB
- enumerator TOPSCODEC_PIX_FMT_ABGR
- enumerator TOPSCODEC_PIX_FMT_BGRA
- enumerator TOPSCODEC_PIX_FMT_RGBA
- enumerator TOPSCODEC_PIX_FMT_RGB565
- enumerator TOPSCODEC_PIX_FMT_BGR565
- enumerator TOPSCODEC_PIX_FMT_RGB555
- enumerator TOPSCODEC_PIX_FMT_BGR555
- enumerator TOPSCODEC_PIX_FMT_RGB444
- enumerator TOPSCODEC_PIX_FMT_BGR444
- enumerator TOPSCODEC_PIX_FMT_RGB888
- enumerator TOPSCODEC_PIX_FMT_BGR888
- enumerator TOPSCODEC_PIX_FMT_RGB3P
- enumerator TOPSCODEC_PIX_FMT_RGB101010
- enumerator TOPSCODEC_PIX_FMT_BGR101010
- enumerator TOPSCODEC_PIX_FMT_MONOCHROME
- enumerator TOPSCODEC_PIX_FMT_MONOCHROME_10BIT
- enumerator TOPSCODEC_PIX_FMT_BGR3P
- enum topscodecRotation_t
- enum topscodecRunMode_t
- enum topscodecDecMode_t
- enum topscodecDecSendMode_t
- enum topscodecDecOutputOrder_t
- enum topscodecDecStatus_t
- typedef i32_t
- TOPSCODEC_FRAME_MAX_PLANE_NUM
- struct topscodecFramePlane_t
- struct topscodecFrame_t
- struct topscodecStream_t
- struct topscodecRect_t
- struct topscodecAspectRatio_t
- struct topscodecFps_t
- struct topscodecVideoSignalDescription_t
- struct topscodecRotationAttr_t
- struct topscodecDownscaleAttr_t
- struct topscodecCropAttr_t
- struct topscodecSfoAttr_t
- struct topscodecPpAttr_t
- struct topscodecDecCaps_t
- struct topscodecDecSequenceInfo_t
- struct topscodecDecStreamCorruptInfo_t
- struct topscodecDecCreateInfo_t
- struct topscodecDecParams_t
- struct topscodecJpegInfo_t