diff options
author | Boyuan Zhang <[email protected]> | 2016-06-27 14:37:16 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2016-06-28 08:58:03 -0400 |
commit | 06f0a4d9ed50a5b562f7642cbf16a7c880693e95 (patch) | |
tree | 687356d79142c4fa8908d87cd206e2be2a603b03 /src/gallium/drivers/radeon/radeon_vce.h | |
parent | 533bd6ae177b36229865079b43306c7a9e0b1b64 (diff) |
radeon/vce: use vce structure for vce 52 firmware
Signed-off-by: Boyuan Zhang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.h b/src/gallium/drivers/radeon/radeon_vce.h index aa43823acea..f79e65c9ac2 100644 --- a/src/gallium/drivers/radeon/radeon_vce.h +++ b/src/gallium/drivers/radeon/radeon_vce.h @@ -405,6 +405,7 @@ struct rvce_encoder { struct rvid_buffer *fb; struct rvid_buffer cpb; struct pipe_h264_enc_picture_desc pic; + struct rvce_h264_enc_pic enc_pic; unsigned task_info_idx; unsigned bs_idx; @@ -442,4 +443,20 @@ void radeon_vce_50_init(struct rvce_encoder *enc); /* init vce fw 52 specific callbacks */ void radeon_vce_52_init(struct rvce_encoder *enc); +/* version specific function for getting parameters */ +void (*get_pic_param)(struct rvce_encoder *enc, + struct pipe_h264_enc_picture_desc *pic); + +/* get parameters for vce 40.2.2 */ +void radeon_vce_40_2_2_get_param(struct rvce_encoder *enc, + struct pipe_h264_enc_picture_desc *pic); + +/* get parameters for vce 50 */ +void radeon_vce_50_get_param(struct rvce_encoder *enc, + struct pipe_h264_enc_picture_desc *pic); + +/* get parameters for vce 52 */ +void radeon_vce_52_get_param(struct rvce_encoder *enc, + struct pipe_h264_enc_picture_desc *pic); + #endif |