You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

2 years ago
//Decoder request.
const kInitDecoderReq = 0;
const kUninitDecoderReq = 1;
const kOpenDecoderReq = 2;
const kCloseDecoderReq = 3;
const kFeedDataReq = 4;
const kStartDecodingReq = 5;
const kPauseDecodingReq = 6;
const kSeekToReq = 7;
//Decoder response.
const kInitDecoderRsp = 0;
const kUninitDecoderRsp = 1;
const kOpenDecoderRsp = 2;
const kCloseDecoderRsp = 3;
const kVideoFrame = 4;
const kAudioFrame = 5;
const kStartDecodingRsp = 6;
const kPauseDecodingRsp = 7;
const kDecodeFinishedEvt = 8;
const kRequestDataEvt = 9;
const kSeekToRsp = 10;
const kVideoParameters = 11;
const kVideoFrame_Missle = 12;
const kprodVideoFrame = 13;
2 years ago
//WebrtcPlayer states.
const playerStateIdle = 0;
const playerStatePlaying = 1;
const playerStatePausing = 2;
//Player request
const kInitPlayerReq = 0;
const kstartPlayerCoderReq = 1;
const ksendPlayerVideoFrameReq = 2;
2 years ago
const ksendPlayerAudioFrameReq = 3;
const kconnectStatusResponse = 4;
const kplayeVideoFrame = 5;
const kendPlayerCoderReq = 6;
const kplaterNetStatus = 7;
2 years ago
//H265Transferreq
const kstartH265TransferReq = 0;
const kendH265TransferReq = 1;
2 years ago
//WASM decoder types
const kDecoder_decodeer_js = 0;
2 years ago
const kDecoder_wx_h265_wasm_combine_js = 1;
const kDecoder_missile_decoder_js =2;
2 years ago
const kDecoder_simd_decoder_js =3;
const MAX_FRAME_SIZE=60;
const MAX_DELETE_FRAME_SIZE=1000;
//解码器类型定义
const DECODER_TYPE = kDecoder_simd_decoder_js; //ffmpeg simd 优化
// const DECODER_TYPE = kDecoder_decodeer_js; //ffmpeg decoder
// const DECODER_TYPE = kDecoder_missile_decoder_js; //小老虎解码器
// const DECODER_TYPE = kDecoder_wx_h265_wasm_combine_js; //Wxplayer 解码器