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

Side by Side Diff: webkit/media/crypto/decoders/ffmpeg_util.cc

Issue 10899021: Add CDM video decoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compiles, does nothing. Created 8 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "webkit/media/crypto/decoders/ffmpeg_util.h"
7 #include "webkit/media/crypto/ppapi/content_decryption_module.h"
8
9 namespace webkit_media {
10
11 using cdm::VideoFrame;
12
13 VideoFrame::ColorFormat PixelFormatToVideoFormat(PixelFormat pixel_format) {
14 switch (pixel_format) {
15 case PIX_FMT_YUV420P:
16 return VideoFrame::kFormatYv12;
17 default:
18 DVLOG(1) << "Unsupported PixelFormat: " << pixel_format;
19 }
20 return VideoFrame::kFormatInvalid;
21 }
22
23 } // namespace webkit_media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698