nsresult AVCConfigurationBox::Generate(uint32_t* aBoxSize) { nsresult rv; FragmentBuffer* frag = mControl->GetFragment(Video_Track); rv = frag->GetCSD(avcConfig); NS_ENSURE_SUCCESS(rv, rv); size += avcConfig.Length(); *aBoxSize = size; return NS_OK; }
nsresult EVRCSpecificBox::Generate(uint32_t* aBoxSize) { nsresult rv; FragmentBuffer* frag = mControl->GetFragment(Audio_Track); rv = frag->GetCSD(evrcDecSpecInfo); NS_ENSURE_SUCCESS(rv, rv); size += evrcDecSpecInfo.Length(); *aBoxSize = size; return NS_OK; }
nsresult ES_Descriptor::Generate(uint32_t* aBoxSize) { nsresult rv; // 14496-1 '8.3.4 DecoderConfigDescriptor' // 14496-1 '10.2.3 SL Packet Header Configuration' Box::MetaHelper meta; meta.Init(mControl); FragmentBuffer* frag = mControl->GetFragment(Audio_Track); rv = frag->GetCSD(DecodeSpecificInfo); NS_ENSURE_SUCCESS(rv, rv); length = sizeof(ES_ID) + 1; length += DecodeSpecificInfo.Length(); *aBoxSize = sizeof(tag) + sizeof(length) + length; return NS_OK; }