Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

YUY2 (or UYVY) to YUV420P (I420)

606 views
Skip to first unread message

HKUST

unread,
Oct 4, 2006, 6:44:33 AM10/4/06
to
Anyone know of a simple conversion routine for this?

Thx in advance

-Brian

HKUST

unread,
Oct 4, 2006, 5:18:23 AM10/4/06
to

The March Hare [MVP]

unread,
Oct 4, 2006, 10:43:56 AM10/4/06
to
On Wed, 4 Oct 2006 17:18:23 +0800, HKUST wrote:

> Anyone know of a simple conversion routine for this?

See Geraint's response to your earlier post on another thread.

Please do not multi-post.

See: http://tmhare.mvps.org/help.htm#mp

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution

The March Hare [MVP]

unread,
Oct 4, 2006, 10:44:09 AM10/4/06
to

Is there an echo in here?

Mikkel Haugstrup

unread,
Oct 4, 2006, 2:41:23 PM10/4/06
to

"HKUST" <HK...@nospam.nospam> wrote in message
news:u0DPVJ65...@TK2MSFTNGP04.phx.gbl...

> Anyone know of a simple conversion routine for this?
>

Are you looking to understand and write the routine yourself?

You can find a description of the memory layout of I420 at:
http://www.fourcc.org/yuv.php#IYUV

...for YUY2:
http://www.fourcc.org/yuv.php#YUY2

... and UYVY
http://www.fourcc.org/yuv.php#UYVY

The quick and dirty and thus simple way to do this would be to skip the UV
part of every other YUY2/UYVY macropixel while copying the Y, U and V values
to separate planes on the I420 plane.

I could throw some pseudo code together for you, but if are not looking to
write it yourself I wont bother.

/mikkel


Brian Burgess

unread,
Oct 5, 2006, 1:09:49 AM10/5/06
to
Thanks Mikkel,

Yes I am looking to write the routine myself. I'd like to put it directly
into my existing encoder filter.

thx

-Brian


"Mikkel Haugstrup" <_@_._> wrote in message
news:e%2361yS%235GH...@TK2MSFTNGP06.phx.gbl...

HKUST

unread,
Oct 5, 2006, 11:12:48 PM10/5/06
to
Thanks Mikkel,

Yes I am looking to write the routine myself. I'd like to put it directly
into my existing encoder filter.

thx


"Mikkel Haugstrup" <_@_._> wrote in message
news:e%2361yS%235GH...@TK2MSFTNGP06.phx.gbl...
>

WenJun Zhang[msft]

unread,
Oct 10, 2006, 6:38:47 AM10/10/06
to
Hi all,

This shouldn't be a DirectX SDK issue. However I found there seems to be
available APIs in Intel IPP which implement this kind of conversion. You
may download the Eval version for reference:

Intel Integrated Performance Primitives
http://www.intel.com/cd/software/products/asmo-na/eng/219967.htm

Have a great day.

Sincerely,

WenJun Zhang

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at:

http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Brian Burgess

unread,
Oct 13, 2006, 1:14:03 AM10/13/06
to
Yes, much info there ..

Many thx!

-BB


""WenJun Zhang[msft]"" <wjz...@online.microsoft.com> wrote in message
news:oxdDUhF7...@TK2MSFTNGXA01.phx.gbl...

0 new messages