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

Unified Diff: content/common/gpu/media/vaapi_h264_decoder.h

Issue 119153002: Move H264Parser and H264BitReader to media/filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 side-by-side diff with in-line comments
Download patch
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_;
« no previous file with comments | « content/common/gpu/media/v4l2_video_decode_accelerator.cc ('k') | content/common/gpu/media/vaapi_h264_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698