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

Side by Side Diff: webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.h

Issue 2088513004: Add encoder/decoder names to software H264. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int32_t RegisterEncodeCompleteCallback( 45 int32_t RegisterEncodeCompleteCallback(
46 EncodedImageCallback* callback) override; 46 EncodedImageCallback* callback) override;
47 int32_t SetRates(uint32_t bitrate, uint32_t framerate) override; 47 int32_t SetRates(uint32_t bitrate, uint32_t framerate) override;
48 48
49 // The result of encoding - an EncodedImage and RTPFragmentationHeader - are 49 // The result of encoding - an EncodedImage and RTPFragmentationHeader - are
50 // passed to the encode complete callback. 50 // passed to the encode complete callback.
51 int32_t Encode(const VideoFrame& frame, 51 int32_t Encode(const VideoFrame& frame,
52 const CodecSpecificInfo* codec_specific_info, 52 const CodecSpecificInfo* codec_specific_info,
53 const std::vector<FrameType>* frame_types) override; 53 const std::vector<FrameType>* frame_types) override;
54 54
55 const char* ImplementationName() const override;
56
55 // Unsupported / Do nothing. 57 // Unsupported / Do nothing.
56 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; 58 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override;
57 int32_t SetPeriodicKeyFrames(bool enable) override; 59 int32_t SetPeriodicKeyFrames(bool enable) override;
58 void OnDroppedFrame() override; 60 void OnDroppedFrame() override;
59 61
60 private: 62 private:
61 bool IsInitialized() const; 63 bool IsInitialized() const;
62 SEncParamExt CreateEncoderParams() const; 64 SEncParamExt CreateEncoderParams() const;
63 65
64 webrtc::H264BitstreamParser h264_bitstream_parser_; 66 webrtc::H264BitstreamParser h264_bitstream_parser_;
(...skipping 10 matching lines...) Expand all
75 std::unique_ptr<uint8_t[]> encoded_image_buffer_; 77 std::unique_ptr<uint8_t[]> encoded_image_buffer_;
76 EncodedImageCallback* encoded_image_callback_; 78 EncodedImageCallback* encoded_image_callback_;
77 79
78 bool has_reported_init_; 80 bool has_reported_init_;
79 bool has_reported_error_; 81 bool has_reported_error_;
80 }; 82 };
81 83
82 } // namespace webrtc 84 } // namespace webrtc
83 85
84 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_ 86 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698