MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / predict_field_decoding_flag

Function predict_field_decoding_flag

libavcodec/h264_slice.c:2509–2517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2507}
2508
2509static void predict_field_decoding_flag(const H264Context *h, H264SliceContext *sl)
2510{
2511 const int mb_xy = sl->mb_x + sl->mb_y * h->mb_stride;
2512 int mb_type = (h->slice_table[mb_xy - 1] == sl->slice_num) ?
2513 h->cur_pic.mb_type[mb_xy - 1] :
2514 (h->slice_table[mb_xy - h->mb_stride] == sl->slice_num) ?
2515 h->cur_pic.mb_type[mb_xy - h->mb_stride] : 0;
2516 sl->mb_mbaff = sl->mb_field_decoding_flag = IS_INTERLACED(mb_type) ? 1 : 0;
2517}
2518
2519/**
2520 * Draw edges and report progress for the last MB row.

Callers 1

decode_sliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected