diff options
author | Boyuan Zhang <[email protected]> | 2016-07-21 19:40:17 -0400 |
---|---|---|
committer | Christian König <[email protected]> | 2016-07-25 13:39:51 +0200 |
commit | 10c1cc47a6adba9ea83d4df5c154c07f95ac3a40 (patch) | |
tree | 96a7d15f0fe80d3640faa7bd8ac8d05e65857a0c /src/gallium/state_trackers/va/context.c | |
parent | 34f46348438b29e20d06cca312616cfba8ee05f6 (diff) |
st/va: get rate control method from configattrib v2
Rate control method is passed from app to driver through config attrib list.
That is why we need to store this rate control method to config. And later
on, we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method.
v2 (chk): fix broken build and commit message
Signed-off-by: Boyuan Zhang <[email protected]>
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/context.c')
-rw-r--r-- | src/gallium/state_trackers/va/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 8882cbaf116..65ba7db4de7 100644 --- a/src/gallium/state_trackers/va/context.c +++ b/src/gallium/state_trackers/va/context.c @@ -276,6 +276,8 @@ vlVaCreateContext(VADriverContextP ctx, VAConfigID config_id, int picture_width, context->desc.base.profile = config->profile; context->desc.base.entry_point = config->entrypoint; + if (config->entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) + context->desc.h264enc.rate_ctrl.rate_ctrl_method = config->rc; pipe_mutex_lock(drv->mutex); *context_id = handle_table_add(drv->htab, context); |