OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Determine number of encoder threads to use. | 49 // Determine number of encoder threads to use. |
50 int NumberOfThreads(int width, int height, int number_of_cores); | 50 int NumberOfThreads(int width, int height, int number_of_cores); |
51 | 51 |
52 // Call encoder initialize function and set control settings. | 52 // Call encoder initialize function and set control settings. |
53 int InitAndSetControlSettings(const VideoCodec* inst); | 53 int InitAndSetControlSettings(const VideoCodec* inst); |
54 | 54 |
55 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, | 55 void PopulateCodecSpecific(CodecSpecificInfo* codec_specific, |
56 const vpx_codec_cx_pkt& pkt, | 56 const vpx_codec_cx_pkt& pkt, |
57 uint32_t timestamp); | 57 uint32_t timestamp); |
58 | 58 |
59 bool ExplicitlyConfiguredSpatialLayers() const; | |
60 bool SetSvcRates(); | 59 bool SetSvcRates(); |
61 | 60 |
62 virtual int GetEncodedLayerFrame(const vpx_codec_cx_pkt* pkt); | 61 virtual int GetEncodedLayerFrame(const vpx_codec_cx_pkt* pkt); |
63 | 62 |
64 // Callback function for outputting packets per spatial layer. | 63 // Callback function for outputting packets per spatial layer. |
65 static void EncoderOutputCodedPacketCallback(vpx_codec_cx_pkt* pkt, | 64 static void EncoderOutputCodedPacketCallback(vpx_codec_cx_pkt* pkt, |
66 void* user_data); | 65 void* user_data); |
67 | 66 |
68 // Determine maximum target for Intra frames | 67 // Determine maximum target for Intra frames |
69 // | 68 // |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 Vp9FrameBufferPool frame_buffer_pool_; | 121 Vp9FrameBufferPool frame_buffer_pool_; |
123 DecodedImageCallback* decode_complete_callback_; | 122 DecodedImageCallback* decode_complete_callback_; |
124 bool inited_; | 123 bool inited_; |
125 vpx_codec_ctx_t* decoder_; | 124 vpx_codec_ctx_t* decoder_; |
126 VideoCodec codec_; | 125 VideoCodec codec_; |
127 bool key_frame_required_; | 126 bool key_frame_required_; |
128 }; | 127 }; |
129 } // namespace webrtc | 128 } // namespace webrtc |
130 | 129 |
131 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_IMPL_H_ | 130 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_IMPL_H_ |
OLD | NEW |