List Info

Thread: Re: CR-Client: add RGB32->YUY2 color converter plus test harness




Re: CR-Client: add RGB32->YUY2 color converter plus test harness
country flaguser name
United States
2007-05-08 13:46:20
Eric Hyche wrote:
> So if it has a negative pitch, where does dest_ptr
> point to? Just past the last pixel? That's what
> I gather from this:
> 
>>      /* check if bottom-up bitmaps: */
>>      if (src_pitch < 0)  src_ptr -=
(src_height-1) * src_pitch;
>>      if (dest_pitch < 0) dest_ptr -=
(dest_height-1) * dest_pitch;
> 
> That seems to move the pointer from just past the
> last pixel of the image to just past the last 
> pixel of the first row.

That is the basic idea.


http://msdn2.microsoft.com/en-us/library/ms787796.aspx



--greg.


_______________________________________________
Video-dev mailing list
Video-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/video
-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )