| | |
| | |
|
| | | AMediaCodec* codec;
|
| | |
|
| | | bool auxIsSet;
|
| | |
|
| | | PL_AMCD_Internal() :
|
| | | buffSize(0), buffSizeMax(sizeof(buffer)),
|
| | | inputFrameCount(0), lastOutputBuffIdx(-1),
|
| | | lastMbfBuffIdx(), lastMbfBuffer(),
|
| | | config(),
|
| | | codec(nullptr)
|
| | | codec(nullptr),
|
| | | auxIsSet(false)
|
| | | {
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (pm.buffer == nullptr)
|
| | | return false;
|
| | | |
| | |
|
| | | if (!in->auxIsSet)
|
| | | {
|
| | | //#todo
|
| | | // find PLGP_DEC_SPS_B64 PLGP_DEC_PPS_B64 in this->manager else nothing
|
| | | // base64 decode
|
| | |
|
| | | //AMediaFormat* format = AMediaCodec_getOutputFormat(in->codec);
|
| | | //AMediaFormat_setBuffer(format, "csd-1", pps, sizeof(pps)); // pps
|
| | | //AMediaCodec_setParameters
|
| | | // #todo delete format
|
| | |
|
| | | in->auxIsSet = true;
|
| | | }
|
| | |
|
| | | MB_Frame* frame = (MB_Frame*)pm.buffer;
|
| | | if (frame->type != MB_Frame::MBFT_H264_NALU)
|
| | | {
|