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

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

Issue 2926593002: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client (Closed)
Patch Set: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_VP8_DECODER_H_ 5 #ifndef MEDIA_GPU_VP8_DECODER_H_
6 #define MEDIA_GPU_VP8_DECODER_H_ 6 #define MEDIA_GPU_VP8_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 VP8Decoder(VP8Accelerator* accelerator); 66 VP8Decoder(VP8Accelerator* accelerator);
67 ~VP8Decoder() override; 67 ~VP8Decoder() override;
68 68
69 // AcceleratedVideoDecoder implementation. 69 // AcceleratedVideoDecoder implementation.
70 bool Flush() override WARN_UNUSED_RESULT; 70 bool Flush() override WARN_UNUSED_RESULT;
71 void Reset() override; 71 void Reset() override;
72 void SetStream(const uint8_t* ptr, size_t size) override; 72 void SetStream(const uint8_t* ptr, size_t size) override;
73 DecodeResult Decode() override WARN_UNUSED_RESULT; 73 DecodeResult Decode() override WARN_UNUSED_RESULT;
74 gfx::Size GetPicSize() const override; 74 gfx::Size GetPicSize() const override;
75 gfx::Rect GetVisibleRect() const override;
75 size_t GetRequiredNumOfPictures() const override; 76 size_t GetRequiredNumOfPictures() const override;
76 77
77 private: 78 private:
78 bool DecodeAndOutputCurrentFrame(); 79 bool DecodeAndOutputCurrentFrame();
79 void RefreshReferenceFrames(); 80 void RefreshReferenceFrames();
80 81
81 enum State { 82 enum State {
82 kNeedStreamMetadata, // After initialization, need a keyframe. 83 kNeedStreamMetadata, // After initialization, need a keyframe.
83 kDecoding, // Ready to decode from any point. 84 kDecoding, // Ready to decode from any point.
84 kAfterReset, // After Reset(), need a resume point. 85 kAfterReset, // After Reset(), need a resume point.
(...skipping 18 matching lines...) Expand all
103 int vertical_scale_; 104 int vertical_scale_;
104 105
105 VP8Accelerator* accelerator_; 106 VP8Accelerator* accelerator_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(VP8Decoder); 108 DISALLOW_COPY_AND_ASSIGN(VP8Decoder);
108 }; 109 };
109 110
110 } // namespace media 111 } // namespace media
111 112
112 #endif // MEDIA_GPU_VP8_DECODER_H_ 113 #endif // MEDIA_GPU_VP8_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698