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

Side by Side Diff: ppapi/api/dev/pp_video_dev.idl

Issue 1677133003: Implemented parsing of HEVC codec ids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@parse-codec-id
Patch Set: Better formatting in ppapi Created 4 years, 9 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
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 5
6 /** 6 /**
7 * NOTE: these must be kept in sync with the versions in media/! 7 * NOTE: these must be kept in sync with the versions in media/!
8 */ 8 */
9 9
10 10
11 /** 11 /**
12 * Video format. 12 * Video format.
13 * 13 *
14 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, 14 * Keep the values in this enum unique, as they imply format (h.264 vs. VP8,
15 * for example), and keep the values for a particular format grouped together 15 * for example), and keep the values for a particular format grouped together
16 * for clarity. 16 * for clarity.
17 * Note: Keep these in sync with media::VideoCodecProfile. 17 * Note: These are translated into media::VideoCodecProfile in
18 * content/renderer/pepper/ppb_video_decoder_impl.cc, keep them in sync.
18 */ 19 */
19 [assert_size(4)] 20 [assert_size(4)]
20 enum PP_VideoDecoder_Profile { 21 enum PP_VideoDecoder_Profile {
21 PP_VIDEODECODER_PROFILE_UNKNOWN = -1, 22 PP_VIDEODECODER_PROFILE_UNKNOWN = -1,
22 PP_VIDEODECODER_H264PROFILE_NONE = 0, 23 PP_VIDEODECODER_H264PROFILE_NONE = 0,
23 PP_VIDEODECODER_H264PROFILE_BASELINE = 1, 24 PP_VIDEODECODER_H264PROFILE_BASELINE = 1,
24 PP_VIDEODECODER_H264PROFILE_MAIN = 2, 25 PP_VIDEODECODER_H264PROFILE_MAIN = 2,
25 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3, 26 PP_VIDEODECODER_H264PROFILE_EXTENDED = 3,
26 PP_VIDEODECODER_H264PROFILE_HIGH = 4, 27 PP_VIDEODECODER_H264PROFILE_HIGH = 4,
27 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5, 28 PP_VIDEODECODER_H264PROFILE_HIGH10PROFILE = 5,
28 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6, 29 PP_VIDEODECODER_H264PROFILE_HIGH422PROFILE = 6,
29 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7, 30 PP_VIDEODECODER_H264PROFILE_HIGH444PREDICTIVEPROFILE = 7,
30 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8, 31 PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8,
31 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9, 32 PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9,
32 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10, 33 PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10,
33 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11, 34 PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11,
34 PP_VIDEODECODER_VP8PROFILE_ANY = 12 35 PP_VIDEODECODER_VP8PROFILE_ANY = 12,
36 PP_VIDEODECODER_VP9PROFILE_ANY = 13,
37 // 4 profile values are reserved for VP9 profiles.
38 // PP_VIDEODECODER_HEVCPROFILE_MAIN = VP9PROFILE_ANY + 4
39 PP_VIDEODECODER_HEVCPROFILE_MAIN = 17,
40 PP_VIDEODECODER_HEVCPROFILE_MAIN10 = 18,
41 PP_VIDEODECODER_HEVCPROFILE_MAIN_STILL_PICTURE = 19
35 }; 42 };
36 43
37 /** 44 /**
38 * The data structure for video bitstream buffer. 45 * The data structure for video bitstream buffer.
39 */ 46 */
40 [assert_size(12)] 47 [assert_size(12)]
41 struct PP_VideoBitstreamBuffer_Dev { 48 struct PP_VideoBitstreamBuffer_Dev {
42 /** 49 /**
43 * Client-specified identifier for the bitstream buffer. Valid values are 50 * Client-specified identifier for the bitstream buffer. Valid values are
44 * non-negative. 51 * non-negative.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 */ 124 */
118 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3, 125 PP_VIDEODECODERERROR_UNREADABLE_INPUT = 3,
119 126
120 /** 127 /**
121 * A failure occurred at the browser layer or lower. Examples of such 128 * A failure occurred at the browser layer or lower. Examples of such
122 * failures include GPU hardware failures, GPU driver failures, GPU library 129 * failures include GPU hardware failures, GPU driver failures, GPU library
123 * failures, browser programming errors, and so on. 130 * failures, browser programming errors, and so on.
124 */ 131 */
125 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 132 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4
126 }; 133 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698