Home | History | Annotate | Download | only in images

Lines Matching defs:pic

533     WebPPicture pic;
534 WebPPictureInit(&pic);
535 pic.width = bm.width();
536 pic.height = bm.height();
537 pic.writer = StreamWriter;
538 pic.custom_ptr = (void*)stream;
542 const int rgb_stride = pic.width * 3;
546 uint8_t* rgb = new uint8_t[rgb_stride * pic.height];
547 for (int y = 0; y < pic.height; ++y) {
549 pic.width, colors);
552 bool ok = WebPPictureImportRGB(&pic, rgb, rgb_stride);
555 ok = ok && WebPEncode(&webp_config, &pic);
556 WebPPictureFree(&pic);