diff options
author | hding3 <haitao.ding@intel.com> | 2015-07-24 04:16:38 -0700 |
---|---|---|
committer | Thierry Strudel <tstrudel@google.com> | 2015-07-27 10:03:55 -0700 |
commit | d796955a5f4639769cd919935f8773def641d66f (patch) | |
tree | 299791540acb74ea0f0e3d643a49dac79ba2ca41 | |
parent | 212b97f9217423c9e6a7811d2ce518de6530b4a5 (diff) | |
download | psb_video-d796955a5f4639769cd919935f8773def641d66f.tar.gz |
psb_video[VPP]: Use aligned height for YUV image height parameter
Bug: 22618392
Read YUV data align with decoder output.
This means UV data are stored at the offset of alight height instead of video height.
Change-Id: I80b54adc23096bc6eade86807db01c1fb1ec6c4c
Signed-off-by: hding3 <haitao.ding@intel.com>
-rw-r--r-- | src/vsp_VPP.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vsp_VPP.c b/src/vsp_VPP.c index 3409a09..b3706de 100644 --- a/src/vsp_VPP.c +++ b/src/vsp_VPP.c @@ -572,7 +572,7 @@ static VAStatus vsp__VPP_process_pipeline_param(context_VPP_p ctx, object_contex cell_proc_picture_param->input_picture[0].surface_id = pipeline_param->surface; vsp_cmdbuf_reloc_pic_param(&(cell_proc_picture_param->input_picture[0].base), ctx->pic_param_offset, &(input_surface->psb_surface->buf), cmdbuf->param_mem_loc, cell_proc_picture_param); - cell_proc_picture_param->input_picture[0].height = input_surface->height_origin; + cell_proc_picture_param->input_picture[0].height = input_surface->height; cell_proc_picture_param->input_picture[0].width = width; cell_proc_picture_param->input_picture[0].irq = 0; cell_proc_picture_param->input_picture[0].stride = input_surface->psb_surface->stride; @@ -661,7 +661,7 @@ static VAStatus vsp__VPP_process_pipeline_param(context_VPP_p ctx, object_contex width = ALIGN_TO_16(cur_output_surf->width); if (width > cur_output_surf->psb_surface->stride) width = cur_output_surf->psb_surface->stride; - height = cur_output_surf->height_origin; + height = cur_output_surf->height; stride = cur_output_surf->psb_surface->stride; /* Check the rotate bit */ |