OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 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 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_POC_H_ | |
6 #define CONTENT_COMMON_GPU_MEDIA_H264_POC_H_ | |
7 | |
8 namespace media { | |
9 struct H264SPS; | |
DaleCurtis
2014/11/20 23:03:30
Traditionally no indentation here.
sandersd (OOO until July 31)
2014/11/20 23:58:25
Done.
| |
10 struct H264SliceHeader; | |
11 } // namespace media | |
12 | |
13 namespace content { | |
14 | |
15 class H264POC { | |
16 public: | |
17 explicit H264POC(); | |
DaleCurtis
2014/11/20 23:03:30
explicit not necessary for no-argument constructor
sandersd (OOO until July 31)
2014/11/20 23:58:25
Done.
| |
18 ~H264POC(); | |
19 | |
20 // Compute the picture order count for a slice, storing the result into | |
21 // |*pic_order_cnt|. | |
22 bool ComputePicOrderCnt( | |
23 const media::H264SPS* sps, | |
24 const media::H264SliceHeader& slice_hdr, | |
25 int32_t *pic_order_cnt); | |
DaleCurtis
2014/11/20 23:03:30
* goes with int32_t.
sandersd (OOO until July 31)
2014/11/20 23:58:25
Done.
| |
26 | |
27 // Reset computation state. It's best (although not strictly required) to call | |
28 // this after a seek. | |
29 void Reset(); | |
30 | |
31 private: | |
32 int32_t ref_pic_order_cnt_msb_; | |
33 int32_t ref_pic_order_cnt_lsb_; | |
34 int32_t prev_frame_num_; | |
35 int32_t prev_frame_num_offset_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(H264POC); | |
38 }; | |
39 | |
40 } // namespace content | |
41 | |
42 #endif // CONTENT_COMMON_GPU_MEDIA_H264_POC_H_ | |
OLD | NEW |