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

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

Issue 852103002: Revert of Add accelerated video decoder interface, VP8 and H.264 implementations and hook up to V4L2SVDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 c6e51949e742557c272bd9b7e8948caf9b29b84b..914e37a1863d83d1a7d6564356229aea48f00545 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.h
+++ b/content/common/gpu/media/vaapi_h264_decoder.h
@@ -15,7 +15,7 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "content/common/gpu/media/vaapi_h264_dpb.h"
+#include "content/common/gpu/media/h264_dpb.h"
#include "content/common/gpu/media/vaapi_wrapper.h"
#include "media/base/limits.h"
#include "media/filters/h264_parser.h"
@@ -116,7 +116,7 @@
// smoothness improvement during testing.
enum {
kPicsInPipeline = media::limits::kMaxVideoFrames + 2,
- kMaxNumReqPictures = VaapiH264DPB::kDPBMaxSize + kPicsInPipeline,
+ kMaxNumReqPictures = H264DPB::kDPBMaxSize + kPicsInPipeline,
};
// Internal state of the decoder.
@@ -154,8 +154,8 @@
void ConstructReferencePicListsB(media::H264SliceHeader* slice_hdr);
// Helper functions for reference list construction, per spec.
- int PicNumF(VaapiH264Picture *pic);
- int LongTermPicNumF(VaapiH264Picture *pic);
+ int PicNumF(H264Picture *pic);
+ int LongTermPicNumF(H264Picture *pic);
// Perform the reference picture lists' modification (reordering), as
// specified in spec (8.2.4).
@@ -194,14 +194,14 @@
bool QueueSlice(media::H264SliceHeader* slice_hdr);
// Helper methods for filling HW structures.
- void FillVAPicture(VAPictureH264 *va_pic, VaapiH264Picture* pic);
+ void FillVAPicture(VAPictureH264 *va_pic, H264Picture* pic);
int FillVARefFramesFromDPB(VAPictureH264 *va_pics, int num_pics);
// Commits all pending data for HW decoder and starts HW decoder.
bool DecodePicture();
// Notifies client that a picture is ready for output.
- bool OutputPic(VaapiH264Picture* pic);
+ bool OutputPic(H264Picture* pic);
// Output all pictures in DPB that have not been outputted yet.
bool OutputAllRemainingPics();
@@ -228,15 +228,15 @@
media::H264Parser parser_;
// DPB in use.
- VaapiH264DPB dpb_;
+ H264DPB dpb_;
// Picture currently being processed/decoded.
- scoped_ptr<VaapiH264Picture> curr_pic_;
+ scoped_ptr<H264Picture> curr_pic_;
// Reference picture lists, constructed for each picture before decoding.
// Those lists are not owners of the pointers (DPB is).
- VaapiH264Picture::PtrVector ref_pic_list0_;
- VaapiH264Picture::PtrVector ref_pic_list1_;
+ H264Picture::PtrVector ref_pic_list0_;
+ H264Picture::PtrVector ref_pic_list1_;
// Global state values, needed in decoding. See spec.
int max_pic_order_cnt_lsb_;
@@ -255,7 +255,7 @@
int prev_ref_top_field_order_cnt_;
int prev_ref_pic_order_cnt_msb_;
int prev_ref_pic_order_cnt_lsb_;
- VaapiH264Picture::Field prev_ref_field_;
+ H264Picture::Field prev_ref_field_;
// Currently active SPS and PPS.
int curr_sps_id_;
« no previous file with comments | « content/common/gpu/media/v4l2_video_encode_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