Home | History | Annotate | Download | only in images

Lines Matching defs:pic

527     WebPPicture pic;
528 WebPPictureInit(&pic);
529 pic.width = bm.width();
530 pic.height = bm.height();
531 pic.writer = StreamWriter;
532 pic.custom_ptr = (void*)stream;
536 const int rgb_stride = pic.width * 3;
540 uint8_t* rgb = new uint8_t[rgb_stride * pic.height];
541 for (int y = 0; y < pic.height; ++y) {
543 pic.width, colors);
546 bool ok = WebPPictureImportRGB(&pic, rgb, rgb_stride);
549 ok = ok && WebPEncode(&webp_config, &pic);
550 WebPPictureFree(&pic);