Merge tag 'media/v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / drivers / media / platform / vsp1 / vsp1_entity.h
index 11f8363fa6b0f6fdb086d0584678878740291f58..408602ebeb978472a7d40aad678dfa7e672c4823 100644 (file)
@@ -21,6 +21,8 @@
 struct vsp1_device;
 struct vsp1_dl_list;
 struct vsp1_pipeline;
+struct vsp1_partition;
+struct vsp1_partition_window;
 
 enum vsp1_entity_type {
        VSP1_ENTITY_BRS,
@@ -82,12 +84,17 @@ struct vsp1_route {
  *             selection rectangles, ...)
  * @max_width: Return the max supported width of data that the entity can
  *             process in a single operation.
+ * @partition: Process the partition construction based on this entity's
+ *             configuration.
  */
 struct vsp1_entity_operations {
        void (*destroy)(struct vsp1_entity *);
        void (*configure)(struct vsp1_entity *, struct vsp1_pipeline *,
                          struct vsp1_dl_list *, enum vsp1_entity_params);
        unsigned int (*max_width)(struct vsp1_entity *, struct vsp1_pipeline *);
+       void (*partition)(struct vsp1_entity *, struct vsp1_pipeline *,
+                         struct vsp1_partition *, unsigned int,
+                         struct vsp1_partition_window *);
 };
 
 struct vsp1_entity {