summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorBoyuan Zhang <boyuan.zhang@amd.com>2016-07-18 18:43:37 -0400
committerChristian König <christian.koenig@amd.com>2016-07-19 12:36:46 +0200
commit60c7450f16b8275c896103da27a5d4a25ce9be9e (patch)
tree9585ceff32fdd4259e3f952c3f4645036a5f3fa4 /src/gallium/include
parented9dd3bcd9990b321f523823287643cbf893949f (diff)
downloadexternal_mesa3d-60c7450f16b8275c896103da27a5d4a25ce9be9e.zip
external_mesa3d-60c7450f16b8275c896103da27a5d4a25ce9be9e.tar.gz
external_mesa3d-60c7450f16b8275c896103da27a5d4a25ce9be9e.tar.bz2
vl: add entry point
Add entrypoint to distinguish H.264 decode and encode. For example, in patch 5/11 when is calling "VaCreateContext", "pps" and "sps" shouldn't be allocated for H.264 encoding. So we need to use the entry_point to determine this is H.264 decode or H.264 encode. We can use config to determine the entrypoint since config_id is passed to us for VaCreateContext call. However, for VaDestoyContext call, only context_id is passed to us. So we need to know the entrypoint in order to not free the pps/sps for encoding case. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_video_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h
index 754d013..39b3905 100644
--- a/src/gallium/include/pipe/p_video_state.h
+++ b/src/gallium/include/pipe/p_video_state.h
@@ -131,6 +131,7 @@ enum pipe_h264_enc_rate_control_method
struct pipe_picture_desc
{
enum pipe_video_profile profile;
+ enum pipe_video_entrypoint entry_point;
};
struct pipe_quant_matrix