It's not well defined, but libvpx has a convention. when encoding, you
need to provide (n+1)/2 chroma samples for n luma samples in each
direction.. ie for 13x13 each chroma plane would be 7x7.
--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.
You need to obey the strides in the image descriptor. The decode Y
stride will be 64+((d_w+15)&~15) if you try to use the width directly
you'll get the shearing effect you describe, regardless of whether the
width is odd or not. The stride is the number of pixels to add to get
from one row to the next, if you're not familiar with the term. Make
sure you can decode a multiple of 16x16 image properly first, or feed
your encode into vpxdec by writing it to a raw file[1] to take the
decoder out of the equation. If the decoder seems good and your image
is still corrupt, then you need to check all the parameters of the
image descriptor you're passing to the encoder.
[1]: raw file: for each frame, write a 4 byte little endian int with
the size of the compressed data, followed by the compressed data.
It's not well defined, but libvpx has a convention. when encoding, you
need to provide (n+1)/2 chroma samples for n luma samples in each
direction.. ie for 13x13 each chroma plane would be 7x7.