[Libva] [PATCH 15/18] H264_encoding: Force to use CPU to construct the MFC pak command when using qp per mb

Zhao, Yakui yakui.zhao at intel.com
Mon Jan 12 05:01:38 PST 2015


From: Zhao Yakui <yakui.zhao at intel.com>

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/gen6_mfc_common.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gen6_mfc_common.c b/src/gen6_mfc_common.c
index 9dfec15..083fdbe 100644
--- a/src/gen6_mfc_common.c
+++ b/src/gen6_mfc_common.c
@@ -1796,6 +1796,7 @@ intel_h264_enc_roi_config(VADriverContextP ctx,
     int height_in_mbs = pSequenceParameter->picture_height_in_mbs;
 
     vme_context->roi_enabled = 0;
+    encoder_context->soft_batch_force = 0;
     /* Restriction: Disable ROI when multi-slice is enabled */
     if (!encoder_context->context_roi || (encode_state->num_slice_params_ext > 1))
         return;
@@ -1850,6 +1851,9 @@ intel_h264_enc_roi_config(VADriverContextP ctx,
          */
         vme_context->roi_enabled = 0;
     }
+
+    if (vme_context->roi_enabled)
+        encoder_context->soft_batch_force = 1;
     return;
 }
 
-- 
1.7.10.1



More information about the Libva mailing list