OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // | 43 // |
44 // Input: | 44 // Input: |
45 // - inputImage : Image to be encoded. | 45 // - inputImage : Image to be encoded. |
46 // - codecSpecificInfo : Pointer to codec specific data. | 46 // - codecSpecificInfo : Pointer to codec specific data. |
47 // - frameType : Frame type to be sent (Key /Delta). | 47 // - frameType : Frame type to be sent (Key /Delta). |
48 // | 48 // |
49 // Return value : WEBRTC_VIDEO_CODEC_OK if OK. | 49 // Return value : WEBRTC_VIDEO_CODEC_OK if OK. |
50 // <0 - Error | 50 // <0 - Error |
51 int Encode(const VideoFrame& inputImage, | 51 int Encode(const VideoFrame& inputImage, |
52 const CodecSpecificInfo* /*codecSpecificInfo*/, | 52 const CodecSpecificInfo* /*codecSpecificInfo*/, |
53 const std::vector<VideoFrameType>* /*frame_types*/) override; | 53 const std::vector<FrameType>* /*frame_types*/) override; |
54 | 54 |
55 // Register an encode complete callback object. | 55 // Register an encode complete callback object. |
56 // | 56 // |
57 // Input: | 57 // Input: |
58 // - callback : Callback object which handles encoded images. | 58 // - callback : Callback object which handles encoded images. |
59 // | 59 // |
60 // Return value : WEBRTC_VIDEO_CODEC_OK if OK, < 0 otherwise. | 60 // Return value : WEBRTC_VIDEO_CODEC_OK if OK, < 0 otherwise. |
61 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; | 61 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; |
62 | 62 |
63 // Free encoder memory. | 63 // Free encoder memory. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 VideoFrame _decodedImage; | 148 VideoFrame _decodedImage; |
149 int _width; | 149 int _width; |
150 int _height; | 150 int _height; |
151 bool _inited; | 151 bool _inited; |
152 DecodedImageCallback* _decodeCompleteCallback; | 152 DecodedImageCallback* _decodeCompleteCallback; |
153 }; // class I420Decoder | 153 }; // class I420Decoder |
154 | 154 |
155 } // namespace webrtc | 155 } // namespace webrtc |
156 | 156 |
157 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_I420_MAIN_INTERFACE_I420_H_ | 157 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_I420_MAIN_INTERFACE_I420_H_ |
OLD | NEW |