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

Side by Side Diff: ppapi/proxy/video_encoder_resource.cc

Issue 887223009: ppapi: VideoEncoder: Add proxy boilerplate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after bbudge's review Created 5 years, 10 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 | « ppapi/proxy/video_encoder_resource.h ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/video_encoder_resource.h ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698