X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fsnow.h;h=59c710b5f9fdc459f92c830993c2aea0b83cf384;hb=93a0f4a3cbb823b2ddcb66a3a4c8f08aa7934078;hp=d126d68a4991c0aac0a79f64cfc82ac2acd1bcce;hpb=bc3d2f25783a4f61b7018800a12182dc46ff8325;p=ffmpeg diff --git a/libavcodec/snow.h b/libavcodec/snow.h index d126d68a499..59c710b5f9f 100644 --- a/libavcodec/snow.h +++ b/libavcodec/snow.h @@ -48,14 +48,14 @@ #define LOG2_OBMC_MAX 8 #define OBMC_MAX (1<<(LOG2_OBMC_MAX)) typedef struct BlockNode{ - int16_t mx; - int16_t my; - uint8_t ref; - uint8_t color[3]; - uint8_t type; + int16_t mx; ///< Motion vector component X, see mv_scale + int16_t my; ///< Motion vector component Y, see mv_scale + uint8_t ref; ///< Reference frame index + uint8_t color[3]; ///< Color for intra + uint8_t type; ///< Bitfield of BLOCK_* //#define TYPE_SPLIT 1 -#define BLOCK_INTRA 1 -#define BLOCK_OPT 2 +#define BLOCK_INTRA 1 ///< Intra block, inter otherwise +#define BLOCK_OPT 2 ///< Block needs no checks in this round of iterative motion estiation //#define TYPE_NOCOLOR 4 uint8_t level; //FIXME merge into type? }BlockNode; @@ -250,30 +250,6 @@ int ff_snow_get_buffer(SnowContext *s, AVFrame *frame); /* common inline functions */ //XXX doublecheck all of them should stay inlined -static inline void snow_set_blocks(SnowContext *s, int level, int x, int y, int l, int cb, int cr, int mx, int my, int ref, int type){ - const int w= s->b_width << s->block_max_depth; - const int rem_depth= s->block_max_depth - level; - const int index= (x + y*w) << rem_depth; - const int block_w= 1<block[index + i + j*w]= block; - } - } -} - static inline void pred_mv(SnowContext *s, int *mx, int *my, int ref, const BlockNode *left, const BlockNode *top, const BlockNode *tr){ if(s->ref_frames == 1){