Home
last modified time | relevance | path

Searched refs:spatial_index (Results 1 – 22 of 22) sorted by relevance

/external/webrtc/api/video/
Dvideo_bitrate_allocation.cc24 bool VideoBitrateAllocation::SetBitrate(size_t spatial_index, in SetBitrate() argument
27 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); in SetBitrate()
31 bitrates_[spatial_index][temporal_index]; in SetBitrate()
45 bool VideoBitrateAllocation::HasBitrate(size_t spatial_index, in HasBitrate() argument
47 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); in HasBitrate()
49 return bitrates_[spatial_index][temporal_index].has_value(); in HasBitrate()
52 uint32_t VideoBitrateAllocation::GetBitrate(size_t spatial_index, in GetBitrate() argument
54 RTC_CHECK_LT(spatial_index, kMaxSpatialLayers); in GetBitrate()
56 return bitrates_[spatial_index][temporal_index].value_or(0); in GetBitrate()
61 bool VideoBitrateAllocation::IsSpatialLayerUsed(size_t spatial_index) const { in IsSpatialLayerUsed()
[all …]
Dvideo_bitrate_allocation.h38 bool SetBitrate(size_t spatial_index,
42 bool HasBitrate(size_t spatial_index, size_t temporal_index) const;
44 uint32_t GetBitrate(size_t spatial_index, size_t temporal_index) const;
48 bool IsSpatialLayerUsed(size_t spatial_index) const;
51 uint32_t GetSpatialLayerSum(size_t spatial_index) const;
56 uint32_t GetTemporalLayerSum(size_t spatial_index,
62 std::vector<uint32_t> GetTemporalLayerAllocation(size_t spatial_index) const;
Dencoded_image.cc91 int spatial_index) const { in SpatialLayerFrameSize()
92 RTC_DCHECK_GE(spatial_index, 0); in SpatialLayerFrameSize()
93 RTC_DCHECK_LE(spatial_index, spatial_index_.value_or(0)); in SpatialLayerFrameSize()
95 auto it = spatial_layer_frame_size_bytes_.find(spatial_index); in SpatialLayerFrameSize()
103 void EncodedImage::SetSpatialLayerFrameSize(int spatial_index, in SetSpatialLayerFrameSize() argument
105 RTC_DCHECK_GE(spatial_index, 0); in SetSpatialLayerFrameSize()
106 RTC_DCHECK_LE(spatial_index, spatial_index_.value_or(0)); in SetSpatialLayerFrameSize()
108 spatial_layer_frame_size_bytes_[spatial_index] = size_bytes; in SetSpatialLayerFrameSize()
Dencoded_image.h99 void SetSpatialIndex(absl::optional<int> spatial_index) { in SetSpatialIndex() argument
100 RTC_DCHECK_GE(spatial_index.value_or(0), 0); in SetSpatialIndex()
101 RTC_DCHECK_LT(spatial_index.value_or(0), kMaxSpatialLayers); in SetSpatialIndex()
102 spatial_index_ = spatial_index; in SetSpatialIndex()
107 absl::optional<size_t> SpatialLayerFrameSize(int spatial_index) const;
108 void SetSpatialLayerFrameSize(int spatial_index, size_t size_bytes);
Dvideo_frame_metadata.cc21 spatial_index_ = header.generic->spatial_index; in VideoFrameMetadata()
Dvideo_frame_metadata_unittest.cc57 generic.spatial_index = 2; in TEST()
/external/webrtc/call/
Drtp_payload_params.cc36 absl::optional<int> spatial_index, in PopulateRtpWithCodecSpecifics() argument
47 rtp->simulcastIdx = spatial_index.value_or(0); in PopulateRtpWithCodecSpecifics()
67 vp9_header.spatial_idx = spatial_index.value_or(kNoSpatialIdx); in PopulateRtpWithCodecSpecifics()
95 rtp->simulcastIdx = spatial_index.value_or(0); in PopulateRtpWithCodecSpecifics()
101 rtp->simulcastIdx = spatial_index.value_or(0); in PopulateRtpWithCodecSpecifics()
245 generic.spatial_index = frame_info.spatial_id; in GenericDescriptorFromFrameInfo()
374 const int spatial_index = 0; in Vp8ToGeneric() local
379 spatial_index >= RtpGenericFrameDescriptor::kMaxSpatialLayers) { in Vp8ToGeneric()
389 generic.spatial_index = spatial_index; in Vp8ToGeneric()
397 spatial_index, temporal_index, in Vp8ToGeneric()
[all …]
Drtp_payload_params.h81 int spatial_index,
Drtp_payload_params_unittest.cc345 EXPECT_EQ(key_header.generic->spatial_index, 1); in TEST()
363 EXPECT_EQ(delta_header.generic->spatial_index, 2); in TEST()
400 EXPECT_EQ(header.generic->spatial_index, 0); in ConvertAndCheck()
494 EXPECT_EQ(header.generic->spatial_index, 0); in ConvertAndCheck()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_descriptor_authentication.cc30 if (descriptor.spatial_index < 0 || descriptor.temporal_index < 0 || in RtpDescriptorAuthentication()
31 descriptor.spatial_index >= in RtpDescriptorAuthentication()
43 frame_descriptor.SetSpatialLayersBitmask(1 << descriptor.spatial_index); in RtpDescriptorAuthentication()
Drtp_video_header.h52 int spatial_index = 0; member
Drtp_sender_video_unittest.cc513 generic.spatial_index = 0; in TEST_P()
538 generic.spatial_index = 1; in TEST_P()
757 generic.spatial_index = 2; in TEST_P()
1026 generic.spatial_index = 2; in TEST_F()
Drtp_sender_video.cc324 video_header.generic->spatial_index; in AddRtpHeaderExtensions()
372 uint8_t spatial_bimask = 1 << video_header.generic->spatial_index; in AddRtpHeaderExtensions()
/external/tensorflow/tensorflow/core/util/
Dtensor_format_test.cc50 int spatial(int spatial_index) const { return spatial_dim[spatial_index]; } in spatial()
62 int spatial(int spatial_index) const { return spatial_dim[spatial_index]; } in spatial()
/external/webrtc/test/pc/e2e/
Dtest_peer_factory.cc82 absl::optional<int> spatial_index; in CalculateRequiredSpatialIndexPerStream() local
84 spatial_index = video_config.simulcast_config->target_spatial_index; in CalculateRequiredSpatialIndexPerStream()
85 if (!spatial_index) { in CalculateRequiredSpatialIndexPerStream()
86 spatial_index = kAnalyzeAnySpatialStream; in CalculateRequiredSpatialIndexPerStream()
89 bool res = out.insert({*video_config.stream_label, spatial_index}).second; in CalculateRequiredSpatialIndexPerStream()
/external/webrtc/video/
Dencoder_bitrate_adjuster_unittest.cc187 size_t NumTemporalLayers(int spatial_index) { in NumTemporalLayers() argument
189 return codec_.spatialLayers[spatial_index].numberOfTemporalLayers; in NumTemporalLayers()
191 return codec_.simulcastStream[spatial_index].numberOfTemporalLayers; in NumTemporalLayers()
Drtp_video_stream_receiver_frame_transformer_delegate_unittest.cc143 generic.spatial_index = 2; in TEST()
Drtp_video_stream_receiver2.cc392 generic_descriptor_info.spatial_index = in ParseGenericDependenciesExtension()
451 generic_descriptor_info.spatial_index = in ParseGenericDependenciesExtension()
Drtp_video_stream_receiver.cc424 generic_descriptor_info.spatial_index = in ParseGenericDependenciesExtension()
483 generic_descriptor_info.spatial_index = in ParseGenericDependenciesExtension()
/external/webrtc/test/fuzzers/
Drtp_frame_reference_finder_fuzzer.cc79 result->spatial_index = (flags & 0b0111'0000) >> 4; in GenerateGenericFrameDependencies()
/external/webrtc/modules/video_coding/codecs/vp9/
Dvp9_impl.cc1496 absl::optional<int> spatial_index; in GetEncodedLayerFrame() local
1497 PopulateCodecSpecific(&codec_specific_, &spatial_index, *pkt, in GetEncodedLayerFrame()
1499 encoded_image_.SetSpatialIndex(spatial_index); in GetEncodedLayerFrame()
/external/webrtc/modules/video_coding/
Drtp_frame_reference_finder.cc185 frame->id.spatial_layer = descriptor.spatial_index; in ManageFrameGeneric()