Hi all,
inside the decoder.cpp i saw that accessing the luminance of a picture does a memcpy to align the linesizes:
unsigned long offset = 0, srcOffset = 0; for(unsigned i = 0; i < _getHeight(); i++) { memcpy(yuvBytes+offset, tmpPicture->data[0]+srcOffset, getWidth()); offset+=getWidth(); srcOffset += decodedPicture->linesize[0]; }
this does not hapen in the getCb() and getCr() calls. Why this?
Best, Hendrik
Log in to post a comment.
Hi all,
inside the decoder.cpp i saw that accessing the luminance of a picture does a memcpy to align the linesizes:
unsigned long offset = 0, srcOffset = 0;
for(unsigned i = 0; i < _getHeight(); i++)
{
memcpy(yuvBytes+offset, tmpPicture->data[0]+srcOffset, getWidth());
offset+=getWidth();
srcOffset += decodedPicture->linesize[0];
}
this does not hapen in the getCb() and getCr() calls. Why this?
Best,
Hendrik