Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Side by Side Diff: content/common/gpu/media/vaapi_h264_decoder.h

Issue 10823246: VAVDA: Fix a crash if we fail parsing SPS/DecodeInitial. (Closed) Base URL: https://git.chromium.org/git/chromium/src@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/vaapi_h264_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/vaapi_h264_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698