#include "global.h"
#include "image.h"

Go to the source code of this file.
Functions | |
| static void | CopyMVBlock16 (short ***enc_mv, short ***rdo_mv, int start, int end) |
| static void | ResetMVBlock16 (short ***enc_mv, int start, int end) |
| static void | ResetRefBlock16 (char **enc_ref, int start, int end) |
| static void | CopyMVBlock8 (short ***enc_mv, short ***rdo_mv, int start, int end, int offset) |
| static void | ResetMVBlock8 (short ***enc_mv, int start, int end, int offset) |
| static void | ResetRefBlock8 (char **enc_ref, int start, int end, int offset) |
| static void | SetMotionVectorsMBPSlice (ImageParameters *img, PicMotionParams *motion, Macroblock *currMB) |
| static void | SetMVBSlice16x8 (PicMotionParams *motion, Macroblock *currMB, int pos) |
| static void | SetMVBSlice8x16 (PicMotionParams *motion, Macroblock *currMB, int pos) |
| static void | SetMVBSlice8x8 (PicMotionParams *motion, Macroblock *currMB, int pos_y, int pos_x) |
| static void | SetMotionVectorsMBBSlice (ImageParameters *img, PicMotionParams *motion, Macroblock *currMB) |
| void | SetMotionVectorsMB (ImageParameters *img, PicMotionParams *motion, Macroblock *currMB) |
Definition in file md_common.c.
| static void CopyMVBlock16 | ( | short *** | enc_mv, | |
| short *** | rdo_mv, | |||
| int | start, | |||
| int | end | |||
| ) | [inline, static] |
Copy rdo mv info to 16xN picture mv buffer.
Definition at line 24 of file md_common.c.
References ImageParameters::block_x, and ImageParameters::block_y.
Referenced by SetMotionVectorsMBBSlice(), SetMotionVectorsMBPSlice(), and SetMVBSlice16x8().
| static void CopyMVBlock8 | ( | short *** | enc_mv, | |
| short *** | rdo_mv, | |||
| int | start, | |||
| int | end, | |||
| int | offset | |||
| ) | [inline, static] |
Copy rdo mv info to 8xN picture mv buffer.
Definition at line 69 of file md_common.c.
References ImageParameters::block_x, and ImageParameters::block_y.
Referenced by SetMotionVectorsMBPSlice(), SetMVBSlice8x16(), and SetMVBSlice8x8().
| static void ResetMVBlock16 | ( | short *** | enc_mv, | |
| int | start, | |||
| int | end | |||
| ) | [inline, static] |
Reset corresponding 16xN block picture mv buffer.
Definition at line 39 of file md_common.c.
References ImageParameters::block_x, and ImageParameters::block_y.
Referenced by SetMotionVectorsMBBSlice(), SetMotionVectorsMBPSlice(), and SetMVBSlice16x8().
| static void ResetMVBlock8 | ( | short *** | enc_mv, | |
| int | start, | |||
| int | end, | |||
| int | offset | |||
| ) | [inline, static] |
Reset corresponding 8xN block picture mv buffer.
Definition at line 85 of file md_common.c.
References ImageParameters::block_x, and ImageParameters::block_y.
Referenced by SetMVBSlice8x16(), and SetMVBSlice8x8().
| static void ResetRefBlock16 | ( | char ** | enc_ref, | |
| int | start, | |||
| int | end | |||
| ) | [inline, static] |
Reset corresponding 16xN block picture ref buffer (intra).
Definition at line 54 of file md_common.c.
References ImageParameters::block_x, and ImageParameters::block_y.
Referenced by SetMotionVectorsMBBSlice(), SetMotionVectorsMBPSlice(), and SetMVBSlice16x8().
| static void ResetRefBlock8 | ( | char ** | enc_ref, | |
| int | start, | |||
| int | end, | |||
| int | offset | |||
| ) | [inline, static] |
Reset corresponding 8xN block picture ref buffer (intra).
Definition at line 101 of file md_common.c.
References ImageParameters::block_x, and ImageParameters::block_y.
Referenced by SetMVBSlice8x16(), and SetMVBSlice8x8().
| void SetMotionVectorsMB | ( | ImageParameters * | img, | |
| PicMotionParams * | motion, | |||
| Macroblock * | currMB | |||
| ) |
Sets motion vectors for a macroblock.
Definition at line 407 of file md_common.c.
References SetMotionVectorsMBBSlice(), SetMotionVectorsMBPSlice(), and ImageParameters::type.
Referenced by encode_one_macroblock_low(), RDCost_for_macroblocks(), and set_stored_macroblock_parameters().

