File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2031,6 +2031,12 @@ static int init_va(void)
2031
2031
for (i = 0 ; i < VAConfigAttribTypeMax ; i ++ )
2032
2032
attrib [i ].type = i ;
2033
2033
2034
+ if (lowpower )
2035
+ {
2036
+ entryPoint = VAEntrypointEncSliceLP ;
2037
+ LCU_SIZE = 64 ;
2038
+ }
2039
+
2034
2040
va_status = vaGetConfigAttributes (va_dpy , hevc_profile , entryPoint ,
2035
2041
& attrib [0 ], VAConfigAttribTypeMax );
2036
2042
CHECK_VASTATUS (va_status , "vaGetConfigAttributes" );
@@ -2173,11 +2179,6 @@ static int setup_encode()
2173
2179
VASurfaceID * tmp_surfaceid ;
2174
2180
int codedbuf_size , i ;
2175
2181
2176
- if (lowpower )
2177
- {
2178
- entryPoint = VAEntrypointEncSliceLP ;
2179
- LCU_SIZE = 64 ;
2180
- }
2181
2182
va_status = vaCreateConfig (va_dpy , hevc_profile , entryPoint ,
2182
2183
& config_attrib [0 ], config_attrib_num , & config_id );
2183
2184
CHECK_VASTATUS (va_status , "vaCreateConfig" );
You can’t perform that action at this time.
0 commit comments