package com.tencent.mm.plugin.mmsight.model.a;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.mmsight.model.a.b.a;
import com.tencent.mm.plugin.sight.base.SightVideoJNI;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class b$1 implements Runnable {
    final /* synthetic */ a ovy;
    final /* synthetic */ b ovz;

    b$1(b bVar, a aVar) {
        this.ovz = bVar;
        this.ovy = aVar;
    }

    public final void run() {
        AppMethodBeat.i(76569);
        b bVar = this.ovz;
        ab.i("MicroMsg.FrameBufProcessor", "process srcWidth %d srcHeight %d targetWidth %d targetHeight %d bufIndex: %d", new Object[]{Integer.valueOf(bVar.fYx), Integer.valueOf(bVar.fYy), Integer.valueOf(bVar.eTi), Integer.valueOf(bVar.eTj), Integer.valueOf(bVar.ovt)});
        if (bVar.eTl == 21 || bVar.eTl == 2130706688) {
            SightVideoJNI.NV21ToYUV420XXAndScaleRotate(bVar.ovq, bVar.ovr, bVar.fYx, bVar.fYy, bVar.eTi, bVar.eTj, 1, bVar.rotate, bVar.ovv, bVar.ovx, bVar.ovw);
        } else if (bVar.eTl == 19) {
            SightVideoJNI.NV21ToYUV420XXAndScaleRotate(bVar.ovq, bVar.ovr, bVar.fYx, bVar.fYy, bVar.eTi, bVar.eTj, 2, bVar.rotate, bVar.ovv, bVar.ovx, bVar.ovw);
        }
        ab.v("MicroMsg.FrameBufProcessor", "process used %sms %d %d bufIndex %d", new Object[]{Long.valueOf(bo.az(bVar.ovu)), Integer.valueOf(bVar.ovq.length), Integer.valueOf(bVar.ovr.length), Integer.valueOf(bVar.ovt)});
        this.ovy.a(this.ovz);
        j.owk.g(this.ovz.ovq);
        AppMethodBeat.o(76569);
    }
}
