Skip to content

Bug: decoder error when decoding files encoded with v0.2.0.4 (10-bit and 12-bit modes) #169

@wonder78

Description

@wonder78

I found a decoding error when using openapv v0.2.0.4.
Files encoded with this version fail to decode properly. The issue occurs for both 10-bit and 12-bit encoding, and seems to happen when the symbol length during encoding exceeds 32.

This problem does not occur in the previous version (v0.1.13), so it appears to be a regression introduced in the latest release.

Steps to Reproduce:

  1. Extract the attached ZIP file to obtain pattern_yuv444p10le_128x128.yuv.
    pattern_yuv444p10le_128x128.zip

  2. Encode a YUV file using the following commands.

  • 10-bit encoding:
    oapv_app_enc -i pattern_yuv444p10le_128x128.yuv -w 128 -h 128 -d 10 -z 30 --input-csp 3 --profile 444-10 -q 0 --q-matrix-c0 "4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1" -o encoded.apv
  • 12-bit encoding:
    oapv_app_enc -i pattern_yuv444p10le_128x128.yuv -w 128 -h 128 -d 10 -z 30 --input-csp 3 --profile 444-12 -q 0 -o encoded.apv
  1. Attempt to decode the generated encoded.apv file.

Behavior:

  • When built in Release mode, decoding seems to complete, but the resulting YUV output is visibly corrupted and not displayed correctly.
  • When built in Debug mode, the decoder fails with an error during decoding.

Please review and confirm whether this is a known bug or a regression in the encoding process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions