diff options
author | Marek Olšák <[email protected]> | 2019-02-27 17:19:55 -0500 |
---|---|---|
committer | Leo Liu <[email protected]> | 2019-03-15 11:53:08 -0400 |
commit | b276e8358a726aaf010d277d361d5936450cd090 (patch) | |
tree | 3c49074b1e174af9ebe73193f0a826f170ad4469 /src/gallium/state_trackers/omx/bellagio | |
parent | 323e7be91cbed72a0978f5b784879b17155448ee (diff) |
omx: add a compute path in enc_LoadImage_common
Acked-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/omx/bellagio')
-rw-r--r-- | src/gallium/state_trackers/omx/bellagio/vid_enc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/omx/bellagio/vid_enc.c b/src/gallium/state_trackers/omx/bellagio/vid_enc.c index 1126c4f583d..525d2f331d8 100644 --- a/src/gallium/state_trackers/omx/bellagio/vid_enc.c +++ b/src/gallium/state_trackers/omx/bellagio/vid_enc.c @@ -161,6 +161,8 @@ static OMX_ERRORTYPE vid_enc_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam if (!priv->s_pipe) return OMX_ErrorInsufficientResources; + enc_InitCompute_common(priv); + if (!vl_compositor_init(&priv->compositor, priv->s_pipe)) { priv->s_pipe->destroy(priv->s_pipe); priv->s_pipe = NULL; @@ -267,6 +269,7 @@ static OMX_ERRORTYPE vid_enc_Destructor(OMX_COMPONENTTYPE *comp) if (priv->s_pipe) { vl_compositor_cleanup_state(&priv->cstate); vl_compositor_cleanup(&priv->compositor); + enc_ReleaseCompute_common(priv); priv->s_pipe->destroy(priv->s_pipe); } |