OLD | NEW |
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_VP9_DECODER_H_ | 5 #ifndef MEDIA_GPU_VP9_DECODER_H_ |
6 #define MEDIA_GPU_VP9_DECODER_H_ | 6 #define MEDIA_GPU_VP9_DECODER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // |ref_pictures| for reference. | 52 // |ref_pictures| for reference. |
53 // | 53 // |
54 // Note that returning from this method does not mean that the decode | 54 // Note that returning from this method does not mean that the decode |
55 // process is finished, but the caller may drop its references to |pic| | 55 // process is finished, but the caller may drop its references to |pic| |
56 // and |ref_pictures| immediately, and the data in |seg| and |lf| does not | 56 // and |ref_pictures| immediately, and the data in |seg| and |lf| does not |
57 // need to remain valid after this method returns. | 57 // need to remain valid after this method returns. |
58 // | 58 // |
59 // Return true when successful, false otherwise. | 59 // Return true when successful, false otherwise. |
60 virtual bool SubmitDecode( | 60 virtual bool SubmitDecode( |
61 const scoped_refptr<VP9Picture>& pic, | 61 const scoped_refptr<VP9Picture>& pic, |
62 const Vp9Segmentation& seg, | 62 const Vp9SegmentationParams& seg, |
63 const Vp9LoopFilter& lf, | 63 const Vp9LoopFilterParams& lf, |
64 const std::vector<scoped_refptr<VP9Picture>>& ref_pictures) = 0; | 64 const std::vector<scoped_refptr<VP9Picture>>& ref_pictures) = 0; |
65 | 65 |
66 // Schedule output (display) of |pic|. | 66 // Schedule output (display) of |pic|. |
67 // | 67 // |
68 // Note that returning from this method does not mean that |pic| has already | 68 // Note that returning from this method does not mean that |pic| has already |
69 // been outputted (displayed), but guarantees that all pictures will be | 69 // been outputted (displayed), but guarantees that all pictures will be |
70 // outputted in the same order as this method was called for them, and that | 70 // outputted in the same order as this method was called for them, and that |
71 // they are decoded before outputting (assuming SubmitDecode() has been | 71 // they are decoded before outputting (assuming SubmitDecode() has been |
72 // called for them beforehand). Decoder may drop its references to |pic| | 72 // called for them beforehand). Decoder may drop its references to |pic| |
73 // immediately after calling this method. | 73 // immediately after calling this method. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // VP9Accelerator instance owned by the client. | 126 // VP9Accelerator instance owned by the client. |
127 VP9Accelerator* accelerator_; | 127 VP9Accelerator* accelerator_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(VP9Decoder); | 129 DISALLOW_COPY_AND_ASSIGN(VP9Decoder); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace media | 132 } // namespace media |
133 | 133 |
134 #endif // MEDIA_GPU_VP9_DECODER_H_ | 134 #endif // MEDIA_GPU_VP9_DECODER_H_ |
OLD | NEW |