diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 19:57:22 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 19:57:22 +0000 |
commit | 88185ad05fa219c194418e6e7eb9555fb07c2b67 (patch) | |
tree | a9e9464358e5f13066d9d7b71817d2c5d5386e64 /media/base/media_format.h | |
parent | 0701ad5e7a6f5607ae6315f355eac2bdfd4c7080 (diff) | |
download | chromium_src-88185ad05fa219c194418e6e7eb9555fb07c2b67.zip chromium_src-88185ad05fa219c194418e6e7eb9555fb07c2b67.tar.gz chromium_src-88185ad05fa219c194418e6e7eb9555fb07c2b67.tar.bz2 |
Add EGLImage as one media type different than regular uncompressed video buffer.
Video renderer could get this info via decoder->media_format(). This is needed in case video renderer is the buffer allocator.
Patch by wjia@chromium.org:
http://codereview.chromium.org/1725021/show
BUG=NONE
TEST=compiles
Review URL: http://codereview.chromium.org/1952003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_format.h')
-rw-r--r-- | media/base/media_format.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/base/media_format.h b/media/base/media_format.h index c131d82..3a7cb3d 100644 --- a/media/base/media_format.h +++ b/media/base/media_format.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -21,6 +21,7 @@ extern const char kAACAudio[]; extern const char kH264AnnexB[]; extern const char kUncompressedAudio[]; extern const char kUncompressedVideo[]; +extern const char kUncompressedVideoEglImage[]; extern const char kMajorTypeAudio[]; extern const char kMajorTypeVideo[]; } // namespace mime_type @@ -79,6 +80,9 @@ class MediaFormat { // Helper to return a value. Value* GetValue(const std::string& key) const; + // Helper to release Value of the key + void ReleaseValue(const std::string& key); + typedef std::map<std::string, Value*> ValueMap; ValueMap value_map_; |