| 730 | } |
| 731 | |
| 732 | static inline void init_interlaced_ref(MpegEncContext *s, int ref_index){ |
| 733 | MotionEstContext * const c= &s->me; |
| 734 | |
| 735 | c->ref[1+ref_index][0] = c->ref[0+ref_index][0] + s->linesize; |
| 736 | c->src[1][0] = c->src[0][0] + s->linesize; |
| 737 | if(c->flags & FLAG_CHROMA){ |
| 738 | c->ref[1+ref_index][1] = c->ref[0+ref_index][1] + s->uvlinesize; |
| 739 | c->ref[1+ref_index][2] = c->ref[0+ref_index][2] + s->uvlinesize; |
| 740 | c->src[1][1] = c->src[0][1] + s->uvlinesize; |
| 741 | c->src[1][2] = c->src[0][2] + s->uvlinesize; |
| 742 | } |
| 743 | } |
| 744 | |
| 745 | static int interlaced_search(MpegEncContext *s, int ref_index, |
| 746 | int16_t (*mv_tables[2][2])[2], uint8_t *field_select_tables[2], int mx, int my, int user_field_select) |
no outgoing calls
no test coverage detected