Commit 820a81c1 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

mlv_play, silent, pic_view: updated after API change

(todo: mlv_rec)

--HG--
branch : crop_rec_4k
parent 31a728b97143
......@@ -1378,7 +1378,9 @@ static void mlv_play_render_frame(frame_buf_t *buffer)
raw_info.bits_per_pixel = buffer->bitDepth;
raw_info.black_level = buffer->blackLevel;
raw_set_geometry(buffer->xRes, buffer->yRes, 0, 0, 0, 0);
raw_force_aspect_ratio_1to1();
/* fixme: read aspect ratio from metadata */
raw_force_aspect_ratio(1, 1);
if(raw_twk_available())
{
......
......@@ -150,7 +150,7 @@ static int dng_show(char* filename)
raw_info.buffer = buf;
raw_set_geometry(raw_info.width, raw_info.height, raw_info.active_area.x1, raw_info.width - raw_info.active_area.x2, raw_info.active_area.y1, raw_info.height - raw_info.active_area.y2);
raw_force_aspect_ratio_1to1();
raw_force_aspect_ratio(1, 1);
vram_clear_lv();
raw_preview_fast_ex((void*)-1, (void*)-1, -1, -1, RAW_PREVIEW_COLOR_HALFRES);
......
......@@ -614,7 +614,7 @@ static unsigned int silent_pic_preview(unsigned int ctx)
}
raw_set_preview_rect(raw_info.active_area.x1, raw_info.active_area.y1, raw_info.active_area.x2 - raw_info.active_area.x1, raw_info.active_area.y2 - raw_info.active_area.y1, 1);
raw_force_aspect_ratio_1to1();
raw_force_aspect_ratio(0, 0);
raw_preview_fast_ex(raw_buf, preview_buf, first_line, last_line, ultra_fast);
/* we have modified the raw preview rectangle; will force a refresh of raw parameters when preview is no longer needed */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment