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

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

Issue 10825194: Change Deryptor::DecryptStatus and VideoDecoder::DecoderStatus to *::Status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/crypto/aes_decryptor_unittest.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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/decryptor.h" 10 #include "media/base/decryptor.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const scoped_refptr<DecoderBuffer>& buffer); 58 const scoped_refptr<DecoderBuffer>& buffer);
59 59
60 // Carries out the buffer processing operation scheduled by 60 // Carries out the buffer processing operation scheduled by
61 // DecryptOrDecodeBuffer(). 61 // DecryptOrDecodeBuffer().
62 void DoDecryptOrDecodeBuffer(DemuxerStream::Status status, 62 void DoDecryptOrDecodeBuffer(DemuxerStream::Status status,
63 const scoped_refptr<DecoderBuffer>& buffer); 63 const scoped_refptr<DecoderBuffer>& buffer);
64 64
65 // Callback called by the decryptor to deliver decrypted data buffer and 65 // Callback called by the decryptor to deliver decrypted data buffer and
66 // reporting decrypt status. This callback could be called synchronously or 66 // reporting decrypt status. This callback could be called synchronously or
67 // asynchronously. 67 // asynchronously.
68 void BufferDecrypted(Decryptor::DecryptStatus decrypt_status, 68 void BufferDecrypted(Decryptor::Status decrypt_status,
69 const scoped_refptr<DecoderBuffer>& buffer); 69 const scoped_refptr<DecoderBuffer>& buffer);
70 70
71 // Carries out the operation scheduled by BufferDecrypted(). 71 // Carries out the operation scheduled by BufferDecrypted().
72 void DoBufferDecrypted(Decryptor::DecryptStatus decrypt_status, 72 void DoBufferDecrypted(Decryptor::Status decrypt_status,
73 const scoped_refptr<DecoderBuffer>& buffer); 73 const scoped_refptr<DecoderBuffer>& buffer);
74 74
75 void DecodeBuffer(const scoped_refptr<DecoderBuffer>& buffer); 75 void DecodeBuffer(const scoped_refptr<DecoderBuffer>& buffer);
76 bool Decode(const scoped_refptr<DecoderBuffer>& buffer, 76 bool Decode(const scoped_refptr<DecoderBuffer>& buffer,
77 scoped_refptr<VideoFrame>* video_frame); 77 scoped_refptr<VideoFrame>* video_frame);
78 78
79 // Releases resources associated with |codec_context_| and |av_frame_| 79 // Releases resources associated with |codec_context_| and |av_frame_|
80 // and resets them to NULL. 80 // and resets them to NULL.
81 void ReleaseFFmpegResources(); 81 void ReleaseFFmpegResources();
82 82
(...skipping 24 matching lines...) Expand all
107 scoped_refptr<DemuxerStream> demuxer_stream_; 107 scoped_refptr<DemuxerStream> demuxer_stream_;
108 108
109 Decryptor* decryptor_; 109 Decryptor* decryptor_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); 111 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder);
112 }; 112 };
113 113
114 } // namespace media 114 } // namespace media
115 115
116 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 116 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/crypto/aes_decryptor_unittest.cc ('k') | media/filters/ffmpeg_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698