| static void SetMotionVectorsMBBSlice | ( | ImageParameters * | img, | |
| PicMotionParams * | motion, | |||
| Macroblock * | currMB | |||
| ) | [static] |
Sets motion vectors for a macroblock in a P Slice.
Definition at line 330 of file md_common.c.
References ImageParameters::all_mv, RD_DATA::all_mv, macroblock::b8pdir, macroblock::bipred_me, ImageParameters::bipred_mv, ImageParameters::block_x, ImageParameters::block_y, CopyMVBlock16(), ImageParameters::max_num_references, macroblock::mb_type, ImageParameters::MbaffFrameFlag, pic_motion_params::mv, InputParameters::RDOQ_QP_Num, pic_motion_params::ref_idx, ResetMVBlock16(), ResetRefBlock16(), SetMVBSlice16x8(), SetMVBSlice8x16(), SetMVBSlice8x8(), and InputParameters::UseRDOQuant.
Referenced by SetMotionVectorsMB().

| static void SetMotionVectorsMBPSlice | ( | ImageParameters * | img, | |
| PicMotionParams * | motion, | |||
| Macroblock * | currMB | |||
| ) | [static] |
Sets motion vectors for a macroblock in a P Slice.
Definition at line 117 of file md_common.c.
References RD_DATA::all_mv, ImageParameters::all_mv, macroblock::b8mode, ImageParameters::block_x, ImageParameters::block_y, CopyMVBlock16(), CopyMVBlock8(), ImageParameters::max_num_references, macroblock::mb_type, ImageParameters::MbaffFrameFlag, pic_motion_params::mv, InputParameters::RDOQ_QP_Num, pic_motion_params::ref_idx, ResetMVBlock16(), ResetRefBlock16(), and InputParameters::UseRDOQuant.
Referenced by SetMotionVectorsMB().

| static void SetMVBSlice16x8 | ( | PicMotionParams * | motion, | |
| Macroblock * | currMB, | |||
| int | pos | |||
| ) | [static] |
Sets motion vectors for a 16x8 partition in a B Slice.
Definition at line 184 of file md_common.c.
References RD_DATA::all_mv, ImageParameters::all_mv, macroblock::b8pdir, macroblock::bipred_me, ImageParameters::bipred_mv, ImageParameters::block_x, ImageParameters::block_y, CopyMVBlock16(), ImageParameters::MbaffFrameFlag, pic_motion_params::mv, InputParameters::RDOQ_QP_Num, pic_motion_params::ref_idx, ResetMVBlock16(), ResetRefBlock16(), and InputParameters::UseRDOQuant.
Referenced by SetMotionVectorsMBBSlice().

| static void SetMVBSlice8x16 | ( | PicMotionParams * | motion, | |
| Macroblock * | currMB, | |||
| int | pos | |||
| ) | [static] |
Sets motion vectors for a 8x16 partition in a B Slice.
Definition at line 226 of file md_common.c.
References RD_DATA::all_mv, ImageParameters::all_mv, macroblock::b8pdir, macroblock::bipred_me, ImageParameters::bipred_mv, ImageParameters::block_x, ImageParameters::block_y, CopyMVBlock8(), ImageParameters::MbaffFrameFlag, pic_motion_params::mv, InputParameters::RDOQ_QP_Num, pic_motion_params::ref_idx, ResetMVBlock8(), ResetRefBlock8(), and InputParameters::UseRDOQuant.
Referenced by SetMotionVectorsMBBSlice().

| static void SetMVBSlice8x8 | ( | PicMotionParams * | motion, | |
| Macroblock * | currMB, | |||
| int | pos_y, | |||
| int | pos_x | |||
| ) | [static] |
Sets motion vectors for a 8x8 partition in a B Slice.
Definition at line 274 of file md_common.c.
References RD_DATA::all_mv, ImageParameters::all_mv, macroblock::b8mode, macroblock::b8pdir, macroblock::bipred_me, ImageParameters::bipred_mv, ImageParameters::block_x, ImageParameters::block_y, CopyMVBlock8(), ImageParameters::MbaffFrameFlag, pic_motion_params::mv, InputParameters::RDOQ_QP_Num, pic_motion_params::ref_idx, ResetMVBlock8(), ResetRefBlock8(), and InputParameters::UseRDOQuant.
Referenced by SetMotionVectorsMBBSlice().
