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

Side by Side Diff: ppapi/cpp/media_codec_video_decoder.h

Issue 210373003: Pepper VideoDecoder API definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Plugin should call RecyclePicture during Flush. Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_MEDIA_CODEC_VIDEO_DECODER_H_
6 #define PPAPI_CPP_MEDIA_CODEC_VIDEO_DECODER_H_
7
8 #include "ppapi/c/pp_media_codec.h"
9 #include "ppapi/c/pp_size.h"
10 #include "ppapi/cpp/completion_callback.h"
11 #include "ppapi/cpp/graphics_3d.h"
12 #include "ppapi/cpp/resource.h"
13 #include "ppapi/cpp/size.h"
14
15 /// @file
16 /// This file defines the API to create and use a MediaCodecVideoDecoder
17 /// resource.
18
19 struct PP_FileInfo;
20
21 namespace pp {
22
23 class InstanceHandle;
24
25 /// The <code>MediaCodecVideoDecoder</code> class represents a video decoder
26 /// resource.
27 class MediaCodecVideoDecoder : public Resource {
28 public:
29 /// Default constructor for creating an is_null()
30 /// <code>MediaCodecVideoDecoder</code> object.
31 MediaCodecVideoDecoder();
32
33 /// A constructor used to create a <code>MediaCodecVideoDecoder</code> and
34 /// associate it with the provided <code>Instance</code>.
35 /// @param[in] instance The instance with which this resource will be
36 /// associated.
37 explicit MediaCodecVideoDecoder(const InstanceHandle& instance);
38
39 /// The copy constructor for <code>MediaCodecVideoDecoder</code>.
40 /// @param[in] other A reference to a <code>MediaCodecVideoDecoder</code>.
41 MediaCodecVideoDecoder(const MediaCodecVideoDecoder& other);
42
43 int32_t Initialize(const Graphics3D& context,
44 PP_MediaCodec_VideoProfile profile,
45 const CompletionCallback& cc);
46
47 int32_t Decode(
48 uint32_t user_id,
49 uint32_t size,
50 const void* buffer,
51 const CompletionCallback& cc);
52
53 int32_t GetPicture(
54 const CompletionCallbackWithOutput<PP_MediaCodec_Picture>& cc);
55
56 void RecyclePicture(
57 const PP_MediaCodec_Picture& picture);
58
59 int32_t Flush(
60 const CompletionCallback& cc);
61
62 int32_t Reset(
63 const CompletionCallback& cc);
dmichael (off chromium) 2014/04/17 20:23:26 nit: I'm not sure why we seem to put parameters th
bbudge 2014/04/18 17:03:17 Done.
64 };
65
66 } // namespace pp
67
68 #endif // PPAPI_CPP_MEDIA_CODEC_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698