/* Any MB that was coded, or that analysis decided to skip, has quality commensurate with its QP.
* But if deblocking affects neighboring MBs that were force-skipped, blur might accumulate there.
* So reset their effective QP to max, to indicate that lack of guarantee. */
- if( h->fdec->mb_info && M32( bs[0][0] ) )
+ if( h->fenc->mb_info && M32( bs[0][0] ) )
{
-#define RESET_EFFECTIVE_QP(xy) h->fdec->effective_qp[xy] |= 0xff * !!(h->fdec->mb_info[xy] & X264_MBINFO_CONSTANT);
+#define RESET_EFFECTIVE_QP(xy) h->fdec->effective_qp[xy] |= 0xff * !!(h->fenc->mb_info[xy] & X264_MBINFO_CONSTANT);
RESET_EFFECTIVE_QP(mb_xy);
RESET_EFFECTIVE_QP(h->mb.i_mb_left_xy[0]);
}
int intra_deblock = intra_cur || intra_top;
/* This edge has been modified, reset effective qp to max. */
- if( h->fdec->mb_info && M32( bs[1][0] ) )
+ if( h->fenc->mb_info && M32( bs[1][0] ) )
{
RESET_EFFECTIVE_QP(mb_xy);
RESET_EFFECTIVE_QP(h->mb.i_mb_top_xy);
dst->i_pic_struct = src->i_pic_struct;
dst->extra_sei = src->extra_sei;
dst->opaque = src->opaque;
- dst->mb_info = src->prop.mb_info;
- dst->mb_info_free = src->prop.mb_info_free;
+ dst->mb_info = h->param.analyse.b_mb_info ? src->prop.mb_info : NULL;
+ dst->mb_info_free = h->param.analyse.b_mb_info ? src->prop.mb_info_free : NULL;
uint8_t *pix[3];
int stride[3];
x264_emms();
- if( h->fdec->mb_info_free )
- h->fdec->mb_info_free( h->fdec->mb_info );
+ if( h->fenc->mb_info_free )
+ h->fenc->mb_info_free( h->fenc->mb_info );
/* generate buffering period sei and insert it into place */
if( h->i_thread_frames > 1 && h->fenc->b_keyframe && h->sps->vui.b_nal_hrd_parameters_present )