Home | History | Annotate | Download | only in dec

Lines Matching refs:alph_dec

786 static void AlphaApplyFilter(ALPHDecoder* const alph_dec,
789 if (alph_dec->filter_ != WEBP_FILTER_NONE) {
791 const uint8_t* prev_line = alph_dec->prev_line_;
792 assert(WebPUnfilters[alph_dec->filter_] != NULL);
794 WebPUnfilters[alph_dec->filter_](prev_line, out, out, stride);
798 alph_dec->prev_line_ = prev_line;
805 ALPHDecoder* const alph_dec = (ALPHDecoder*)dec->io_->opaque;
807 (alph_dec->filter_ == WEBP_FILTER_NONE ||
808 alph_dec->filter_ == WEBP_FILTER_HORIZONTAL) ? dec->io_->crop_top
815 uint8_t* out = alph_dec->output_ + width * first_row;
823 AlphaApplyFilter(alph_dec, first_row, last_row, out, width);
1489 ALPHDecoder* const alph_dec = (ALPHDecoder*)dec->io_->opaque;
1490 uint8_t* const output = alph_dec->output_;
1497 AlphaApplyFilter(alph_dec,
1507 int VP8LDecodeAlphaHeader(ALPHDecoder* const alph_dec,
1514 assert(alph_dec != NULL);
1515 alph_dec->vp8l_dec_ = dec;
1517 dec->width_ = alph_dec->width_;
1518 dec->height_ = alph_dec->height_;
1519 dec->io_ = &alph_dec->io_;
1520 dec->io_->opaque = alph_dec;
1521 dec->io_->width = alph_dec->width_;
1522 dec->io_->height = alph_dec->height_;
1527 if (!DecodeImageStream(alph_dec->width_, alph_dec->height_, 1, dec, NULL)) {
1537 alph_dec->use_8b_decode_ = 1;
1541 alph_dec->use_8b_decode_ = 0;
1542 ok = AllocateInternalBuffers32b(dec, alph_dec->width_);
1550 VP8LDelete(alph_dec->vp8l_dec_);
1551 alph_dec->vp8l_dec_ = NULL;
1555 int VP8LDecodeAlphaImageStream(ALPHDecoder* const alph_dec, int last_row) {
1556 VP8LDecoder* const dec = alph_dec->vp8l_dec_;
1564 if (!alph_dec->use_8b_decode_) WebPInitAlphaProcessing();
1567 return alph_dec->use_8b_decode_ ?