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

Side by Side Diff: content/common/gpu/media/h264_parser.h

Issue 10411085: Build AVC decoder configuration record (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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
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 // This file contains an implementation of an H264 Annex-B video stream parser. 5 // This file contains an implementation of an H264 Annex-B video stream parser.
6 6
7 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ 7 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_
8 #define CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ 8 #define CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_
9 9
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 29 matching lines...) Expand all
40 int nal_ref_idc; 40 int nal_ref_idc;
41 int nal_unit_type; 41 int nal_unit_type;
42 }; 42 };
43 43
44 enum { kH264ScalingList4x4Length = 16, kH264ScalingList8x8Length = 64, }; 44 enum { kH264ScalingList4x4Length = 16, kH264ScalingList8x8Length = 64, };
45 45
46 struct H264SPS { 46 struct H264SPS {
47 H264SPS(); 47 H264SPS();
48 48
49 int profile_idc; 49 int profile_idc;
50 int constraint_setx_flag;
50 int level_idc; 51 int level_idc;
51 int seq_parameter_set_id; 52 int seq_parameter_set_id;
52 53
53 int chroma_format_idc; 54 int chroma_format_idc;
54 bool separate_colour_plane_flag; 55 bool separate_colour_plane_flag;
55 int bit_depth_luma_minus8; 56 int bit_depth_luma_minus8;
56 int bit_depth_chroma_minus8; 57 int bit_depth_chroma_minus8;
57 bool qpprime_y_zero_transform_bypass_flag; 58 bool qpprime_y_zero_transform_bypass_flag;
58 59
59 bool seq_scaling_matrix_present_flag; 60 bool seq_scaling_matrix_present_flag;
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 typedef std::map<int, H264PPS*> PPSById; 398 typedef std::map<int, H264PPS*> PPSById;
398 SPSById active_SPSes_; 399 SPSById active_SPSes_;
399 PPSById active_PPSes_; 400 PPSById active_PPSes_;
400 401
401 DISALLOW_COPY_AND_ASSIGN(H264Parser); 402 DISALLOW_COPY_AND_ASSIGN(H264Parser);
402 }; 403 };
403 404
404 } // namespace content 405 } // namespace content
405 406
406 #endif // CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_ 407 #endif // CONTENT_COMMON_GPU_MEDIA_H264_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698