[Libva] [PATCH v2 4/8] Gen7 avc encoding: remove profile limitation

Zhong Li zhong.li at intel.com
Thu Aug 7 21:05:39 PDT 2014


Signed-off-by: Zhong Li <zhong.li at intel.com>
---
 src/i965_drv_video.c |    3 +--
 src/i965_encoder.c   |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 32a7c72..3e88cc2 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -678,8 +678,7 @@ i965_GetConfigAttributes(VADriverContextP ctx,
 	case VAConfigAttribEncQualityRange:
 	    if (entrypoint == VAEntrypointEncSlice) {
 		attrib_list[i].value = 1;
-                if (profile == VAProfileH264ConstrainedBaseline &&
-                    IS_GEN7(i965->intel.device_info))
+                if(IS_GEN7(i965->intel.device_info))
                     attrib_list[i].value = ENCODER_QUALITY_RANGE;
 		break;
 	    }
diff --git a/src/i965_encoder.c b/src/i965_encoder.c
index 126dcfc..f1c1f3d 100644
--- a/src/i965_encoder.c
+++ b/src/i965_encoder.c
@@ -428,8 +428,7 @@ gen7_enc_hw_context_init(VADriverContextP ctx, struct object_config *obj_config)
 
     encoder_context = (struct intel_encoder_context *)intel_enc_hw_context_init(ctx, obj_config, gen7_vme_context_init, gen7_mfc_context_init);
 
-    if (obj_config->profile == VAProfileH264ConstrainedBaseline)
-        encoder_context->quality_range = ENCODER_QUALITY_RANGE;
+    encoder_context->quality_range = ENCODER_QUALITY_RANGE;
 
     return (struct hw_context *)encoder_context;
 }
-- 
1.7.9.5



More information about the Libva mailing list