forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiB8c7bf80Tahinli3 months ago114 commits

decoder.rs21 lines, 703 bytesHistoryRawDownload
1// Copyright 2024 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#[cfg(feature = "v4l2")]
6use crate::Rect;
7use crate::Resolution;
8
9pub const ADDITIONAL_REFERENCE_FRAME_BUFFER: usize = 4;
10
11pub mod stateless;
12
13pub trait V4l2StreamInfo {
14 /// Returns the minimum number of surfaces required to decode the stream.
15 // name was chosen to match vaapi
16 fn min_num_frames(&self) -> usize;
17 /// Returns the coded size of the surfaces required to decode the stream.
18 fn coded_size(&self) -> Resolution;
19 /// Returns the visible rectangle within the coded size for the stream.
20 fn visible_rect(&self) -> Rect;
21}