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

Side by Side Diff: remoting/codec/video_decoder_verbatim.h

Issue 2088953004: Fix VideoDecoderVpx to use pixel format the consumer wants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ 5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ 6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "remoting/codec/video_decoder.h" 12 #include "remoting/codec/video_decoder.h"
13 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 13 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" 14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 // Video decoder implementations that decodes video packet encoded by 18 // Video decoder implementations that decodes video packet encoded by
19 // VideoEncoderVerbatim. It just copies data from incoming packets to the 19 // VideoEncoderVerbatim. It just copies data from incoming packets to the
20 // video frames. 20 // video frames.
21 class VideoDecoderVerbatim : public VideoDecoder { 21 class VideoDecoderVerbatim : public VideoDecoder {
22 public: 22 public:
23 VideoDecoderVerbatim(); 23 VideoDecoderVerbatim();
24 ~VideoDecoderVerbatim() override; 24 ~VideoDecoderVerbatim() override;
25 25
26 // VideoDecoder implementation. 26 // VideoDecoder implementation.
27 void SetPixelFormat(PixelFormat pixel_format) override;
27 bool DecodePacket(const VideoPacket& packet, 28 bool DecodePacket(const VideoPacket& packet,
28 webrtc::DesktopFrame* frame) override; 29 webrtc::DesktopFrame* frame) override;
29 30
30 private: 31 private:
31 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim); 32 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim);
32 }; 33 };
33 34
34 } // namespace remoting 35 } // namespace remoting
35 36
36 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ 37 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698