Lines Matching refs:height

28 void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height)
32 ImageType vimg = yimg + width*height;
33 ImageType uimg = vimg + width*height;
36 for (int ii = 0; ii < height; ii++) {
73 void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height)
77 ImageType vimg = yimg + width*height;
78 ImageType uimg = vimg + width*height;
81 for (int ii = 0; ii < height; ii++) {
116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height)
121 ImageType out = ImageUtils::allocateImage(width, height, 1);
124 for (int ii = 0; ii < height; ii++) {
146 ImageType ImageUtils::rgb2gray(ImageType out, ImageType in, int width, int height)
153 for (int ii = 0; ii < height; ii++) {
176 ImageType *ImageUtils::imageTypeToRowPointers(ImageType in, int width, int height)
179 int m_h = height;
190 void ImageUtils::yvu2rgb(ImageType out, ImageType in, int width, int height)
194 unsigned char *vimg = yimg + width*height;
195 unsigned char *uimg = vimg + width*height;
198 for (int i = 0; i < height; i++) {
235 void ImageUtils::yvu2bgr(ImageType out, ImageType in, int width, int height)
239 unsigned char *vimg = yimg + width*height;
240 unsigned char *uimg = vimg + width*height;
243 for (int i = 0; i < height; i++) {
281 ImageType ImageUtils::readBinaryPPM(const char *filename, int &width, int &height)
300 eret = fscanf(imgin, "%d %d\n", &width, &height);
302 ret = allocateImage(width, height, IMAGE_TYPE_NUM_CHANNELS);
303 eret = fread(ret, sizeof(ImageTypeBase), IMAGE_TYPE_NUM_CHANNELS*width*height, imgin);
311 void ImageUtils::writeBinaryPPM(ImageType image, const char *filename, int width, int height, int numChannels)
321 fprintf(imgout, "P6\n%d %d\n255\n", width, height);
323 fprintf(imgout, "P5\n%d %d\n255\n", width, height);
327 fwrite(image, sizeof(ImageTypeBase), numChannels*width*height, imgout);
333 ImageType ImageUtils::allocateImage(int width, int height, int numChannels, short int border)
336 return (ImageType) calloc(width*height*numChannels+overallocation, sizeof(ImageTypeBase));
355 YUVinfo *YUVinfo::allocateImage(unsigned short width, unsigned short height)
360 heightUV = height;
363 int size = ((width * height * 3) + 8);
373 yuv->Y.height = height;
376 yuv->U.height = yuv->V.height = heightUV;
379 sizeof(unsigned char *) * (height + heightUV + heightUV) +
387 yuv->V.ptr = &y[height];
388 yuv->U.ptr = &y[height + heightUV];
400 for (i = 0; i < img->Y.height; i++, position += img->Y.width)
402 for (i = 0; i < img->V.height; i++, position += img->V.width)
404 for (i = 0; i < img->U.height; i++, position += img->U.width)