Jump to content

  • Log In with Google      Sign In   
  • Create Account

Solid image redrawing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 no.Oby   Members   -  Reputation: 104

Like
0Likes
Like

Posted 17 June 2013 - 06:51 AM

Hello.

I am writing a yuy2 to rgb converter in shader.

I put yuy2 data in texture [w/2:h] and drawing on rec [w:h] with shader, which execute decode function.  

Current:

https://docs.google.com/file/d/0BxcY1BqDH3QnTEx4TkhYUGlid1U/edit?usp=sharing

Goal:

https://docs.google.com/file/d/0BxcY1BqDH3QnMVZkZGZ2d180aDQ/edit?usp=sharing

I think that when i draw yuy2 texture on bigger rectangle data deforms. Which Params should i use in SB.Begin and SB.Draw for currect (with filling of adjacent pixels) drawing texture i heard thats called "Solid"?



Sponsor:

#2 phil_t   Crossbones+   -  Reputation: 4094

Like
1Likes
Like

Posted 17 June 2013 - 12:26 PM

Pass SampleState.PointClamp or SampleState.PointWrap (probably the former in your case) for the second parameter in SpriteBatch.Begin.



#3 no.Oby   Members   -  Reputation: 104

Like
0Likes
Like

Posted 17 June 2013 - 12:32 PM

Awesome, thank you)






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS