Example #1
0
void printDataBlit(char *title, struct fimg2d_blit *cmd)
{
    LOGI("%s\n", title);

    LOGI("    sequence_no. = %u\n", cmd->seq_no);
    LOGI("    blit_op      = %d(%s)\n", cmd->op, optbl[cmd->op].str);
    LOGI("    fill_color   = %X\n", cmd->solid_color);
    LOGI("    global_alpha = %u\n", (unsigned int)cmd->g_alpha);
    LOGI("    PREMULT      = %s\n", cmd->premult == PREMULTIPLIED ? "PREMULTIPLIED" : "NON-PREMULTIPLIED");
    LOGI("    do_dither    = %s\n", cmd->dither == true ? "dither" : "no-dither");

    printDataBlitRotate(cmd->rotate);

    printDataBlitScale(cmd->scaling);

    printDataBlitImage("SRC", cmd->src);
    printDataBlitImage("DST", cmd->dst);
    printDataBlitImage("MSK", cmd->msk);

    printDataBlitRect("SRC", cmd->src_rect);
    printDataBlitRect("DST", cmd->dst_rect);
    printDataBlitRect("MSK", cmd->msk_rect);

    printDataBlitClip(cmd->clipping);
}
Example #2
0
static void printDataBlit(char *title, struct fimg2d_blit *cmd)
{
    DEBUG_PRINT("%s\n", title);

    DEBUG_PRINT("    sequence_no. = %u\n", cmd->seq_no);
    DEBUG_PRINT("    blit_op      = %d(%s)\n", cmd->op, optbl[cmd->op].str);
    DEBUG_PRINT("    fill_color   = %lX\n", cmd->param.solid_color);
    DEBUG_PRINT("    global_alpha = %u\n", (unsigned int)cmd->param.g_alpha);
    DEBUG_PRINT("    PREMULT      = %s\n", cmd->param.premult == PREMULTIPLIED ? "PREMULTIPLIED" : "NON-PREMULTIPLIED");
    DEBUG_PRINT("    do_dither    = %s\n", cmd->param.dither == true ? "dither" : "no-dither");

    printDataBlitRotate(cmd->param.rotate);

    printDataBlitScale(&cmd->param.scaling);

    printDataBlitImage("SRC", cmd->src);
    printDataBlitImage("DST", cmd->dst);
    printDataBlitImage("MSK", cmd->msk);

    printDataBlitRect("SRC", &cmd->src->rect);
    if (cmd->dst != NULL)
        printDataBlitRect("DST", &cmd->dst->rect);
    if (cmd->msk != NULL)
        printDataBlitRect("MSK", &cmd->msk->rect);

    printDataBlitClip(&cmd->param.clipping);
}