Home
last modified time | relevance | path

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

12

/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.cc79 int spatial_index) const { in SpatialLayerFrameSize()
80 RTC_DCHECK_GE(spatial_index, 0); in SpatialLayerFrameSize()
81 RTC_DCHECK_LE(spatial_index, spatial_index_.value_or(0)); in SpatialLayerFrameSize()
83 auto it = spatial_layer_frame_size_bytes_.find(spatial_index); in SpatialLayerFrameSize()
91 void EncodedImage::SetSpatialLayerFrameSize(int spatial_index, in SetSpatialLayerFrameSize() argument
93 RTC_DCHECK_GE(spatial_index, 0); in SetSpatialLayerFrameSize()
94 RTC_DCHECK_LE(spatial_index, spatial_index_.value_or(0)); in SetSpatialLayerFrameSize()
96 spatial_layer_frame_size_bytes_[spatial_index] = size_bytes; in SetSpatialLayerFrameSize()
Dencoded_image.h93 void SetSpatialIndex(absl::optional<int> spatial_index) { in SetSpatialIndex() argument
94 RTC_DCHECK_GE(spatial_index.value_or(0), 0); in SetSpatialIndex()
95 RTC_DCHECK_LT(spatial_index.value_or(0), kMaxSpatialLayers); in SetSpatialIndex()
96 spatial_index_ = spatial_index; in SetSpatialIndex()
108 absl::optional<size_t> SpatialLayerFrameSize(int spatial_index) const;
109 void SetSpatialLayerFrameSize(int spatial_index, size_t size_bytes);
Dvideo_frame_metadata.cc69 void VideoFrameMetadata::SetSpatialIndex(int spatial_index) { in SetSpatialIndex() argument
70 spatial_index_ = spatial_index; in SetSpatialIndex()
Dvideo_frame_metadata.h55 void SetSpatialIndex(int spatial_index);
Drtp_video_frame_assembler.cc247 generic_descriptor_info.spatial_index = in ParseDependenciesDescriptorExtension()
316 generic_descriptor_info.spatial_index = in ParseGenericDescriptorExtension()
/external/webrtc/call/
Drtp_payload_params.cc38 absl::optional<int> spatial_index, in PopulateRtpWithCodecSpecifics() argument
50 rtp->simulcastIdx = spatial_index.value_or(0); in PopulateRtpWithCodecSpecifics()
70 vp9_header.spatial_idx = spatial_index.value_or(kNoSpatialIdx); in PopulateRtpWithCodecSpecifics()
98 rtp->simulcastIdx = spatial_index.value_or(0); in PopulateRtpWithCodecSpecifics()
104 rtp->simulcastIdx = spatial_index.value_or(0); in PopulateRtpWithCodecSpecifics()
296 generic.spatial_index = frame_info.spatial_id; in GenericDescriptorFromFrameInfo()
495 const int spatial_index = 0; in Vp8ToGeneric() local
500 spatial_index >= RtpGenericFrameDescriptor::kMaxSpatialLayers) { in Vp8ToGeneric()
510 generic.spatial_index = spatial_index; in Vp8ToGeneric()
527 spatial_index, temporal_index, in Vp8ToGeneric()
[all …]
Drtp_payload_params_unittest.cc239 Field(&GenericDescriptorInfo::spatial_index, 0), in TEST()
256 Field(&GenericDescriptorInfo::spatial_index, 0), in TEST()
273 Field(&GenericDescriptorInfo::spatial_index, 0), in TEST()
406 EXPECT_THAT(header.generic->spatial_index, Eq(0)); in TEST()
417 EXPECT_THAT(header.generic->spatial_index, Eq(0)); in TEST()
442 EXPECT_EQ(key_header.generic->spatial_index, 1); in TEST()
460 EXPECT_EQ(delta_header.generic->spatial_index, 2); in TEST()
497 EXPECT_EQ(header.generic->spatial_index, 0); in ConvertAndCheck()
583 EXPECT_EQ(header.generic->spatial_index, 0); in TEST()
602 EXPECT_EQ(header.generic->spatial_index, 0); in TEST()
[all …]
Drtp_payload_params.h88 int spatial_index,
/external/webrtc/video/
Dframe_cadence_adapter.cc110 void UpdateLayerQualityConvergence(size_t spatial_index,
114 void UpdateLayerStatus(size_t spatial_index, bool enabled);
236 void UpdateLayerQualityConvergence(size_t spatial_index,
238 void UpdateLayerStatus(size_t spatial_index, bool enabled) override;
327 size_t spatial_index, in UpdateLayerQualityConvergence() argument
330 RTC_LOG(LS_INFO) << __func__ << " this " << this << " layer " << spatial_index in UpdateLayerQualityConvergence()
332 if (spatial_index >= layer_trackers_.size()) in UpdateLayerQualityConvergence()
334 if (layer_trackers_[spatial_index].quality_converged.has_value()) in UpdateLayerQualityConvergence()
335 layer_trackers_[spatial_index].quality_converged = quality_converged; in UpdateLayerQualityConvergence()
338 void ZeroHertzAdapterMode::UpdateLayerStatus(size_t spatial_index, in UpdateLayerStatus() argument
[all …]
Dframe_cadence_adapter.h109 virtual void UpdateLayerQualityConvergence(size_t spatial_index,
113 virtual void UpdateLayerStatus(size_t spatial_index, bool enabled) = 0;
Dencoder_bitrate_adjuster.h50 void OnEncodedFrame(DataSize size, int spatial_index, int temporal_index);
Dencoder_bitrate_adjuster_unittest.cc181 size_t NumTemporalLayers(int spatial_index) { in NumTemporalLayers() argument
183 return codec_.spatialLayers[spatial_index].numberOfTemporalLayers; in NumTemporalLayers()
185 return codec_.simulcastStream[spatial_index].numberOfTemporalLayers; in NumTemporalLayers()
Dencoder_bitrate_adjuster.cc317 int spatial_index, in OnEncodedFrame() argument
321 auto& detector = overshoot_detectors_[spatial_index][temporal_index]; in OnEncodedFrame()
Drtp_video_stream_receiver_frame_transformer_delegate_unittest.cc139 generic.spatial_index = 2; in TEST()
/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.cc33 metadata.SetSpatialIndex(generic->spatial_index); in GetAsMetadata()
Drtp_video_header.h53 int spatial_index = 0; member
Drtp_video_header_unittest.cc79 generic.spatial_index = 2; in TEST()
Drtp_sender_video_unittest.cc527 generic.spatial_index = 0; in TEST_F()
552 generic.spatial_index = 1; in TEST_F()
602 generic.spatial_index = 0; in TEST_F()
617 generic.spatial_index = 1; in TEST_F()
824 generic.spatial_index = 2; in TEST_F()
1543 generic.spatial_index = 2; in TEST_F()
/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/pc/test/
Dsvc_e2e_tests.cc348 for (auto& [spatial_index, temporal_layers] : in TEST_P()
351 RTC_LOG(LS_INFO) << " Layer: " << spatial_index << "," << temporal_index in TEST_P()
357 for (auto& [spatial_index, temporal_layers] : in TEST_P()
360 RTC_LOG(LS_INFO) << " Layer: " << spatial_index << "," << temporal_index in TEST_P()
/external/webrtc/modules/video_coding/
Drtp_generic_ref_finder.cc25 frame->SetSpatialIndex(descriptor.spatial_index); in ManageFrame()
/external/webrtc/test/fuzzers/
Drtp_frame_reference_finder_fuzzer.cc72 result->spatial_index = (flags & 0b0111'0000) >> 4; in GenerateGenericFrameDependencies()

12