Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Kindle screen refresh experiments... #198

Merged
merged 10 commits into from
Jul 6, 2014
Merged

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Jul 6, 2014

Related to #550

@NiLuJe
Copy link
Member Author

NiLuJe commented Jul 6, 2014

Well, #550 in koreader/koreader, that is ;p. And PR #704 over there, too.

Use the same temp flag as Amazon on Touch devices.
By checking waitpid's return value properly.
chrox added a commit that referenced this pull request Jul 6, 2014
Some Kindle screen refresh experiments...
@chrox chrox merged commit 2ba492e into koreader:master Jul 6, 2014
refarea[0].flags = 0
-- NOTE: related to EPDC_FLAG_USE_ALT_BUFFER?
refarea[0].alt_buffer_data.phys_addr = 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to:

/*
 * Are we using FB or an alternate (overlay)
 * buffer for source of update?
 */
if (upd_data->flags & EPDC_FLAG_USE_ALT_BUFFER) {
    src_width = upd_data->alt_buffer_data.width;
    src_height = upd_data->alt_buffer_data.height;
    src_upd_region = &upd_data->alt_buffer_data.alt_update_region;
} else {
    src_width = fb_data->epdc_fb_var.xres_virtual;
    src_height = fb_data->epdc_fb_var.yres;
    src_upd_region = &upd_data->update_region;
}

and

if (upd_data->flags & EPDC_FLAG_USE_ALT_BUFFER) {
    sg_dma_address(&fb_data->sg[0]) =
        upd_data->alt_buffer_data.phys_addr + pxp_input_offs;
} else {
    sg_dma_address(&fb_data->sg[0]) =
        fb_data->info.fix.smem_start + fb_data->fb_offset + pxp_input_offs;
    sg_set_page(&fb_data->sg[0],
                virt_to_page(fb_data->info.screen_base),
                fb_data->info.fix.smem_len,
                offset_in_page(fb_data->info.screen_base));
}

Yes.

@NiLuJe
Copy link
Member Author

NiLuJe commented Jul 7, 2014

@houqp : Hah, thanks :). From a practical standpoint, what would that be used for? Cheaply compositing something on top of the current fb?

@houqp
Copy link
Member

houqp commented Jul 7, 2014

I guess yes :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants