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

Side by Side Diff: media/filters/ffmpeg_video_decoder.h

Issue 736873002: FOR TESTING ONLY: Enable ffvp9 inside of Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool* has_produced_frame); 65 bool* has_produced_frame);
66 66
67 // Handles (re-)initializing the decoder with a (new) config. 67 // Handles (re-)initializing the decoder with a (new) config.
68 // Returns true if initialization was successful. 68 // Returns true if initialization was successful.
69 bool ConfigureDecoder(bool low_delay); 69 bool ConfigureDecoder(bool low_delay);
70 70
71 // Releases resources associated with |codec_context_| and |av_frame_| 71 // Releases resources associated with |codec_context_| and |av_frame_|
72 // and resets them to NULL. 72 // and resets them to NULL.
73 void ReleaseFFmpegResources(); 73 void ReleaseFFmpegResources();
74 74
75 int ParseVP9Packet(uint8_t** out_data,
76 int* out_size,
77 uint8_t* data,
78 int size);
79
75 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 80 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
76 81
77 DecoderState state_; 82 DecoderState state_;
78 83
79 OutputCB output_cb_; 84 OutputCB output_cb_;
80 85
81 // FFmpeg structures owned by this object. 86 // FFmpeg structures owned by this object.
82 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_; 87 scoped_ptr<AVCodecContext, ScopedPtrAVFreeContext> codec_context_;
83 scoped_ptr<AVFrame, ScopedPtrAVFreeFrame> av_frame_; 88 scoped_ptr<AVFrame, ScopedPtrAVFreeFrame> av_frame_;
84 89
85 VideoDecoderConfig config_; 90 VideoDecoderConfig config_;
86 91
87 VideoFramePool frame_pool_; 92 VideoFramePool frame_pool_;
88 93
89 bool decode_nalus_; 94 bool decode_nalus_;
90 95
96 struct VP9ParseContext {
97 int n_frames;
98 int size[8];
99 };
100 VP9ParseContext parse_context_;
101
91 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); 102 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder);
92 }; 103 };
93 104
94 } // namespace media 105 } // namespace media
95 106
96 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 107 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698