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

Side by Side Diff: media/video/h264_poc.h

Issue 742233002: Implement |pic_order_cnt| computation for VTVideoDecode accelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vt_reorder
Patch Set: Rebase. Created 6 years 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
« no previous file with comments | « media/media.gyp ('k') | media/video/h264_poc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 MEDIA_VIDEO_H264_POC_H_
6 #define MEDIA_VIDEO_H264_POC_H_
7
8 namespace media {
9
10 struct H264SPS;
11 struct H264SliceHeader;
12
13 class MEDIA_EXPORT H264POC {
14 public:
15 H264POC();
16 ~H264POC();
17
18 // Compute the picture order count for a slice, storing the result into
19 // |*pic_order_cnt|.
20 bool ComputePicOrderCnt(
21 const H264SPS* sps,
22 const H264SliceHeader& slice_hdr,
23 int32_t* pic_order_cnt);
24
25 // Reset computation state. It's best (although not strictly required) to call
26 // this after a seek.
27 void Reset();
28
29 private:
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_;
34
35 DISALLOW_COPY_AND_ASSIGN(H264POC);
36 };
37
38 } // namespace media
39
40 #endif // MEDIA_VIDEO_H264_POC_H_
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | media/video/h264_poc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698