diff --git a/va/va.h b/va/va.h index 7d82c597c..49979f1ed 100644 --- a/va/va.h +++ b/va/va.h @@ -1151,8 +1151,10 @@ typedef union _VAConfigAttribValDecJPEG { struct { /** \brief Set to (1 << VA_ROTATION_xxx) for supported rotation angles. */ uint32_t rotation : 4; + /** \brief set to 1 for crop and partial decode support, 0 if not supported */ + uint32_t crop : 1; /** \brief Reserved for future use. */ - uint32_t reserved : 28; + uint32_t reserved : 27; } bits; uint32_t value; } VAConfigAttribValDecJPEG; diff --git a/va/va_dec_jpeg.h b/va/va_dec_jpeg.h index 7bb26c2ba..2cd6b42c4 100644 --- a/va/va_dec_jpeg.h +++ b/va/va_dec_jpeg.h @@ -75,8 +75,10 @@ typedef struct _VAPictureParameterBufferJPEGBaseline { uint8_t color_space; /** \brief Set to VA_ROTATION_* for a single rotation angle reported by VAConfigAttribDecJPEG. */ uint32_t rotation; + /** \brief crop rectangle boundary in pixels */ + VARectangle crop_rectangle; /** \brief Reserved bytes for future use, must be zero */ - uint32_t va_reserved[VA_PADDING_MEDIUM - 1]; + uint32_t va_reserved[VA_PADDING_MEDIUM - 3]; } VAPictureParameterBufferJPEGBaseline; /**