Home | History | Annotate | Download | only in dec

Lines Matching refs:hdr

150 static void ResetSegmentHeader(VP8SegmentHeader* const hdr) {
151 assert(hdr != NULL);
152 hdr->use_segment_ = 0;
153 hdr->update_map_ = 0;
154 hdr->absolute_delta_ = 1;
155 memset(hdr->quantizer_, 0, sizeof(hdr->quantizer_));
156 memset(hdr->filter_strength_, 0, sizeof(hdr->filter_strength_));
161 VP8SegmentHeader* hdr, VP8Proba* proba) {
163 assert(hdr != NULL);
164 hdr->use_segment_ = VP8Get(br);
165 if (hdr->use_segment_) {
166 hdr->update_map_ = VP8Get(br);
169 hdr->absolute_delta_ = VP8Get(br);
171 hdr->quantizer_[s] = VP8Get(br) ? VP8GetSignedValue(br, 7) : 0;
174 hdr->filter_strength_[s] = VP8Get(br) ? VP8GetSignedValue(br, 6) : 0;
177 if (hdr->update_map_) {
184 hdr->update_map_ = 0;
231 VP8FilterHeader* const hdr = &dec->filter_hdr_;
232 hdr->simple_ = VP8Get(br);
233 hdr->level_ = VP8GetValue(br, 6);
234 hdr->sharpness_ = VP8GetValue(br, 3);
235 hdr->use_lf_delta_ = VP8Get(br);
236 if (hdr->use_lf_delta_) {
241 hdr->ref_lf_delta_[i] = VP8GetSignedValue(br, 6);
246 hdr->mode_lf_delta_[i] = VP8GetSignedValue(br, 6);
251 dec->filter_type_ = (hdr->level_ == 0) ? 0 : hdr->simple_ ? 1 : 2;