Skip to content

In function "libav_internal.h:pl_map_avframe_vulkan()", the "repr.bits.bit_shift" member of the output pl_frame does not seem to be set correctly. #349

@EliteWeapon

Description

@EliteWeapon

For the 10-bit pixel format, in "pl_map_avframe_vulkan()" function, the "repr.bits.bit_shift" member of the output pl_frame isn't be set, whereas it is correctly set in the pl_map_avframe_drm() function.

`
static bool pl_map_avframe_vulkan(pl_gpu gpu, struct pl_frame *out,
const AVFrame *frame)
{
...

out->acquire = pl_acquire_avframe;
out->release = pl_release_avframe;
pl_fix_hwframe_sample_depth(out);
return true;

}
`

`
static bool pl_map_avframe_drm(pl_gpu gpu, struct pl_frame *out,
const AVFrame *frame)
{
...

pl_fix_hwframe_sample_depth(out);

switch (hwfc->sw_format) {
case AV_PIX_FMT_P010: out->repr.bits.bit_shift = 6; break;
default: break;
}

return true;

}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions