Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-18 Thread Christian König
Am 16.07.2016 um 00:41 schrieb Boyuan Zhang: 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.2

[Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-15 Thread Boyuan Zhang
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

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Zhang, Boyuan
: Christian König; mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] [PATCH 02/11] vl: add entry point On 14 July 2016 at 16:06, Zhang, Boyuan wrote: > For example, in patch 5/11 when " VaCreateContext", we used to CALLOC_STRUCT > for "pps" and "sps" whenever w

[Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Boyuan Zhang
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

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Emil Velikov
On 14 July 2016 at 16:06, Zhang, Boyuan wrote: > For example, in patch 5/11 when " VaCreateContext", we used to CALLOC_STRUCT > for "pps" and "sps" whenever we see video format is H.264. This is fine for > decode ONLY case. Now, since we added H.264 encoding, "pps" and "sps" > shouldn't be allo

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Zhang, Boyuan
For example, in patch 5/11 when " VaCreateContext", we used to CALLOC_STRUCT for "pps" and "sps" whenever we see video format is H.264. This is fine for decode ONLY case. Now, since we added H.264 encoding, "pps" and "sps" shouldn't be allocated. So we need to use the entry_point to determine th

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Christian König
Am 14.07.2016 um 00:51 schrieb Boyuan Zhang: Add entry point for encoding which previously hardcoded for decoding purpose only I still can't figure out why we would want this? The variable doesn't seem to be used in the whole patchset. Christian. Signed-off-by: Boyuan Zhang --- src/ga

[Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-13 Thread Boyuan Zhang
Add entry point for encoding which previously hardcoded for decoding purpose only Signed-off-by: Boyuan Zhang --- src/gallium/include/pipe/p_video_state.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h ind