Index: content/common/gpu/media/vaapi_h264_decoder.h |
diff --git a/content/common/gpu/media/vaapi_h264_decoder.h b/content/common/gpu/media/vaapi_h264_decoder.h |
index 3bc63d3b1d94cfe55ab26ca1cc9017ec110c5c0b..e23d913dc2d61172c36f4a5d9aa2778600b496e6 100644 |
--- a/content/common/gpu/media/vaapi_h264_decoder.h |
+++ b/content/common/gpu/media/vaapi_h264_decoder.h |
@@ -16,9 +16,9 @@ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "content/common/gpu/media/h264_dpb.h" |
-#include "content/common/gpu/media/h264_parser.h" |
#include "content/common/gpu/media/vaapi_wrapper.h" |
#include "media/base/limits.h" |
+#include "media/filters/h264_parser.h" |
namespace content { |
@@ -130,26 +130,26 @@ class VaapiH264Decoder { |
// Process H264 stream structures. |
bool ProcessSPS(int sps_id, bool* need_new_buffers); |
bool ProcessPPS(int pps_id); |
- bool ProcessSlice(H264SliceHeader* slice_hdr); |
+ bool ProcessSlice(media::H264SliceHeader* slice_hdr); |
// Initialize the current picture according to data in |slice_hdr|. |
- bool InitCurrPicture(H264SliceHeader* slice_hdr); |
+ bool InitCurrPicture(media::H264SliceHeader* slice_hdr); |
// Calculate picture order counts for the new picture |
// on initialization of a new frame (see spec). |
- bool CalculatePicOrderCounts(H264SliceHeader* slice_hdr); |
+ bool CalculatePicOrderCounts(media::H264SliceHeader* slice_hdr); |
// Update PicNum values in pictures stored in DPB on creation of new |
// frame (see spec). |
void UpdatePicNums(); |
// Prepare reference picture lists (ref_pic_list[01]_). |
- bool PrepareRefPicLists(H264SliceHeader* slice_hdr); |
+ bool PrepareRefPicLists(media::H264SliceHeader* slice_hdr); |
// Construct initial reference picture lists for use in decoding of |
// P and B pictures (see 8.2.4 in spec). |
- void ConstructReferencePicListsP(H264SliceHeader* slice_hdr); |
- void ConstructReferencePicListsB(H264SliceHeader* slice_hdr); |
+ void ConstructReferencePicListsP(media::H264SliceHeader* slice_hdr); |
+ void ConstructReferencePicListsB(media::H264SliceHeader* slice_hdr); |
// Helper functions for reference list construction, per spec. |
int PicNumF(H264Picture *pic); |
@@ -159,7 +159,7 @@ class VaapiH264Decoder { |
// specified in spec (8.2.4). |
// |
// |list| indicates list number and should be either 0 or 1. |
- bool ModifyReferencePicList(H264SliceHeader *slice_hdr, int list); |
+ bool ModifyReferencePicList(media::H264SliceHeader* slice_hdr, int list); |
// Perform reference picture memory management operations (marking/unmarking |
// of reference pictures, long term picture management, discarding, etc.). |
@@ -168,7 +168,7 @@ class VaapiH264Decoder { |
void ReferencePictureMarking(); |
// Start processing a new frame. |
- bool StartNewFrame(H264SliceHeader* slice_hdr); |
+ bool StartNewFrame(media::H264SliceHeader* slice_hdr); |
// All data for a frame received, process it and decode. |
bool FinishPrevFrameIfPresent(); |
@@ -187,9 +187,9 @@ class VaapiH264Decoder { |
// These queue up data for HW decoder to be committed on running HW decode. |
bool SendPPS(); |
bool SendIQMatrix(); |
- bool SendVASliceParam(H264SliceHeader* slice_hdr); |
+ bool SendVASliceParam(media::H264SliceHeader* slice_hdr); |
bool SendSliceData(const uint8* ptr, size_t size); |
- bool QueueSlice(H264SliceHeader* slice_hdr); |
+ bool QueueSlice(media::H264SliceHeader* slice_hdr); |
// Helper methods for filling HW structures. |
void FillVAPicture(VAPictureH264 *va_pic, H264Picture* pic); |
@@ -223,7 +223,7 @@ class VaapiH264Decoder { |
State state_; |
// Parser in use. |
- H264Parser parser_; |
+ media::H264Parser parser_; |
// DPB in use. |
H264DPB dpb_; |