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

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

Issue 2229353002: V4L2SVDA: Add a VP9Accelerator implementation utilizing the V4L2 VP9 frame API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compilation fixes Created 4 years, 3 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 | « media/filters/vp9_uncompressed_header_parser.cc ('k') | media/gpu/v4l2_device.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 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_ACCELERATED_VIDEO_DECODER_H_ 5 #ifndef MEDIA_GPU_ACCELERATED_VIDEO_DECODER_H_
6 #define MEDIA_GPU_ACCELERATED_VIDEO_DECODER_H_ 6 #define MEDIA_GPU_ACCELERATED_VIDEO_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 enum DecodeResult { 38 enum DecodeResult {
39 kDecodeError, // Error while decoding. 39 kDecodeError, // Error while decoding.
40 // TODO(posciak): unsupported streams are currently treated as error 40 // TODO(posciak): unsupported streams are currently treated as error
41 // in decoding; in future it could perhaps be possible to fall back 41 // in decoding; in future it could perhaps be possible to fall back
42 // to software decoding instead. 42 // to software decoding instead.
43 // kStreamError, // Error in stream. 43 // kStreamError, // Error in stream.
44 kAllocateNewSurfaces, // Need a new set of surfaces to be allocated. 44 kAllocateNewSurfaces, // Need a new set of surfaces to be allocated.
45 kRanOutOfStreamData, // Need more stream data to proceed. 45 kRanOutOfStreamData, // Need more stream data to proceed.
46 kRanOutOfSurfaces, // Waiting for the client to free up output surfaces. 46 kRanOutOfSurfaces, // Waiting for the client to free up output surfaces.
47 kNeedContextUpdate, // Waiting for the client to update decoding context
48 // with data acquired from the accelerator.
47 }; 49 };
48 50
49 // Try to decode more of the stream, returning decoded frames asynchronously. 51 // Try to decode more of the stream, returning decoded frames asynchronously.
50 // Return when more stream is needed, when we run out of free surfaces, when 52 // Return when more stream is needed, when we run out of free surfaces, when
51 // we need a new set of them, or when an error occurs. 53 // we need a new set of them, or when an error occurs.
52 virtual DecodeResult Decode() WARN_UNUSED_RESULT = 0; 54 virtual DecodeResult Decode() WARN_UNUSED_RESULT = 0;
53 55
54 // Return dimensions/required number of output surfaces that client should 56 // Return dimensions/required number of output surfaces that client should
55 // be ready to provide for the decoder to function properly. 57 // be ready to provide for the decoder to function properly.
56 // To be used after Decode() returns kAllocateNewSurfaces. 58 // To be used after Decode() returns kAllocateNewSurfaces.
57 virtual gfx::Size GetPicSize() const = 0; 59 virtual gfx::Size GetPicSize() const = 0;
58 virtual size_t GetRequiredNumOfPictures() const = 0; 60 virtual size_t GetRequiredNumOfPictures() const = 0;
59 61
60 private: 62 private:
61 DISALLOW_COPY_AND_ASSIGN(AcceleratedVideoDecoder); 63 DISALLOW_COPY_AND_ASSIGN(AcceleratedVideoDecoder);
62 }; 64 };
63 65
64 } // namespace media 66 } // namespace media
65 67
66 #endif // MEDIA_GPU_ACCELERATED_VIDEO_DECODER_H_ 68 #endif // MEDIA_GPU_ACCELERATED_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/filters/vp9_uncompressed_header_parser.cc ('k') | media/gpu/v4l2_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698