The Killer's Game Openh264 -
ISVCDecoder* decoder = nullptr; WelsCreateDecoder(&decoder); SDecodingParam decParam; decParam.uiTargetDqLayer = UCHAR_MAX; decParam.eEcActiveIdc = ERROR_CON_SLICE_COPY; decoder->Initialize(&decParam);
for (int i = 0; i < info.iLayerNum; i++) SLayerBSInfo& layer = info.sLayerInfo[i]; // Write layer.pBsBuf to file or network the killer's game openh264
SSourcePicture pic; pic.iPicWidth = width; pic.iPicHeight = height; pic.iColorFormat = videoFormatI420; pic.pData[0] = y_plane; pic.pData[1] = u_plane; pic.pData[2] = v_plane; SFrameBSInfo info; encoder->EncodeFrame(&pic, &info); ISVCDecoder* decoder = nullptr