Skip to content

Commit

Permalink
vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
Browse files Browse the repository at this point in the history
PD#TV-3962

Problem:
3D mode does not support crop function

Solution:
Remove crop when 3D display.

Verify:
Verified on x301

Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
  • Loading branch information
Brian Zhu authored and kongsuozt committed Apr 3, 2019
1 parent 6862fb2 commit e8a3758
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/amlogic/media/video_sink/vpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,8 @@ static int vpp_set_filters_internal(
reverse = input->reverse;
#endif

if (vf->type & VIDTYPE_MVC) {
if ((vf->type & VIDTYPE_MVC) ||
(input->proc_3d_type & MODE_3D_ENABLE)) {
video_source_crop_left = 0;
video_source_crop_right = 0;
video_source_crop_top = 0;
Expand Down Expand Up @@ -2514,7 +2515,8 @@ static int vpp_set_filters_no_scaler_internal(
reverse = input->reverse;
#endif

if (vf->type & VIDTYPE_MVC) {
if ((vf->type & VIDTYPE_MVC) ||
(input->proc_3d_type & MODE_3D_ENABLE)) {
video_source_crop_left = 0;
video_source_crop_right = 0;
video_source_crop_top = 0;
Expand Down

0 comments on commit e8a3758

Please sign in to comment.