Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright (c) 2014 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 | |
| 6 /** | |
| 7 * Video profiles. | |
| 8 */ | |
| 9 enum PP_MediaCodec_VideoProfile { | |
|
igorc
2014/04/21 23:12:48
The enum here is video-specific, however the file
bbudge
2014/04/21 23:29:06
It's a little speculative, but the file is intende
| |
| 10 PP_MEDIACODEC_H264PROFILE_BASELINE = 0, | |
| 11 PP_MEDIACODEC_H264PROFILE_MAIN = 1, | |
| 12 PP_MEDIACODEC_H264PROFILE_EXTENDED = 2, | |
| 13 PP_MEDIACODEC_H264PROFILE_HIGH = 3, | |
| 14 PP_MEDIACODEC_H264PROFILE_HIGH10PROFILE = 4, | |
| 15 PP_MEDIACODEC_H264PROFILE_HIGH422PROFILE = 5, | |
| 16 PP_MEDIACODEC_H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, | |
| 17 PP_MEDIACODEC_H264PROFILE_SCALABLEBASELINE = 7, | |
| 18 PP_MEDIACODEC_H264PROFILE_SCALABLEHIGH = 8, | |
| 19 PP_MEDIACODEC_H264PROFILE_STEREOHIGH = 9, | |
| 20 PP_MEDIACODEC_H264PROFILE_MULTIVIEWHIGH = 10, | |
| 21 PP_MEDIACODEC_VP8PROFILE_MAIN = 11, | |
| 22 PP_MEDIACODEC_VP9PROFILE_MAIN = 12, | |
| 23 PP_MEDIACODEC_VIDEOPROFILE_MAX = PP_MEDIACODEC_VP9PROFILE_MAIN | |
| 24 }; | |
| 25 | |
| 26 /** | |
| 27 * Struct describing a decoded video picture. The decoded picture data is stored | |
| 28 * in the GL texture corresponding to |texture_id|. The plugin can determine | |
| 29 * which Decode call generated the picture using |user_id|. | |
| 30 */ | |
| 31 struct PP_MediaCodec_Picture { | |
| 32 /** | |
| 33 * User id from the Decode call which generated this picture. | |
| 34 * See the PPB_MediaCodecVideoDecoder function Decode() for more details. | |
| 35 */ | |
| 36 int32_t user_id; | |
| 37 | |
| 38 /** | |
| 39 * Texture ID in the plugin's GL context. The plugin can use this to render | |
| 40 * the decoded picture. | |
| 41 */ | |
| 42 uint32_t texture_id; | |
| 43 | |
| 44 /** | |
| 45 * The GL texture target for the decoded picture. Possible values are: | |
| 46 * GL_TEXTURE_2D (normalized texture coordinates) | |
| 47 * GL_TEXTURE_RECTANGLE_ARB (dimension dependent texture coordinates) | |
| 48 * | |
| 49 * The pixel format of the texture is GL_RGBA. | |
| 50 */ | |
| 51 uint32_t texture_target; | |
| 52 | |
| 53 /** | |
| 54 * Dimensions of the texture holding the decoded picture. | |
| 55 */ | |
| 56 PP_Size texture_size; | |
| 57 }; | |
| OLD | NEW |