Lines Matching refs:sl
68 H264SliceContext *sl = &h->slice_ctx[0];
70 sl->mb_x = mb_x;
71 sl->mb_y = mb_y;
72 sl->mb_xy = mb_x + mb_y * h->mb_stride;
73 memset(sl->non_zero_count_cache, 0, sizeof(sl->non_zero_count_cache));
79 if (ref >= sl->ref_count[0])
81 if (!sl->ref_list[0][ref].data[0]) {
85 if ((sl->ref_list[0][ref].reference&3) != 3) {
89 fill_rectangle(&h->cur_pic.ref_index[0][4 * sl->mb_xy],
91 fill_rectangle(&sl->ref_cache[0][scan8[0]], 4, 4, 8, ref, 1);
92 fill_rectangle(sl->mv_cache[0][scan8[0]], 4, 4, 8,
94 sl->mb_mbaff =
95 sl->mb_field_decoding_flag = 0;
99 void ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl,
165 H264SliceContext *sl = &h->slice_ctx[i];
167 av_freep(&sl->bipred_scratchpad);
168 av_freep(&sl->edge_emu_buffer);
169 av_freep(&sl->top_borders[0]);
170 av_freep(&sl->top_borders[1]);
172 sl->bipred_scratchpad_allocated = 0;
173 sl->edge_emu_buffer_allocated = 0;
174 sl->top_borders_allocated[0] = 0;
175 sl->top_borders_allocated[1] = 0;
258 void ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl)
260 sl->ref_cache[0][scan8[5] + 1] =
261 sl->ref_cache[0][scan8[7] + 1] =
262 sl->ref_cache[0][scan8[13] + 1] =
263 sl->ref_cache[1][scan8[5] + 1] =
264 sl->ref_cache[1][scan8[7] + 1] =
265 sl->ref_cache[1][scan8[13] + 1] = PART_NOT_AVAILABLE;
267 sl->er = &h->er;
641 H264SliceContext *sl = h->slice_ctx + h->nb_slice_ctx_queued;
642 sl->ref_count[0] = sl->ref_count[1] = 0;
764 H264SliceContext *sl = h->slice_ctx;
765 int use_last_pic = h->last_pic_for_ec.f->buf[0] && !sl->ref_count[0];
771 sl->ref_list[0][0].parent = &h->last_pic_for_ec;
772 memcpy(sl->ref_list[0][0].data, h->last_pic_for_ec.f->data, sizeof(sl->ref_list[0][0].data));
773 memcpy(sl->ref_list[0][0].linesize, h->last_pic_for_ec.f->linesize, sizeof(sl->ref_list[0][0].linesize));
774 sl->ref_list[0][0].reference = h->last_pic_for_ec.reference;
775 } else if (sl->ref_count[0]) {
776 ff_h264_set_erpic(&h->er.last_pic, sl->ref_list[0][0].parent);
780 if (sl->ref_count[1])
781 ff_h264_set_erpic(&h->er.next_pic, sl->ref_list[1][0].parent);
785 memset(&sl->ref_list[0][0], 0, sizeof(sl->ref_list[0][0]));