Lines Matching refs:alph_dec

840 static void AlphaApplyFilter(ALPHDecoder* const alph_dec,  in AlphaApplyFilter()  argument
843 if (alph_dec->filter_ != WEBP_FILTER_NONE) { in AlphaApplyFilter()
845 const uint8_t* prev_line = alph_dec->prev_line_; in AlphaApplyFilter()
846 assert(WebPUnfilters[alph_dec->filter_] != NULL); in AlphaApplyFilter()
848 WebPUnfilters[alph_dec->filter_](prev_line, out, out, stride); in AlphaApplyFilter()
852 alph_dec->prev_line_ = prev_line; in AlphaApplyFilter()
859 ALPHDecoder* const alph_dec = (ALPHDecoder*)dec->io_->opaque; in ExtractPalettedAlphaRows() local
861 (alph_dec->filter_ == WEBP_FILTER_NONE || in ExtractPalettedAlphaRows()
862 alph_dec->filter_ == WEBP_FILTER_HORIZONTAL) ? dec->io_->crop_top in ExtractPalettedAlphaRows()
869 uint8_t* out = alph_dec->output_ + width * first_row; in ExtractPalettedAlphaRows()
877 AlphaApplyFilter(alph_dec, first_row, last_row, out, width); in ExtractPalettedAlphaRows()
1549 ALPHDecoder* const alph_dec = (ALPHDecoder*)dec->io_->opaque; in ExtractAlphaRows() local
1550 uint8_t* const output = alph_dec->output_; in ExtractAlphaRows()
1557 AlphaApplyFilter(alph_dec, in ExtractAlphaRows()
1567 int VP8LDecodeAlphaHeader(ALPHDecoder* const alph_dec, in VP8LDecodeAlphaHeader() argument
1574 assert(alph_dec != NULL); in VP8LDecodeAlphaHeader()
1576 dec->width_ = alph_dec->width_; in VP8LDecodeAlphaHeader()
1577 dec->height_ = alph_dec->height_; in VP8LDecodeAlphaHeader()
1578 dec->io_ = &alph_dec->io_; in VP8LDecodeAlphaHeader()
1579 dec->io_->opaque = alph_dec; in VP8LDecodeAlphaHeader()
1580 dec->io_->width = alph_dec->width_; in VP8LDecodeAlphaHeader()
1581 dec->io_->height = alph_dec->height_; in VP8LDecodeAlphaHeader()
1586 if (!DecodeImageStream(alph_dec->width_, alph_dec->height_, 1, dec, NULL)) { in VP8LDecodeAlphaHeader()
1596 alph_dec->use_8b_decode_ = 1; in VP8LDecodeAlphaHeader()
1600 alph_dec->use_8b_decode_ = 0; in VP8LDecodeAlphaHeader()
1601 ok = AllocateInternalBuffers32b(dec, alph_dec->width_); in VP8LDecodeAlphaHeader()
1607 alph_dec->vp8l_dec_ = dec; in VP8LDecodeAlphaHeader()
1615 int VP8LDecodeAlphaImageStream(ALPHDecoder* const alph_dec, int last_row) { in VP8LDecodeAlphaImageStream() argument
1616 VP8LDecoder* const dec = alph_dec->vp8l_dec_; in VP8LDecodeAlphaImageStream()
1624 if (!alph_dec->use_8b_decode_) WebPInitAlphaProcessing(); in VP8LDecodeAlphaImageStream()
1627 return alph_dec->use_8b_decode_ ? in VP8LDecodeAlphaImageStream()