RtspFace/PL_Paint.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
RtspFace/PL_Paint.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
RtspFace/PL_Scale.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
RtspFace/PL_Paint.cpp
@@ -32,6 +32,12 @@ #endif } void PLPLContext::clear() { cmds.clear(); params.clear(); } struct PL_Paint_Internal { uint8_t* buffer; @@ -185,7 +191,7 @@ bool plplDraw_Rect_RGB565(PLPLContext* plplCtx, MB_Frame* paintMb, int& paramOffset) { int LTX = plplCtx->params[paramOffset + 0].val_i; int LTX = plplCtx->params[paramOffset + 0].val_i; int LTY = plplCtx->params[paramOffset + 1].val_i; int RBX = plplCtx->params[paramOffset + 2].val_i; int RBY = plplCtx->params[paramOffset + 3].val_i; @@ -236,7 +242,7 @@ bool plplDraw_Text_RGB565(PLPLContext* plplCtx, MB_Frame* paintMb, int& paramOffset) { int LTX = plplCtx->params[paramOffset + 0].val_i; int LTX = plplCtx->params[paramOffset + 0].val_i; int LTY = plplCtx->params[paramOffset + 1].val_i; const char* TXT = plplCtx->params[paramOffset + 2].val_s; paramOffset += 3; RtspFace/PL_Paint.h
@@ -61,6 +61,8 @@ {} ~PLPLContext(); void clear(); }; struct PL_Paint_Config RtspFace/PL_Scale.cpp
@@ -230,18 +230,14 @@ PipeMaterial newPm; newPm.type = PipeMaterial::PMT_NONE; newPm.former = this; switch(in->lastPmType) { case PipeMaterial::PMT_BYTES: if (in->lastPmType == PipeMaterial::PMT_BYTES) { newPm.type = PipeMaterial::PMT_BYTES; newPm.buffer = in->buffer; newPm.buffSize = in->buffSize; } break; case PipeMaterial::PMT_FRAME: case PipeMaterial::PMT_PM_LIST: else { newPm.type = PipeMaterial::PMT_FRAME; newPm.buffer = &(in->tempFrame); @@ -251,10 +247,6 @@ in->tempFrame.buffSize = in->buffSize; in->tempFrame.width = in->config.toWidth; in->tempFrame.height = in->config.toHeight; } break; default: LOG_ERROR << "Only support PMT_BYTES / PMT_FRAME" << std::endl; } pm = newPm;