Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NV12 format, number of bytes should be 1.5x of pixel count, instead of 2 #9885

@chengguizi

Description

@chengguizi

Describe the bug

I am seeing error like this when attempting to us NV12 format

Rerun ERROR: Image buffer has the wrong size. Got 3072000 bytes, expected 4096000

case datatypes::PixelFormat::NV12:

https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1datatypes.html

Upon checking I suspect the image_utils.hpp wrongly code NV12 as 4:2:2 type, where it should be 4:2:0 type which is consistent in docs and rest of Internet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdk-cppC/C++ API specificsdk-rustRust logging API🏎️ Quick IssueCan be fixed in a few hours or less🪳 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions