summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_vce.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2015-03-26 09:52:37 +0100
committerChristian König <[email protected]>2015-05-22 10:17:24 +0200
commit2b40c306d238e2e738d8901e10f351a109b02687 (patch)
treeedccc95124361fcd6d5a03a4d4c68465da28e18d /src/gallium/drivers/radeon/radeon_vce.h
parent7c1a00174b2bec102030b19b6094ebcab23fe04d (diff)
radeon/vce: move CPB handling function into common code
They are not firmware version dependent. Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_vce.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_vce.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vce.h b/src/gallium/drivers/radeon/radeon_vce.h
index 1cf018006a8..9fcaecabac4 100644
--- a/src/gallium/drivers/radeon/radeon_vce.h
+++ b/src/gallium/drivers/radeon/radeon_vce.h
@@ -104,6 +104,13 @@ struct rvce_encoder {
bool use_vui;
};
+/* CPB handling functions */
+struct rvce_cpb_slot *current_slot(struct rvce_encoder *enc);
+struct rvce_cpb_slot *l0_slot(struct rvce_encoder *enc);
+struct rvce_cpb_slot *l1_slot(struct rvce_encoder *enc);
+void rvce_frame_offset(struct rvce_encoder *enc, struct rvce_cpb_slot *slot,
+ unsigned *luma_offset, unsigned *chroma_offset);
+
struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context,
const struct pipe_video_codec *templat,
struct radeon_winsys* ws,