Lines Matching refs:pic
48 static int AnalyzeAndCreatePalette(const WebPPicture* const pic,
56 const uint32_t* argb = pic->argb;
57 const int width = pic->width;
58 const int height = pic->height;
88 argb += pic->argb_stride;
147 const WebPPicture* const pic = enc->pic_;
148 assert(pic != NULL && pic->argb != NULL);
151 AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_);
165 if (!AnalyzeEntropy(pic->argb, pic->width, pic->height, pic->argb_stride,
722 static WebPEncodingError WriteRiffHeader(const WebPPicture* const pic,
730 if (!pic->writer(riff, sizeof(riff), pic)) {
736 static int WriteImageSize(const WebPPicture* const pic,
738 const int width = pic->width - 1;
739 const int height = pic->height - 1;
753 static WebPEncodingError WriteImage(const WebPPicture* const pic,
763 err = WriteRiffHeader(pic, riff_size, vp8l_size);
766 if (!pic->writer(webpll_data, webpll_size, pic)) {
773 if (!pic->writer(pad_byte, 1, pic)) {
876 const WebPPicture* const pic = enc->pic_;
877 uint32_t* src = pic->argb;
879 const int width = pic->width;
880 const int height = pic->height;
901 ApplyPalette(src, dst, pic->argb_stride, enc->current_width_,
941 const WebPPicture* const pic = enc->pic_;
946 enc->histo_bits_ = GetHistoBits(method, use_palette, pic->width, pic->height);