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

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

Issue 2337453002: H.264 packetization mode 0 (try 2) (Closed)
Patch Set: Upload try 2 (with rebase) Created 4 years, 1 month 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 21 matching lines...) Expand all
32 32
33 // |max_payload_size| is ignored. 33 // |max_payload_size| is ignored.
34 // The following members of |codec_settings| are used. The rest are ignored. 34 // The following members of |codec_settings| are used. The rest are ignored.
35 // - codecType (must be kVideoCodecH264) 35 // - codecType (must be kVideoCodecH264)
36 // - targetBitrate 36 // - targetBitrate
37 // - maxFramerate 37 // - maxFramerate
38 // - width 38 // - width
39 // - height 39 // - height
40 int32_t InitEncode(const VideoCodec* codec_settings, 40 int32_t InitEncode(const VideoCodec* codec_settings,
41 int32_t number_of_cores, 41 int32_t number_of_cores,
42 size_t /*max_payload_size*/) override; 42 size_t max_payload_size) override;
43 int32_t Release() override; 43 int32_t Release() override;
44 44
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,
(...skipping 20 matching lines...) Expand all
73 // Settings that are used by this encoder. 73 // Settings that are used by this encoder.
74 int width_; 74 int width_;
75 int height_; 75 int height_;
76 float max_frame_rate_; 76 float max_frame_rate_;
77 unsigned int target_bps_; 77 unsigned int target_bps_;
78 unsigned int max_bps_; 78 unsigned int max_bps_;
79 VideoCodecMode mode_; 79 VideoCodecMode mode_;
80 // H.264 specifc parameters 80 // H.264 specifc parameters
81 bool frame_dropping_on_; 81 bool frame_dropping_on_;
82 int key_frame_interval_; 82 int key_frame_interval_;
83 H264PacketizationMode packetization_mode_;
83 84
85 size_t max_payload_size_;
84 int32_t number_of_cores_; 86 int32_t number_of_cores_;
85 87
86 EncodedImage encoded_image_; 88 EncodedImage encoded_image_;
87 std::unique_ptr<uint8_t[]> encoded_image_buffer_; 89 std::unique_ptr<uint8_t[]> encoded_image_buffer_;
88 EncodedImageCallback* encoded_image_callback_; 90 EncodedImageCallback* encoded_image_callback_;
89 91
90 bool has_reported_init_; 92 bool has_reported_init_;
91 bool has_reported_error_; 93 bool has_reported_error_;
92 }; 94 };
93 95
94 } // namespace webrtc 96 } // namespace webrtc
95 97
96 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_ 98 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codec_database.cc ('k') | webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698