MpegEncContextm;// needed for motion estimation, should not be used for anything else, the idea is to eventually make the motion estimation independent of MpegEncContext, so this will be removed then (FIXME/XXX)
...
...
@@ -3518,7 +3521,7 @@ redo_frame:
intx,y;
// int bits= put_bits_count(&s->c.pb);
if(!(avctx->flags2&CODEC_FLAG2_MEMC_ONLY)){
if(!s->memc_only){
//FIXME optimize
if(pict->data[plane_index])//FIXME gray hack
for(y=0;y<h;y++){
...
...
@@ -3676,6 +3679,20 @@ static av_cold int encode_end(AVCodecContext *avctx)
return0;
}
#define OFFSET(x) offsetof(SnowContext, x)
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
staticconstAVOptionoptions[]={
{"memc_only","Only do ME/MC (I frames -> ref, P frame -> ME+MC).",OFFSET(memc_only),FF_OPT_TYPE_INT,{0},0,1,VE},