8 #include <google/protobuf/stubs/common.h> 9 #include <google/protobuf/io/coded_stream.h> 10 #include <google/protobuf/extension_set.h> 11 #include <google/protobuf/wire_format_lite.h> 12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h> 14 #include <google/protobuf/port_def.inc> 21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MediaInfo_Frame>
_instance;
25 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MediaInfo_Stream>
_instance;
29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MediaInfo>
_instance;
33 static void InitDefaultsscc_info_MediaInfo_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto() {
34 GOOGLE_PROTOBUF_VERIFY_VERSION;
39 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
45 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_MediaInfo_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto}, {
49 static void InitDefaultsscc_info_MediaInfo_Frame_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto() {
50 GOOGLE_PROTOBUF_VERIFY_VERSION;
55 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
61 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MediaInfo_Frame_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto}, {}};
63 static void InitDefaultsscc_info_MediaInfo_Stream_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto() {
64 GOOGLE_PROTOBUF_VERIFY_VERSION;
69 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
75 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MediaInfo_Stream_shaka_2ftest_2fsrc_2fmedia_2fmedia_5ftests_2eproto}, {}};
86 using HasBits = decltype(std::declval<MediaInfo_Frame>()._has_bits_);
97 (*has_bits)[0] |= 16u;
100 (*has_bits)[0] |= 1u;
105 : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
110 : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
111 _internal_metadata_(nullptr),
112 _has_bits_(from._has_bits_) {
113 _internal_metadata_.MergeFrom(from._internal_metadata_);
114 data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
116 data_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_hash_);
118 ::memcpy(&pts_, &from.pts_,
119 static_cast<size_t>(reinterpret_cast<char*>(&is_encrypted_) -
120 reinterpret_cast<char*>(&pts_)) +
sizeof(is_encrypted_));
124 void MediaInfo_Frame::SharedCtor() {
126 data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
127 ::memset(&pts_, 0, static_cast<size_t>(
128 reinterpret_cast<char*>(&is_encrypted_) -
129 reinterpret_cast<char*>(&pts_)) +
sizeof(is_encrypted_));
137 void MediaInfo_Frame::SharedDtor() {
138 data_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
141 void MediaInfo_Frame::SetCachedSize(
int size)
const {
142 _cached_size_.Set(size);
152 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
154 (void) cached_has_bits;
156 cached_has_bits = _has_bits_[0];
157 if (cached_has_bits & 0x00000001u) {
158 data_hash_.ClearNonDefaultToEmptyNoArena();
160 if (cached_has_bits & 0x0000001eu) {
161 ::memset(&pts_, 0, static_cast<size_t>(
162 reinterpret_cast<char*>(&is_encrypted_) -
163 reinterpret_cast<char*>(&pts_)) +
sizeof(is_encrypted_));
166 _internal_metadata_.Clear();
169 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 170 const char* MediaInfo_Frame::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
171 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure 173 while (!ctx->Done(&ptr)) {
174 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
175 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
180 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) {
182 pts_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
183 ptr +=
sizeof(double);
184 }
else goto handle_unusual;
188 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) {
190 dts_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
191 ptr +=
sizeof(double);
192 }
else goto handle_unusual;
196 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) {
198 duration_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
199 ptr +=
sizeof(double);
200 }
else goto handle_unusual;
204 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
206 is_encrypted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
208 }
else goto handle_unusual;
212 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
213 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(
mutable_data_hash(), ptr, ctx);
215 }
else goto handle_unusual;
219 if ((tag & 7) == 4 || tag == 0) {
220 ctx->SetLastTag(tag);
223 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
224 CHK_(ptr !=
nullptr);
230 _has_bits_.Or(has_bits);
237 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 239 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
240 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure 241 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
242 ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
243 &_internal_metadata_);
244 ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
245 unknown_fields_setter.buffer());
246 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
247 &unknown_fields_output,
false);
250 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
252 if (!p.second)
goto handle_unusual;
253 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
256 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) {
258 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
259 double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
269 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) {
271 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
272 double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
282 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) {
284 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
285 double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
286 input, &duration_)));
295 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
297 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
298 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
299 input, &is_encrypted_)));
308 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
309 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
322 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
323 input, tag, &unknown_fields_stream));
336 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 339 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const {
341 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
342 (void) cached_has_bits;
344 cached_has_bits = _has_bits_[0];
346 if (cached_has_bits & 0x00000002u) {
347 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(1, this->
pts(), output);
351 if (cached_has_bits & 0x00000004u) {
352 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->
dts(), output);
356 if (cached_has_bits & 0x00000008u) {
357 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(3, this->
duration(), output);
361 if (cached_has_bits & 0x00000010u) {
362 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->
is_encrypted(), output);
366 if (cached_has_bits & 0x00000001u) {
367 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
371 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
372 static_cast<int>(_internal_metadata_.unknown_fields().size()));
376 size_t MediaInfo_Frame::RequiredFieldsByteSizeFallback()
const {
378 size_t total_size = 0;
383 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
401 size_t total_size = 0;
403 total_size += _internal_metadata_.unknown_fields().size();
405 if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {
408 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
418 total_size += RequiredFieldsByteSizeFallback();
420 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
422 (void) cached_has_bits;
424 cached_has_bits = _has_bits_[0];
425 if (cached_has_bits & 0x00000018u) {
427 if (cached_has_bits & 0x00000008u) {
432 if (cached_has_bits & 0x00000010u) {
437 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
438 SetCachedSize(cached_size);
443 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
444 MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const MediaInfo_Frame*>(
450 GOOGLE_DCHECK_NE(&from,
this);
451 _internal_metadata_.MergeFrom(from._internal_metadata_);
452 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
453 (void) cached_has_bits;
455 cached_has_bits = from._has_bits_[0];
456 if (cached_has_bits & 0x0000001fu) {
457 if (cached_has_bits & 0x00000001u) {
458 _has_bits_[0] |= 0x00000001u;
459 data_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_hash_);
461 if (cached_has_bits & 0x00000002u) {
464 if (cached_has_bits & 0x00000004u) {
467 if (cached_has_bits & 0x00000008u) {
468 duration_ = from.duration_;
470 if (cached_has_bits & 0x00000010u) {
471 is_encrypted_ = from.is_encrypted_;
473 _has_bits_[0] |= cached_has_bits;
479 if (&from ==
this)
return;
485 if ((_has_bits_[0] & 0x00000007) != 0x00000007)
return false;
491 _internal_metadata_.Swap(&other->_internal_metadata_);
492 swap(_has_bits_[0], other->_has_bits_[0]);
493 data_hash_.Swap(&other->data_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
494 GetArenaNoVirtual());
495 swap(pts_, other->pts_);
496 swap(dts_, other->dts_);
497 swap(duration_, other->duration_);
498 swap(is_encrypted_, other->is_encrypted_);
502 return "shaka.proto.MediaInfo.Frame";
512 using HasBits = decltype(std::declval<MediaInfo_Stream>()._has_bits_);
514 (*has_bits)[0] |= 2u;
517 (*has_bits)[0] |= 4u;
520 (*has_bits)[0] |= 8u;
523 (*has_bits)[0] |= 1u;
526 (*has_bits)[0] |= 16u;
529 (*has_bits)[0] |= 32u;
534 : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
539 : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
540 _internal_metadata_(nullptr),
541 _has_bits_(from._has_bits_) {
542 _internal_metadata_.MergeFrom(from._internal_metadata_);
543 extra_data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
545 extra_data_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.extra_data_hash_);
547 ::memcpy(&time_scale_num_, &from.time_scale_num_,
548 static_cast<size_t>(reinterpret_cast<char*>(&sar_den_) -
549 reinterpret_cast<char*>(&time_scale_num_)) +
sizeof(sar_den_));
553 void MediaInfo_Stream::SharedCtor() {
555 extra_data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
556 ::memset(&time_scale_num_, 0, static_cast<size_t>(
557 reinterpret_cast<char*>(&sar_den_) -
558 reinterpret_cast<char*>(&time_scale_num_)) +
sizeof(sar_den_));
566 void MediaInfo_Stream::SharedDtor() {
567 extra_data_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
570 void MediaInfo_Stream::SetCachedSize(
int size)
const {
571 _cached_size_.Set(size);
581 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
583 (void) cached_has_bits;
585 cached_has_bits = _has_bits_[0];
586 if (cached_has_bits & 0x00000001u) {
587 extra_data_hash_.ClearNonDefaultToEmptyNoArena();
589 if (cached_has_bits & 0x0000003eu) {
590 ::memset(&time_scale_num_, 0, static_cast<size_t>(
591 reinterpret_cast<char*>(&sar_den_) -
592 reinterpret_cast<char*>(&time_scale_num_)) +
sizeof(sar_den_));
595 _internal_metadata_.Clear();
598 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 599 const char* MediaInfo_Stream::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
600 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure 602 while (!ctx->Done(&ptr)) {
603 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
604 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
609 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
611 time_scale_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
613 }
else goto handle_unusual;
617 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
619 time_scale_den_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
621 }
else goto handle_unusual;
625 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
627 is_video_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
629 }
else goto handle_unusual;
633 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
636 }
else goto handle_unusual;
640 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
642 sar_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
644 }
else goto handle_unusual;
648 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
650 sar_den_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
652 }
else goto handle_unusual;
656 if ((tag & 7) == 4 || tag == 0) {
657 ctx->SetLastTag(tag);
660 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
661 CHK_(ptr !=
nullptr);
667 _has_bits_.Or(has_bits);
674 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 676 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
677 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure 678 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
679 ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
680 &_internal_metadata_);
681 ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
682 unknown_fields_setter.buffer());
683 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
684 &unknown_fields_output,
false);
687 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
689 if (!p.second)
goto handle_unusual;
690 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
693 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
695 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
696 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
697 input, &time_scale_num_)));
706 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
708 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
709 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
710 input, &time_scale_den_)));
719 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
721 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
722 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
723 input, &is_video_)));
732 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
733 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
743 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
745 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
746 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
756 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
758 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
759 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
772 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
773 input, tag, &unknown_fields_stream));
786 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 789 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const {
791 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
792 (void) cached_has_bits;
794 cached_has_bits = _has_bits_[0];
796 if (cached_has_bits & 0x00000002u) {
797 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(1, this->
time_scale_num(), output);
801 if (cached_has_bits & 0x00000004u) {
802 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->
time_scale_den(), output);
806 if (cached_has_bits & 0x00000008u) {
807 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->
is_video(), output);
811 if (cached_has_bits & 0x00000001u) {
812 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
817 if (cached_has_bits & 0x00000010u) {
818 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(5, this->
sar_num(), output);
822 if (cached_has_bits & 0x00000020u) {
823 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(6, this->
sar_den(), output);
826 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
827 static_cast<int>(_internal_metadata_.unknown_fields().size()));
831 size_t MediaInfo_Stream::RequiredFieldsByteSizeFallback()
const {
833 size_t total_size = 0;
838 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
845 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
852 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
864 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
871 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
879 size_t total_size = 0;
881 total_size += _internal_metadata_.unknown_fields().size();
883 if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) {
886 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
891 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
896 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
904 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
909 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
913 total_size += RequiredFieldsByteSizeFallback();
915 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
917 (void) cached_has_bits;
919 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
920 SetCachedSize(cached_size);
925 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
926 MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const MediaInfo_Stream*>(
932 GOOGLE_DCHECK_NE(&from,
this);
933 _internal_metadata_.MergeFrom(from._internal_metadata_);
934 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
935 (void) cached_has_bits;
937 cached_has_bits = from._has_bits_[0];
938 if (cached_has_bits & 0x0000003fu) {
939 if (cached_has_bits & 0x00000001u) {
940 _has_bits_[0] |= 0x00000001u;
941 extra_data_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.extra_data_hash_);
943 if (cached_has_bits & 0x00000002u) {
944 time_scale_num_ = from.time_scale_num_;
946 if (cached_has_bits & 0x00000004u) {
947 time_scale_den_ = from.time_scale_den_;
949 if (cached_has_bits & 0x00000008u) {
950 is_video_ = from.is_video_;
952 if (cached_has_bits & 0x00000010u) {
953 sar_num_ = from.sar_num_;
955 if (cached_has_bits & 0x00000020u) {
956 sar_den_ = from.sar_den_;
958 _has_bits_[0] |= cached_has_bits;
964 if (&from ==
this)
return;
970 if ((_has_bits_[0] & 0x0000003f) != 0x0000003f)
return false;
976 _internal_metadata_.Swap(&other->_internal_metadata_);
977 swap(_has_bits_[0], other->_has_bits_[0]);
978 extra_data_hash_.Swap(&other->extra_data_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
979 GetArenaNoVirtual());
980 swap(time_scale_num_, other->time_scale_num_);
981 swap(time_scale_den_, other->time_scale_den_);
982 swap(is_video_, other->is_video_);
983 swap(sar_num_, other->sar_num_);
984 swap(sar_den_, other->sar_den_);
988 return "shaka.proto.MediaInfo.Stream";
1000 using HasBits = decltype(std::declval<MediaInfo>()._has_bits_);
1002 (*has_bits)[0] |= 1u;
1004 static const ::shaka::proto::MediaInfo_Stream& stream(
const MediaInfo* msg);
1006 (*has_bits)[0] |= 2u;
1010 const ::shaka::proto::MediaInfo_Stream&
1012 return *msg->stream_;
1015 : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
1020 : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
1021 _internal_metadata_(nullptr),
1022 _has_bits_(from._has_bits_),
1023 frames_(from.frames_) {
1024 _internal_metadata_.MergeFrom(from._internal_metadata_);
1025 mime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1027 mime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.mime_);
1030 stream_ = new ::shaka::proto::MediaInfo_Stream(*from.stream_);
1037 void MediaInfo::SharedCtor() {
1039 mime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1048 void MediaInfo::SharedDtor() {
1049 mime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1053 void MediaInfo::SetCachedSize(
int size)
const {
1054 _cached_size_.Set(size);
1064 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1066 (void) cached_has_bits;
1069 cached_has_bits = _has_bits_[0];
1070 if (cached_has_bits & 0x00000003u) {
1071 if (cached_has_bits & 0x00000001u) {
1072 mime_.ClearNonDefaultToEmptyNoArena();
1074 if (cached_has_bits & 0x00000002u) {
1075 GOOGLE_DCHECK(stream_ !=
nullptr);
1080 _internal_metadata_.Clear();
1083 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1084 const char* MediaInfo::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1085 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure 1087 while (!ctx->Done(&ptr)) {
1088 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1089 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1094 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1095 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(
mutable_mime(), ptr, ctx);
1097 }
else goto handle_unusual;
1101 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1107 if (!ctx->DataAvailable(ptr))
break;
1108 }
while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
1109 }
else goto handle_unusual;
1113 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1116 }
else goto handle_unusual;
1120 if ((tag & 7) == 4 || tag == 0) {
1121 ctx->SetLastTag(tag);
1124 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1125 CHK_(ptr !=
nullptr);
1131 _has_bits_.Or(has_bits);
1138 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1140 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1141 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure 1142 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1143 ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
1144 &_internal_metadata_);
1145 ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
1146 unknown_fields_setter.buffer());
1147 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
1148 &unknown_fields_output,
false);
1151 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1153 if (!p.second)
goto handle_unusual;
1154 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1157 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1158 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1161 goto handle_unusual;
1168 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1169 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1172 goto handle_unusual;
1179 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
1180 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1183 goto handle_unusual;
1193 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
1194 input, tag, &unknown_fields_stream));
1207 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER 1210 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output)
const {
1212 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1213 (void) cached_has_bits;
1215 cached_has_bits = _has_bits_[0];
1217 if (cached_has_bits & 0x00000001u) {
1218 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1219 1, this->
mime(), output);
1223 for (
unsigned int i = 0,
1224 n = static_cast<unsigned int>(this->
frames_size()); i < n; i++) {
1225 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage(
1227 this->
frames(static_cast<int>(i)),
1232 if (cached_has_bits & 0x00000002u) {
1233 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessage(
1237 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
1238 static_cast<int>(_internal_metadata_.unknown_fields().size()));
1242 size_t MediaInfo::RequiredFieldsByteSizeFallback()
const {
1244 size_t total_size = 0;
1249 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1256 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1264 size_t total_size = 0;
1266 total_size += _internal_metadata_.unknown_fields().size();
1268 if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {
1271 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1276 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1280 total_size += RequiredFieldsByteSizeFallback();
1282 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1284 (void) cached_has_bits;
1288 unsigned int count =
static_cast<unsigned int>(this->
frames_size());
1289 total_size += 1UL * count;
1290 for (
unsigned int i = 0; i < count; i++) {
1292 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1293 this->
frames(static_cast<int>(i)));
1297 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1298 SetCachedSize(cached_size);
1303 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1304 MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const MediaInfo*>(
1310 GOOGLE_DCHECK_NE(&from,
this);
1311 _internal_metadata_.MergeFrom(from._internal_metadata_);
1312 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1313 (void) cached_has_bits;
1315 frames_.MergeFrom(from.frames_);
1316 cached_has_bits = from._has_bits_[0];
1317 if (cached_has_bits & 0x00000003u) {
1318 if (cached_has_bits & 0x00000001u) {
1319 _has_bits_[0] |= 0x00000001u;
1320 mime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.mime_);
1322 if (cached_has_bits & 0x00000002u) {
1330 if (&from ==
this)
return;
1336 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
1337 if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(this->
frames()))
return false;
1344 void MediaInfo::InternalSwap(
MediaInfo* other) {
1346 _internal_metadata_.Swap(&other->_internal_metadata_);
1347 swap(_has_bits_[0], other->_has_bits_[0]);
1348 CastToBase(&frames_)->InternalSwap(CastToBase(&other->frames_));
1349 mime_.Swap(&other->mime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1350 GetArenaNoVirtual());
1351 swap(stream_, other->stream_);
1355 return "shaka.proto.MediaInfo";
1362 PROTOBUF_NAMESPACE_OPEN
1364 return Arena::CreateInternal< ::shaka::proto::MediaInfo_Frame >(arena);
1367 return Arena::CreateInternal< ::shaka::proto::MediaInfo_Stream >(arena);
1370 return Arena::CreateInternal< ::shaka::proto::MediaInfo >(arena);
1372 PROTOBUF_NAMESPACE_CLOSE
1375 #include <google/protobuf/port_undef.inc>
class shaka::proto::MediaInfo_FrameDefaultTypeInternal _MediaInfo_Frame_default_instance_
void swap(shared_lock< Mutex > &a, shared_lock< Mutex > &b)
class shaka::proto::MediaInfo_StreamDefaultTypeInternal _MediaInfo_Stream_default_instance_
class shaka::proto::MediaInfoDefaultTypeInternal _MediaInfo_default_instance_