| | |
| | | return false;
|
| | | }
|
| | |
|
| | | ANativeWindow* window = (ANativeWindow*)(windowRender);
|
| | | ANativeWindow_Buffer buffer;
|
| | | if(windowRender != nullptr && ANativeWindow_lock(window, &buffer, NULL) == 0)
|
| | | {
|
| | | plScaleCfg.toHeight=buffer.height;
|
| | | plScaleCfg.toWidth=buffer.width;
|
| | | ANativeWindow_unlockAndPost(window);
|
| | | } else
|
| | | {
|
| | | plScaleCfg.toHeight=480;
|
| | | plScaleCfg.toWidth=640;
|
| | | }
|
| | | PL_Scale* plScale = (PL_Scale*)pipeLineRender->push_elem("PL_Scale");
|
| | | ret = plScale->init(&plScaleCfg);
|
| | | if (!ret)
|
| | |
| | | }
|
| | |
|
| | | PL_Paint_Config plPaintCfg;
|
| | | plPaintCfg.fontPath = "/data/msyh.ttc";
|
| | | plPaintCfg.fontPath = fontPath;
|
| | | plPaintCfg.plplCtx = &plplContext;
|
| | | PL_Paint* plPaint = (PL_Paint*)pipeLineRender->push_elem("PL_Paint");
|
| | | ret = plPaint->init(&plPaintCfg);
|