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

Unified Diff: media/formats/mp4/avc.h

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)
Patch Set: Created 3 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: media/formats/mp4/avc.h
diff --git a/media/formats/mp4/avc.h b/media/formats/mp4/avc.h
index b85d56e5b04cd6a025b72a48ceb345a71e462584..d5fdfa3295caf48d28c56e6de95611e6b5c9024c 100644
--- a/media/formats/mp4/avc.h
+++ b/media/formats/mp4/avc.h
@@ -36,7 +36,8 @@ class MEDIA_EXPORT AVC {
static bool InsertParamSetsAnnexB(
const AVCDecoderConfigurationRecord& avc_config,
std::vector<uint8_t>* buffer,
- std::vector<SubsampleEntry>* subsamples);
+ std::vector<SubsampleEntry>* subsamples,
+ bool annexb_validation);
static bool ConvertConfigToAnnexB(
const AVCDecoderConfigurationRecord& avc_config,
@@ -70,6 +71,7 @@ class AVCBitstreamConverter : public BitstreamConverter {
public:
explicit AVCBitstreamConverter(
std::unique_ptr<AVCDecoderConfigurationRecord> avc_config);
+ void DisablePostAnnexbValidation() { post_annexb_validation_ = false; }
wolenetz 2017/01/25 23:42:41 Please add comment describing the effect of this n
erickung1 2017/02/03 18:18:31 Done.
// BitstreamConverter interface
bool ConvertFrame(std::vector<uint8_t>* frame_buf,
@@ -79,6 +81,7 @@ class AVCBitstreamConverter : public BitstreamConverter {
private:
~AVCBitstreamConverter() override;
std::unique_ptr<AVCDecoderConfigurationRecord> avc_config_;
+ bool post_annexb_validation_;
wolenetz 2017/01/25 23:42:41 Please add comment describing this new field.
erickung1 2017/02/03 18:18:31 Done.
};
} // namespace mp4

Powered by Google App Engine
This is Rietveld 408576698