Skip to content

imgcodecs: jpeg: refactoring JpegEncoder with/without libjpeg turbo #25452

@Kumataro

Description

@Kumataro

Describe the feature and motivation

Currently, JpegEncoder extends to support extended color space(BGR/BGEX) with JCS_EXTENSIONS.

However old codes for libjpeg are left, so it is not easy to read.

I think to refactor it is needed for future works.

Additional context

For non-continuous source, I think updating to use Mat::ptr() insted of Mat::data + bias is better way.

- uchar *data = img.data + img.step*y, *ptr = data;
+ uchar *data = const_cast<uchar*>(img.ptr<uchar>(y));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions