Fixed bug when delete video in the end.
This commit is contained in:
parent
b303800a68
commit
6defbcaf60
|
@ -1342,7 +1342,7 @@ void PBView_DrawNoFile(void)
|
||||||
VF_GFX_DRAW_RECT *pDrawRectDst = &DrawRectDst;
|
VF_GFX_DRAW_RECT *pDrawRectDst = &DrawRectDst;
|
||||||
UINT32 disp_rotate = GxVideo_GetDeviceCtrl(DOUT1, DISPLAY_DEVCTRL_SWAPXY);
|
UINT32 disp_rotate = GxVideo_GetDeviceCtrl(DOUT1, DISPLAY_DEVCTRL_SWAPXY);
|
||||||
USIZE dst_aspect_ratio = GxVideo_GetDeviceAspect(DOUT1);
|
USIZE dst_aspect_ratio = GxVideo_GetDeviceAspect(DOUT1);
|
||||||
ISIZE disp_size = GxVideo_GetDeviceSize(DOUT1);
|
// ISIZE disp_size = GxVideo_GetDeviceSize(DOUT1);
|
||||||
SIZECONVERT_INFO CovtInfo = {0};
|
SIZECONVERT_INFO CovtInfo = {0};
|
||||||
HD_URECT DstDispRect = {0};
|
HD_URECT DstDispRect = {0};
|
||||||
|
|
||||||
|
@ -1379,8 +1379,10 @@ void PBView_DrawNoFile(void)
|
||||||
DstDispRect.h = p_video_out_syscaps->output_dim.h;
|
DstDispRect.h = p_video_out_syscaps->output_dim.h;
|
||||||
}
|
}
|
||||||
///hard code
|
///hard code
|
||||||
DstDispRect.w = disp_size.w;
|
// DstDispRect.w = disp_size.w;
|
||||||
DstDispRect.h = disp_size.h;
|
// DstDispRect.h = disp_size.h;
|
||||||
|
DstDispRect.w = ALIGN_CEIL_8(DstDispRect.w);
|
||||||
|
DstDispRect.h = ALIGN_CEIL_16(DstDispRect.h);
|
||||||
|
|
||||||
hd_view_buf.blk_size = DstDispRect.w*DstDispRect.h*3/2; //YUV420
|
hd_view_buf.blk_size = DstDispRect.w*DstDispRect.h*3/2; //YUV420
|
||||||
PBView_get_hd_common_buf(&hd_view_buf);
|
PBView_get_hd_common_buf(&hd_view_buf);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user