You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a new api::Frame<u8> from raw pixel data, but am getting the following panic:
thread '<unnamed>' panicked at 'assertion failed: cfg.xorigin as isize + rect.x + rect.width as isize <= cfg.stride as isize', $HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/macros.rs:13:23
Full output
Frame 0 in
---
Frame 1 in
---
Frame 2 in
---
Frame 3 in
---
Frame 4 in
---
Frame 5 in
---
Frame 6 in
---
Frame 7 in
---
Frame 8 in
---
Frame 9 in
---
Frame 10 in
Start compute_motion_vectors
[src/tiling/plane_region.rs:352] cfg = PlaneConfig {
stride: 480,
alloc_height: 456,
width: 456,
height: 456,
xdec: 0,
ydec: 0,
xpad: 0,
ypad: 0,
xorigin: 0,
yorigin: 0,
}
[src/tiling/plane_region.rs:352] rect = Rect {
x: 0,
y: 0,
width: 640,
height: 480,
}
thread '<unnamed>' panicked at 'assertion failed: cfg.xorigin as isize + rect.x + rect.width as isize <= cfg.stride as isize', /home/urhengulas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/macros.rs:13:23
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The data normally comes from fn Canvas.data_i444() -> [Vec<u8>; 3], which is the underlying pixel data (RGBA) from an <img></img> converted to I444, Bt709. I mocked it with the same dimensions for this example for easier reproducability.
status of debugging
The error occurs during the call of ctx.send_frame(...) and I am quite sure it originates from fn rav1e::api::lookahead::compute_motion_vectors(...), but because I don't really understand what is going on in there I have a hard time fixing.
I am sitting on figuring this out since 3 days. Please someone give me a good hint 🥺
The text was updated successfully, but these errors were encountered:
I am trying to create a new
api::Frame<u8>
from raw pixel data, but am getting the following panic:Full output
The panic originates from src/tiling/plane_region.rs#L154.
code
I am using following code, which is inspired by src/bin/decoder/y4m.rs#L47
(You can check the code out at here)
mocking
The data normally comes from
fn Canvas.data_i444() -> [Vec<u8>; 3]
, which is the underlying pixel data (RGBA
) from an<img></img>
converted toI444
,Bt709
. I mocked it with the same dimensions for this example for easier reproducability.status of debugging
The error occurs during the call of
ctx.send_frame(...)
and I am quite sure it originates fromfn rav1e::api::lookahead::compute_motion_vectors(...)
, but because I don't really understand what is going on in there I have a hard time fixing.I am sitting on figuring this out since 3 days. Please someone give me a good hint 🥺
The text was updated successfully, but these errors were encountered: