SDL digest, Vol 1 #555 - 23 msgs

Darrel, I’m not sure quite what to make of the below reponse. I think the natural way to interpret it would be that some level of RGB overlay scaling is free, but YUV is still not very well supported ? Why is there mention of YUV–>RGB conversion ? Is this needed for OS X but not OS X 10.1 ? What really changed from an SDL programmers perspective with OS X 10.1 ?

I’m looking for planar YUV blitting surface, not wanting to suffer the costs of any YUV to RGB conversion. I guess I’ll find out soon enough. I’m waiting to get a copy of OS X 10.2 and some developer tools. Just on a fact finding mission in the meantime.>I implemented the YUV acceleration for Mac OS X in SDL 1.2.5

(which was
based heavily on the VLC Mac OS X port).

Right now, we only support the planar YUV pixel formats. The packed
pixel formats can be supported by converting them to planer
on the fly.
We use QuickTime to perform the YUV->RGB conversion (which
every Mac OS
X machine has) and scaling, and scaling to arbitrary sizes is
supported.

As of Mac OS X 10.1, nearly all hardware (even the poorly-supported
Rage Pro) supports hardware overlays.

Darrel, I’m not sure quite what to make of the below reponse. I think
the natural way to interpret it would be that some level of RGB
overlay scaling is free, but YUV is still not very well supported ?

Packed-pixel YUV formats are not supported in hardware. Planar formats
are fully supported. YUV hardware acceleration is very well supported
on the Mac OS X. For one thing, DVD playback would be a disaster
without it…

Why is there mention of YUV–>RGB conversion?

That’s what the overlay does, right? It converts YUV pixels to RGB
pixels…

Is this needed for OS X but not OS X 10.1? What really changed from
an SDL programmers perspective with OS X 10.1?

Mac OS X 10.1 added YUV hardware support for the ATi Rage Pro. This
means some older machines will be able to use YUV hardware
acceleration, and your code will work on more machines.

So, for 10.1 or later, the supported cards are the ATi Rage Pro, Rage
128, Radeon, Radeon 8500, Radeon 9000, and NVidia GF2MX, GF4MX, GF3,
GF4Ti. So, that’s pretty much everything.

I’m looking for planar YUV blitting surface, not wanting to suffer the
costs of any YUV to RGB conversion. I guess I’ll find out soon enough.
I’m waiting to get a copy of OS X 10.2 and some developer tools. Just
on a fact finding mission in the meantime.

With planar formats you should have no problems.On Tuesday, October 22, 2002, at 03:58 PM, Mark Whittemore wrote: