xref: /aosp_15_r20/external/libwebm/webm_parser/src/slices_parser.h (revision 103e46e4cd4b6efcf6001f23fa8665fb110abf8d)
1*103e46e4SHarish Mahendrakar // Copyright (c) 2016 The WebM project authors. All Rights Reserved.
2*103e46e4SHarish Mahendrakar //
3*103e46e4SHarish Mahendrakar // Use of this source code is governed by a BSD-style license
4*103e46e4SHarish Mahendrakar // that can be found in the LICENSE file in the root of the source
5*103e46e4SHarish Mahendrakar // tree. An additional intellectual property rights grant can be found
6*103e46e4SHarish Mahendrakar // in the file PATENTS.  All contributing project authors may
7*103e46e4SHarish Mahendrakar // be found in the AUTHORS file in the root of the source tree.
8*103e46e4SHarish Mahendrakar #ifndef SRC_SLICES_PARSER_H_
9*103e46e4SHarish Mahendrakar #define SRC_SLICES_PARSER_H_
10*103e46e4SHarish Mahendrakar 
11*103e46e4SHarish Mahendrakar #include "src/master_value_parser.h"
12*103e46e4SHarish Mahendrakar #include "src/time_slice_parser.h"
13*103e46e4SHarish Mahendrakar #include "webm/dom_types.h"
14*103e46e4SHarish Mahendrakar #include "webm/id.h"
15*103e46e4SHarish Mahendrakar 
16*103e46e4SHarish Mahendrakar namespace webm {
17*103e46e4SHarish Mahendrakar 
18*103e46e4SHarish Mahendrakar // Spec reference:
19*103e46e4SHarish Mahendrakar // http://matroska.org/technical/specs/index.html#Slices
20*103e46e4SHarish Mahendrakar // http://www.webmproject.org/docs/container/#Slices
21*103e46e4SHarish Mahendrakar class SlicesParser : public MasterValueParser<Slices> {
22*103e46e4SHarish Mahendrakar  public:
SlicesParser()23*103e46e4SHarish Mahendrakar   SlicesParser()
24*103e46e4SHarish Mahendrakar       : MasterValueParser<Slices>(
25*103e46e4SHarish Mahendrakar             MakeChild<TimeSliceParser>(Id::kTimeSlice, &Slices::slices)) {}
26*103e46e4SHarish Mahendrakar };
27*103e46e4SHarish Mahendrakar 
28*103e46e4SHarish Mahendrakar }  // namespace webm
29*103e46e4SHarish Mahendrakar 
30*103e46e4SHarish Mahendrakar #endif  // SRC_SLICES_PARSER_H_
31