From 01eb2e4c1ba72e4aaadec1e4c9c1aeb21ba8f5c4 Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Thu, 9 Apr 2026 20:21:09 +0100 Subject: [PATCH] Rename plane_data() back to plane() to match dav1d API --- src/rust_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust_api.rs b/src/rust_api.rs index eb8d07c09..8e1bb4fd6 100644 --- a/src/rust_api.rs +++ b/src/rust_api.rs @@ -344,7 +344,7 @@ impl Picture { } /// Plane data of the `component` for the decoded frame. - pub fn plane_data<'a>(&'a self, component: PlanarImageComponent) -> &'a [u8] { + pub fn plane<'a>(&'a self, component: PlanarImageComponent) -> &'a [u8] { let data = &self.inner.data.as_ref().unwrap().data; let component = &data[component.as_index()]; let guard = component.slice::(..);