diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-27 09:54:35 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-07-21 11:02:26 +0800 |
commit | 6b661fd325408156d563e192d0ea3456b77c1256 (patch) | |
tree | 52c4da1c101c623dc14f4861962898f99267e969 | |
parent | ed051008e77536dc3ab55b1343d0248f121416c1 (diff) |
xvmc: fix motion_type dump for frame/field picture
(cherry picked from commit 7834a3b118ae4e034f064257762d5c25ada5fe52)
-rw-r--r-- | src/xvmc/intel_xvmc_dump.c | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/src/xvmc/intel_xvmc_dump.c b/src/xvmc/intel_xvmc_dump.c index 12fc52a5..419bd0d8 100644 --- a/src/xvmc/intel_xvmc_dump.c +++ b/src/xvmc/intel_xvmc_dump.c @@ -116,18 +116,25 @@ void intel_xvmc_dump_render(XvMCContext *context, unsigned int picture_structure fprintf(fp, "intra "); fprintf(fp, ") "); fprintf(fp, "mc type "); - if (mb->motion_type & XVMC_PREDICTION_FIELD) - fprintf(fp, "(field) "); - else if (mb->motion_type & XVMC_PREDICTION_FRAME) - fprintf(fp, "(frame) "); - else if (mb->motion_type & XVMC_PREDICTION_DUAL_PRIME) - fprintf(fp, "(dual-prime) "); - else if (mb->motion_type & XVMC_PREDICTION_16x8) - fprintf(fp, "(16x8) "); - else if (mb->motion_type & XVMC_PREDICTION_4MV) - fprintf(fp, "(4MV) "); - else - fprintf(fp, "(none) "); + if (picture_structure == XVMC_FRAME_PICTURE) { + if (mb->motion_type & XVMC_PREDICTION_FIELD) + fprintf(fp, "(field) "); + else if (mb->motion_type & XVMC_PREDICTION_FRAME) + fprintf(fp, "(frame) "); + else if (mb->motion_type & XVMC_PREDICTION_DUAL_PRIME) + fprintf(fp, "(dual-prime) "); + else + fprintf(fp, "(unknown %d) ", mb->motion_type); + } else { /* field */ + if (mb->motion_type & XVMC_PREDICTION_FIELD) + fprintf(fp, "(field) "); + else if (mb->motion_type & XVMC_PREDICTION_DUAL_PRIME) + fprintf(fp, "(dual-prime) "); + else if (mb->motion_type & XVMC_PREDICTION_16x8) + fprintf(fp, "(16x8) "); + else + fprintf(fp, "(unknown %d) ", mb->motion_type); + } if (mb->dct_type == XVMC_DCT_TYPE_FRAME) fprintf(fp, "dct type (frame) "); |