|
FFmpeg
|
Motion estimation. More...
#include <stdlib.h>#include <stdio.h>#include <limits.h>#include "avcodec.h"#include "internal.h"#include "mathops.h"#include "motion_est.h"#include "mpegutils.h"#include "mpegvideo.h"#include "motion_est_template.c"Classes | |
| struct | Minima |
Typedefs | |
| typedef struct Minima | Minima |
Functions | |
| int | ff_init_me (MpegEncContext *s) |
| void | ff_estimate_p_frame_motion (MpegEncContext *s, int mb_x, int mb_y) |
| int | ff_pre_estimate_p_frame_motion (MpegEncContext *s, int mb_x, int mb_y) |
| void | ff_estimate_b_frame_motion (MpegEncContext *s, int mb_x, int mb_y) |
| int | ff_get_best_fcode (MpegEncContext *s, int16_t(*mv_table)[2], int type) |
| void | ff_fix_long_p_mvs (MpegEncContext *s) |
| void | ff_fix_long_mvs (MpegEncContext *s, uint8_t *field_select_table, int field_select, int16_t(*mv_table)[2], int f_code, int type, int truncate) |
Motion estimation.
| #define CHECK_BIDIR | ( | fx, | |
| fy, | |||
| bx, | |||
| by | |||
| ) |
| #define CHECK_BIDIR2 | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) |
| #define CHECK_SAD_HALF_MV | ( | suffix, | |
| x, | |||
| y | |||
| ) |
| void ff_estimate_p_frame_motion | ( | MpegEncContext * | s, |
| int | mb_x, | ||
| int | mb_y | ||
| ) |
< the variance of the block (sum of squared (p[y][x]-average))
< sum of squared differences with the estimated motion vector
| void ff_fix_long_mvs | ( | MpegEncContext * | s, |
| uint8_t * | field_select_table, | ||
| int | field_select, | ||
| int16_t(*) | mv_table[2], | ||
| int | f_code, | ||
| int | type, | ||
| int | truncate | ||
| ) |
| truncate | 1 for truncation, 0 for using intra |
1.8.12