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

Side by Side Diff: media/gpu/android_video_decode_accelerator.h

Issue 2365103002: Send the h264 SPS and PPS configuration parameters to AVDA (Closed)
Patch Set: Make it a non-member function Created 4 years, 2 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Initial coded size. The actual size might change at any time, so this 119 // Initial coded size. The actual size might change at any time, so this
120 // is only a hint. 120 // is only a hint.
121 gfx::Size initial_expected_coded_size_; 121 gfx::Size initial_expected_coded_size_;
122 122
123 // Should we allow MediaCodec to autodetect the codec type (true), or 123 // Should we allow MediaCodec to autodetect the codec type (true), or
124 // select a software decoder manually (false). This is because fallback to 124 // select a software decoder manually (false). This is because fallback to
125 // software when autodetecting can sometimes hang mediaserver. 125 // software when autodetecting can sometimes hang mediaserver.
126 bool allow_autodetection_ = false; 126 bool allow_autodetection_ = false;
127 127
128 // Codec specific data (SPS and PPS for H264).
129 std::vector<uint8_t> csd0_;
130 std::vector<uint8_t> csd1_;
131
128 protected: 132 protected:
129 friend class base::RefCountedThreadSafe<CodecConfig>; 133 friend class base::RefCountedThreadSafe<CodecConfig>;
130 virtual ~CodecConfig(); 134 virtual ~CodecConfig();
131 135
132 private: 136 private:
133 DISALLOW_COPY_AND_ASSIGN(CodecConfig); 137 DISALLOW_COPY_AND_ASSIGN(CodecConfig);
134 }; 138 };
135 139
136 // Callback that is called when the SurfaceView becomes available, if it's 140 // Callback that is called when the SurfaceView becomes available, if it's
137 // not during Initialize. |success| is true if it is now available, false 141 // not during Initialize. |success| is true if it is now available, false
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 389
386 // WeakPtrFactory for posting tasks back to |this|. 390 // WeakPtrFactory for posting tasks back to |this|.
387 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 391 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
388 392
389 friend class AndroidVideoDecodeAcceleratorTest; 393 friend class AndroidVideoDecodeAcceleratorTest;
390 }; 394 };
391 395
392 } // namespace media 396 } // namespace media
393 397
394 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 398 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698