summaryrefslogtreecommitdiffstats
path: root/src/h264.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/h264.h')
-rw-r--r--src/h264.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/h264.h b/src/h264.h
index acf4c33..00583bf 100644
--- a/src/h264.h
+++ b/src/h264.h
@@ -27,10 +27,29 @@
#ifndef _H264_H_
#define _H264_H_
+#include <stdbool.h>
+
+#include <va/va.h>
+
struct object_context;
struct object_surface;
struct cedrus_data;
+#define H264_DPB_SIZE 16
+
+struct h264_dpb_entry {
+ VAPictureH264 pic;
+ unsigned int age;
+ bool used;
+ bool valid;
+ bool reserved;
+};
+
+struct h264_dpb {
+ struct h264_dpb_entry entries[H264_DPB_SIZE];
+ unsigned int age;
+};
+
int h264_set_controls(struct cedrus_data *data,
struct object_context *context,
struct object_surface *surface);