summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/va_private.h
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-08-15 14:08:02 -0400
committerLeo Liu <[email protected]>2017-08-21 10:09:09 -0400
commit2ebc530ca376fc5f07b7982d9598bdfb5fe4032e (patch)
tree804be71d602fc555e95758a0d9afbb58c2b2b13f /src/gallium/state_trackers/va/va_private.h
parent7319ff87871c8e5f909a1674cd60279ef53cbbd0 (diff)
st/va: detect MJPEG format from bitstream
To find if the format is supported YUYV by sampling factor which is embedded from bitstream. So we could use this info for buffer reallocation on the correct format. Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/va_private.h')
-rw-r--r--src/gallium/state_trackers/va/va_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index a437a5b90f1..9c093181277 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -277,6 +277,10 @@ typedef struct {
uint8_t start_code[32];
} mpeg4;
+ struct {
+ unsigned sampling_factor;
+ } mjpeg;
+
struct vl_deint_filter *deint;
vlVaBuffer *coded_buf;
int target_id;