Skip to main content
Royi A
Inspiring
October 19, 2017
Question

Interleaved vs. Planar Image

  • October 19, 2017
  • 2 replies
  • 3911 views

Hello,

Photoshop allows plug in to request data in Planar (Each color layer on its own) or Interleaved (RGB, RGB RGB Pixels) format.

I was wondering, what's Photoshop's internal format?

Namely, let's say I request the whole image, which will take less time to get, the interleaved or planar data (Namely which doesn't require Photoshop to do any operations besisdes giving access to data)?

Thank You.

This topic has been closed for replies.

2 replies

Inspiring
October 12, 2021

@Royi A - How does Photoshop filter access data in Interleaved ? From my understanding, its all in the stated image modes, which you have to convert to interleaved RGB.

Tom Ruark
Inspiring
October 19, 2017

Planar.

See DoFilter in the Dissolve example. Use the tile values and get a plane at a time. This will match as close as possible to Photoshop internal.

Royi A
Royi AAuthor
Inspiring
October 20, 2017

Namely this will have the lowest latency to get data, right?

Thank You.

Tom Ruark
Inspiring
October 20, 2017

Contiguous? No. Look at the Dissolve example and the outRowBytes from the FilterRecord. We like to align things as that makes it all faster.

Planar all at once? Maybe. I have not tried that but according to what I see in PIFilter.h and PIGeneral.h there is LayoutConstants which might be what you are looking for. I don't see any of our plug-ins doing that.

Lowest latency? That is not an easy answer. Photoshop has zoom levels and a pyramid. If you ask for a zoom level that Photoshop does not have in memory then it will be slow of course. This is the inputRate in FilterRecord.

Please read the comments in PIFilter.h which will take you to PIGeneral.h as well.