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.
5 #ifndef MEDIA_VIDEO_H264_POC_H_
6 #define MEDIA_VIDEO_H264_POC_H_
11 struct H264SliceHeader
;
13 class MEDIA_EXPORT H264POC
{
18 // Compute the picture order count for a slice, storing the result into
20 bool ComputePicOrderCnt(
22 const H264SliceHeader
& slice_hdr
,
23 int32_t* pic_order_cnt
);
25 // Reset computation state. It's best (although not strictly required) to call
30 int32_t ref_pic_order_cnt_msb_
;
31 int32_t ref_pic_order_cnt_lsb_
;
32 int32_t prev_frame_num_
;
33 int32_t prev_frame_num_offset_
;
35 DISALLOW_COPY_AND_ASSIGN(H264POC
);
40 #endif // MEDIA_VIDEO_H264_POC_H_