OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
bbudge
2015/02/05 18:40:52
s/(c)//
llandwerlin-old
2015/02/05 22:17:36
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ppapi/proxy/video_encoder_resource.h" | |
6 | |
7 using ppapi::thunk::PPB_VideoEncoder_API; | |
8 | |
9 namespace ppapi { | |
10 namespace proxy { | |
11 | |
12 VideoEncoderResource::VideoEncoderResource(Connection connection, | |
13 PP_Instance instance) | |
14 : PluginResource(connection, instance) { | |
15 } | |
16 | |
17 VideoEncoderResource::~VideoEncoderResource() { | |
18 } | |
19 | |
20 PPB_VideoEncoder_API* VideoEncoderResource::AsPPB_VideoEncoder_API() { | |
21 return this; | |
22 } | |
23 | |
24 int32_t VideoEncoderResource::GetSupportedProfiles( | |
25 const PP_ArrayOutput& output, | |
26 const scoped_refptr<TrackedCallback>& callback) { | |
27 return PP_ERROR_FAILED; | |
28 } | |
29 | |
30 int32_t VideoEncoderResource::Initialize( | |
31 PP_VideoFrame_Format input_format, | |
32 const PP_Size* input_visible_size, | |
33 PP_VideoProfile output_profile, | |
34 uint32_t initial_bitrate, | |
35 PP_HardwareAcceleration acceleration, | |
36 const scoped_refptr<TrackedCallback>& callback) { | |
37 return PP_ERROR_FAILED; | |
38 } | |
39 | |
40 int32_t VideoEncoderResource::GetFramesRequired() { | |
41 return PP_ERROR_FAILED; | |
42 } | |
43 | |
44 int32_t VideoEncoderResource::GetFrameCodedSize(PP_Size* size) { | |
45 return PP_ERROR_FAILED; | |
46 } | |
47 | |
48 int32_t VideoEncoderResource::GetVideoFrame( | |
49 PP_Resource* video_frame, | |
50 const scoped_refptr<TrackedCallback>& callback) { | |
51 return PP_ERROR_FAILED; | |
52 } | |
53 | |
54 int32_t VideoEncoderResource::Encode( | |
55 PP_Resource video_frame, | |
56 PP_Bool force_keyframe, | |
57 const scoped_refptr<TrackedCallback>& callback) { | |
58 return PP_ERROR_FAILED; | |
59 } | |
60 | |
61 int32_t VideoEncoderResource::GetBitstreamBuffer( | |
62 PP_BitstreamBuffer* picture, | |
63 const scoped_refptr<TrackedCallback>& callback) { | |
64 return PP_ERROR_FAILED; | |
65 } | |
66 | |
67 void VideoEncoderResource::RecycleBitstreamBuffer( | |
68 const PP_BitstreamBuffer* picture) { | |
69 } | |
70 | |
71 void VideoEncoderResource::RequestEncodingParametersChange(uint32_t bitrate, | |
72 uint32_t framerate) { | |
73 } | |
74 | |
75 void VideoEncoderResource::Close() { | |
76 } | |
77 | |
78 } // namespace proxy | |
79 } // namespace ppapi | |
OLD | NEW |