From: Mike M. <mel...@pc...> - 2002-07-09 18:51:16
|
Hi team, I am writing some documentation on building a new video decoder. Here is one thing I do not understand about the flow of a video decoder (I have this piece of code commented out in foovideo.c): if (img->copy) { int height = abs(this->biHeight); int stride = this->biWidth; uint8_t* src[3]; src[0] = img->base[0]; src[1] = img->base[1]; src[2] = img->base[2]; while ((height -= 16) >= 0) { img->copy(img, src); src[0] += 16 * stride; src[1] += 4 * stride; src[2] += 4 * stride; } } What is this for and when is it used? Should it always be part of every video decoder? Thanks... -- -Mike Melanson |