diff options
author | Leo Liu <[email protected]> | 2015-03-30 13:33:19 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2015-03-31 12:31:58 -0400 |
commit | a714fbacf7bc5dcbc316bbfcb6bd9cb38fb4f858 (patch) | |
tree | fe15fc5fa481ebe73a3dc8352891cd6bfc0c9d16 /src/gallium/drivers/radeon/radeon_vce.c | |
parent | 8e3668a7c0c725285d1d23cf5f2bc32c69114650 (diff) |
radeon/vce: implement video usability information support
This will help encoding VUI into the bitstream
v2: make backward compatible
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index 27a3832da83..6d34bd3a253 100644 --- a/src/gallium/drivers/radeon/radeon_vce.c +++ b/src/gallium/drivers/radeon/radeon_vce.c @@ -242,6 +242,8 @@ static void rvce_begin_frame(struct pipe_video_codec *encoder, enc->config_extension(enc); enc->motion_estimation(enc); enc->rdo(enc); + if (enc->use_vui) + enc->vui(enc); enc->pic_control(enc); enc->feedback(enc); flush(enc); @@ -352,6 +354,9 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context, if (!enc) return NULL; + if ((rscreen->info.drm_major > 2) || (rscreen->info.drm_minor >= 42)) + enc->use_vui = true; + enc->base = *templ; enc->base.context = context; |