diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2012-03-27 14:55:23 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-03-27 14:55:23 +0800 |
commit | 546fdcfa2f4dd162fdd19187255a57272d4f1745 (patch) | |
tree | 8490ead9b8cbad6fa1a93fc0a148d4fd38b48856 /src/i965_drv_video.h | |
parent | a97985da277cd48302cfcb0374604874fc77ef7d (diff) | |
download | vaapi-intel-driver-546fdcfa2f4dd162fdd19187255a57272d4f1745.tar.gz vaapi-intel-driver-546fdcfa2f4dd162fdd19187255a57272d4f1745.tar.bz2 vaapi-intel-driver-546fdcfa2f4dd162fdd19187255a57272d4f1745.zip |
Check the max resolution supported by hardware when create VA context
It will avoid GPU hang when try to play unsupported large resolution
videos.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_drv_video.h')
-rw-r--r-- | src/i965_drv_video.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h index 03b4c5d..ab993bc 100644 --- a/src/i965_drv_video.h +++ b/src/i965_drv_video.h @@ -209,6 +209,8 @@ struct hw_codec_info { struct hw_context *(*dec_hw_context_init)(VADriverContextP, VAProfile); struct hw_context *(*enc_hw_context_init)(VADriverContextP, VAProfile); + int max_width; + int max_height; }; |