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

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

Issue 1306813009: H.264 video codec support using OpenH264/FFmpeg (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed stefan and hta comments Created 5 years, 2 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
(Empty)
1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 *
10 */
11
12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_DECODER_IMPL_H_
13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_DECODER_IMPL_H_
14
15 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h"
16
17 class ISVCDecoder;
18
19 namespace webrtc {
20
21 class H264DecoderImpl : public H264Decoder {
22 public:
23 H264DecoderImpl();
24 ~H264DecoderImpl() override;
25
26 // |number_of_cores| is ignored. |codec_settings| is also ignored except if
27 // it's not null then |codec_settings->codecType| must be kVideoCodecH264.
28 int32_t InitDecode(const VideoCodec* codec_settings,
29 int32_t /*number_of_cores*/) override;
30 int32_t Release() override;
31 int32_t Reset() override;
32
33 int32_t RegisterDecodeCompleteCallback(
34 DecodedImageCallback* callback) override;
35
36 // |missing_frames|, |fragmentation| and |render_time_ms| are ignored.
37 int32_t Decode(const EncodedImage& input_image,
38 bool /*missing_frames*/,
39 const RTPFragmentationHeader* /*fragmentation*/,
40 const CodecSpecificInfo* codec_specific_info = nullptr,
41 int64_t render_time_ms = -1) override;
42
43 bool IsInitialized();
stefan-webrtc 2015/10/01 13:13:52 Private?
hbos 2015/11/27 14:43:43 Ok sure.
44
45 private:
46 ISVCDecoder* openh264_decoder_;
47
48 VideoFrame decoded_image_;
49 DecodedImageCallback* decoded_image_callback_;
50 };
51
52 } // namespace webrtc
53
54 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698