OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This file contains an implementation of a class that provides H264 decode | 5 // This file contains an implementation of a class that provides H264 decode |
6 // support for use with VAAPI hardware video decode acceleration on Intel | 6 // support for use with VAAPI hardware video decode acceleration on Intel |
7 // systems. | 7 // systems. |
8 | 8 |
9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_H264_DECODER_H_ | 9 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_H264_DECODER_H_ |
10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_H264_DECODER_H_ | 10 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_H264_DECODER_H_ |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 // X/GLX handles. | 326 // X/GLX handles. |
327 Display* x_display_; | 327 Display* x_display_; |
328 base::Callback<bool(void)> make_context_current_; | 328 base::Callback<bool(void)> make_context_current_; |
329 GLXFBConfig fb_config_; | 329 GLXFBConfig fb_config_; |
330 | 330 |
331 // VA handles. | 331 // VA handles. |
332 VADisplay va_display_; | 332 VADisplay va_display_; |
333 VAConfigID va_config_id_; | 333 VAConfigID va_config_id_; |
334 VAContextID va_context_id_; | 334 VAContextID va_context_id_; |
335 VAProfile profile_; | 335 VAProfile profile_; |
| 336 bool va_context_created_; |
336 | 337 |
337 // Allocated VASurfaces. | 338 // Allocated VASurfaces. |
338 VASurfaceID va_surface_ids_[kNumReqPictures]; | 339 VASurfaceID va_surface_ids_[kNumReqPictures]; |
339 | 340 |
340 // Called by decoder when a picture should be outputted. | 341 // Called by decoder when a picture should be outputted. |
341 OutputPicCB output_pic_cb_; | 342 OutputPicCB output_pic_cb_; |
342 | 343 |
343 // Has static initialization of pre-sandbox components completed successfully? | 344 // Has static initialization of pre-sandbox components completed successfully? |
344 static bool pre_sandbox_init_done_; | 345 static bool pre_sandbox_init_done_; |
345 | 346 |
346 DISALLOW_COPY_AND_ASSIGN(VaapiH264Decoder); | 347 DISALLOW_COPY_AND_ASSIGN(VaapiH264Decoder); |
347 }; | 348 }; |
348 | 349 |
349 } // namespace content | 350 } // namespace content |
350 | 351 |
351 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_H264_DECODER_H_ | 352 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_H264_DECODER_H_ |
OLD | NEW |