Skip to content

Create PixelConversions module, move convertRgbaToRgb#241

Open
georges-berenger wants to merge 1 commit intofacebookresearch:mainfrom
georges-berenger:export-D97634059
Open

Create PixelConversions module, move convertRgbaToRgb#241
georges-berenger wants to merge 1 commit intofacebookresearch:mainfrom
georges-berenger:export-D97634059

Conversation

@georges-berenger
Copy link
Copy Markdown
Contributor

Summary:
Created a new PixelConversions.h/.cpp module in vrs::utils::pixel_conversions
namespace to host extracted pixel format conversion functions. Moved the
existing convertRgbaToRgbRows from PixelFrame private static to
pixel_conversions::convertRgbaToRgb and updated all three call sites
(inplaceRgbaToRgb, convertRgbaToRgb, and the RGB_IR_RAW_4X4 path in
PixelFrame_fb.cpp).

Why

Centralizing pixel conversions in a dedicated module enables independent
unit testing of each conversion and makes them accessible for optimization
without cluttering the PixelFrame class.

Differential Revision: D97634059

Summary:
Created a new PixelConversions.h/.cpp module in vrs::utils::pixel_conversions
namespace to host extracted pixel format conversion functions. Moved the
existing convertRgbaToRgbRows from PixelFrame private static to
pixel_conversions::convertRgbaToRgb and updated all three call sites
(inplaceRgbaToRgb, convertRgbaToRgb, and the RGB_IR_RAW_4X4 path in
PixelFrame_fb.cpp).

**Why**

Centralizing pixel conversions in a dedicated module enables independent
unit testing of each conversion and makes them accessible for optimization
without cluttering the PixelFrame class.

Differential Revision: D97634059
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 31, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Mar 31, 2026

@georges-berenger has exported this pull request. If you are a Meta employee, you can view the originating Diff in D97634059.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant