diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2018-01-30 15:34:20 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-01-31 10:43:57 +0800 |
commit | fe0cac201f09f4d4eb1935de1803a58fef9e61d2 (patch) | |
tree | 225fc333a040a2acd5c8e1db5dce478629414b9b | |
parent | 89cd79d27de9b9d79a3ba622ad293bc88249a596 (diff) | |
download | libva-intel-driver-fe0cac201f09f4d4eb1935de1803a58fef9e61d2.tar.gz |
ENC/VP8: set value to VA_ATTRIB_NOT_SUPPORTED when querying VAConfigAttribEncPackedHeaders
vaGetConfigAttributes() should return VA_ATTRIB_NOT_SUPPORTED if the
corresponding attribute is not supported for a given profile/entrypoint
pair. The driver doesn't support any packed header from application for
VP8 encoding.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r-- | src/i965_drv_video.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index e6ec4e7e..61b0d4f7 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -1028,10 +1028,6 @@ i965_get_enc_packed_attributes(VADriverContextP ctx, VAProfile profile, VAEntryp entrypoint == VAEntrypointFEI) { switch (profile) { - case VAProfileVP8Version0_3: - enc_packed_attribs = VA_ENC_PACKED_HEADER_NONE; - break; - case VAProfileMPEG2Simple: case VAProfileMPEG2Main: enc_packed_attribs = VA_ENC_PACKED_HEADER_SEQUENCE | VA_ENC_PACKED_HEADER_PICTURE | VA_ENC_PACKED_HEADER_MISC; @@ -1435,8 +1431,7 @@ i965_CreateConfig(VADriverContextP ctx, if (attrib_found) { uint32_t enc_packed_attribs = i965_get_enc_packed_attributes(ctx, profile, entrypoint); - if (((enc_packed_attribs == VA_ENC_PACKED_HEADER_NONE) && attrib_found->value) || - ((enc_packed_attribs != VA_ENC_PACKED_HEADER_NONE) && !(attrib_found->value & enc_packed_attribs))) + if (!(attrib_found->value & enc_packed_attribs)) vaStatus = VA_STATUS_ERROR_INVALID_VALUE; } } |