mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
vpp: use new interface to increase accuracy of ar calculation [1/2]
PD#OTT-2068 Problem: When playing 1280x128 video under normal screen mode, the aspect ratio from decodec is not accurate enough by multipling 0x100. (128x256/1280=25.6). Dropping 0.6 will cause height losing 9 lines. Solution: Using new interface to pass real ar width and height following steps: 1.Set old ar variable to 0x3ff as a trigger flag. 2.set the original ar value into sar_width and sar_height of vframe Verify: verified on franklin Change-Id: I8a794edd968a76f198ee9cb168a7cfb858c858f8 Signed-off-by: Brian Zhu <brian.zhu@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
This commit is contained in:
@@ -410,6 +410,9 @@ struct vframe_s {
|
||||
struct vframe_pic_mode_s pic_mode;
|
||||
|
||||
unsigned long v4l_mem_handle;
|
||||
|
||||
u32 sar_width;
|
||||
u32 sar_height;
|
||||
} /*vframe_t */;
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user