static int va_FoolFillCodedBuf(VADisplay dpy, struct fool_context *fool_ctx) { if (fool_ctx->entrypoint == VAEntrypointEncSlice) va_FoolFillCodedBufEnc(dpy, fool_ctx); else if (fool_ctx->entrypoint == VAEntrypointEncPicture) va_FoolFillCodedBufJPG(dpy, fool_ctx); return 0; }
static int va_FoolFillCodedBuf(int idx) { if (fool_context[idx].entrypoint == VAEntrypointEncSlice) va_FoolFillCodedBufEnc(idx); else if (fool_context[idx].entrypoint == VAEntrypointEncPicture) va_FoolFillCodedBufJPG(idx); return 0; }