Home
last modified time | relevance | path

Searched refs:picture_id (Results 1 – 25 of 37) sorted by relevance

12

/external/webrtc/modules/video_coding/
Drtp_vp9_ref_finder.cc27 frame->SetId(codec_header.picture_id & (kFrameIdLength - 1)); in ManageFrame()
218 bool RtpVp9RefFinder::MissingRequiredFrameVp9(uint16_t picture_id, in MissingRequiredFrameVp9() argument
221 ForwardDiff<uint16_t, kFrameIdLength>(info.gof->pid_start, picture_id); in MissingRequiredFrameVp9()
238 Subtract<kFrameIdLength>(picture_id, info.gof->pid_diff[gof_idx][i]); in MissingRequiredFrameVp9()
242 AheadOf<uint16_t, kFrameIdLength>(picture_id, *missing_frame_it)) { in MissingRequiredFrameVp9()
250 void RtpVp9RefFinder::FrameReceivedVp9(uint16_t picture_id, GofInfo* info) { in FrameReceivedVp9() argument
257 if (AheadOf<uint16_t, kFrameIdLength>(picture_id, last_picture_id)) { in FrameReceivedVp9()
263 while (last_picture_id != picture_id) { in FrameReceivedVp9()
282 ForwardDiff<uint16_t, kFrameIdLength>(info->gof->pid_start, picture_id); in FrameReceivedVp9()
294 missing_frames_for_layer_[temporal_idx].erase(picture_id); in FrameReceivedVp9()
[all …]
Ddecoding_state_unittest.cc474 vp9_hdr.picture_id = 10; in TEST()
488 vp9_hdr.picture_id = 11; in TEST()
497 vp9_hdr.picture_id = 12; in TEST()
518 vp9_hdr.picture_id = 10; in TEST()
534 vp9_hdr.picture_id = 15; in TEST()
543 vp9_hdr.picture_id = 12; in TEST()
551 vp9_hdr.picture_id = 20; in TEST()
574 vp9_hdr.picture_id = 10; in TEST()
600 vp9_hdr.picture_id = 15; in TEST()
608 vp9_hdr.picture_id = 16; in TEST()
[all …]
Drtp_vp9_ref_finder.h63 bool MissingRequiredFrameVp9(uint16_t picture_id, const GofInfo& info);
65 void FrameReceivedVp9(uint16_t picture_id, GofInfo* info);
66 bool UpSwitchInIntervalVp9(uint16_t picture_id,
Ddecoding_state.cc241 bool VCMDecodingState::ContinuousPictureId(int picture_id) const { in ContinuousPictureId()
243 if (picture_id < picture_id_) { in ContinuousPictureId()
247 return ((next_picture_id & 0x7FFF) == picture_id); in ContinuousPictureId()
250 return ((next_picture_id & 0x7F) == picture_id); in ContinuousPictureId()
254 return (next_picture_id == picture_id); in ContinuousPictureId()
Dframe_buffer2_unittest.cc144 std::unique_ptr<FrameObjectFake> CreateFrame(uint16_t picture_id, in CreateFrame() argument
156 frame->SetId(picture_id); in CreateFrame()
169 int InsertFrame(uint16_t picture_id, in InsertFrame() argument
175 return buffer_->InsertFrame(CreateFrame(picture_id, spatial_layer, ts_ms, in InsertFrame()
180 int InsertNackedFrame(uint16_t picture_id, int64_t ts_ms) { in InsertNackedFrame() argument
182 CreateFrame(picture_id, 0, ts_ms, true, kFrameSize); in InsertNackedFrame()
200 void CheckFrame(size_t index, int picture_id, int spatial_layer) { in CheckFrame() argument
203 ASSERT_EQ(picture_id, frames_[index]->Id()); in CheckFrame()
Drtp_frame_reference_finder.cc79 if (vp9_header.picture_id == kNoPictureId) { in ManageFrame()
85 std::move(frame), vp9_header.picture_id); in ManageFrame()
94 std::move(frame), generic_header->picture_id); in ManageFrame()
Ddecoding_state.h61 bool ContinuousPictureId(int picture_id) const;
/external/webrtc/video/
Dpicture_id_tests.cc76 int16_t picture_id; member
105 parsed->picture_id = vp8_header->pictureId; in ParsePayload()
110 parsed->picture_id = vp9_header->picture_id; in ParsePayload()
126 EXPECT_EQ(last.picture_id, current.picture_id); in VerifyPictureId()
132 EXPECT_TRUE((AheadOf<uint16_t, kPictureIdWraparound>(current.picture_id, in VerifyPictureId()
133 last.picture_id))); in VerifyPictureId()
136 int diff = ForwardDiff<uint16_t, kPictureIdWraparound>(last.picture_id, in VerifyPictureId()
137 current.picture_id); in VerifyPictureId()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_format_video_generic.cc93 uint16_t picture_id = generic_header->picture_id; in BuildHeader() local
95 header_[1] = (picture_id >> 8) & 0x7F; in BuildHeader()
96 header_[2] = picture_id & 0xFF; in BuildHeader()
Drtp_format_video_generic_unittest.cc78 .picture_id = 37; in TEST()
101 .picture_id = 37; in TEST()
117 .picture_id = 37; in TEST()
132 .picture_id = 0x8137; in TEST()
Dvideo_rtp_depacketizer_vp9.cc35 vp9->picture_id = parser.ReadBits(15); in ParsePictureId()
38 vp9->picture_id = parser.ReadBits(7); in ParsePictureId()
74 if (vp9->picture_id == kNoPictureId) { in ParseRefIndices()
91 uint32_t scaled_pid = vp9->picture_id; in ParseRefIndices()
Dvideo_rtp_depacketizer_vp9_unittest.cc33 EXPECT_EQ(expected.picture_id, actual.picture_id); in VerifyHeader()
96 expected.picture_id = kMaxOneBytePictureId; in TEST()
114 expected.picture_id = kMaxTwoBytePictureId; in TEST()
203 expected.picture_id = kPictureId; in TEST()
Drtp_format_vp9_unittest.cc34 EXPECT_EQ(expected.picture_id, actual.picture_id); in VerifyHeader()
226 expected_.picture_id = kMaxOneBytePictureId; // 2 byte payload descriptor in TEST_F()
243 expected_.picture_id = kMaxTwoBytePictureId; // 3 byte payload descriptor in TEST_F()
304 expected_.picture_id = 2; in TEST_F()
Dvideo_rtp_depacketizer_generic.cc64 .picture_id = ((payload_data[1] & 0x7F) << 8) | payload_data[2]; in Parse()
Drtp_video_header.h37 uint16_t picture_id; member
Dvideo_rtp_depacketizer_generic_unittest.cc52 EXPECT_EQ(generic_header->picture_id, 0x1337); in TEST()
/external/webrtc/test/fuzzers/
Dvp9_encoder_references_fuzzer.cc50 layer_frame.picture_id = picture_id_; in OnEncodedImage()
83 int64_t picture_id; member
97 RTC_CHECK_EQ(layer_frame.picture_id, previous_frame.picture_id); in CheckVp9References()
99 if (previous_frame.picture_id == layer_frame.picture_id) { in CheckVp9References()
145 RTC_CHECK_EQ(layer_frame.picture_id, dependency.picture_id); in CheckGenericAndCodecSpecificReferencesAreConsistent()
151 picture_id_diffs, layer_frame.picture_id - dependency.picture_id)); in CheckGenericAndCodecSpecificReferencesAreConsistent()
/external/webrtc/call/
Drtp_payload_params.cc191 state_.picture_id = in RtpPayloadParams()
192 state ? state->picture_id : (random.Rand<int16_t>() & 0x7FFF); in RtpPayloadParams()
247 state_.picture_id = (static_cast<uint16_t>(state_.picture_id) + 1) & 0x7FFF; in SetCodecSpecific()
252 vp8_header.pictureId = state_.picture_id; in SetCodecSpecific()
264 vp9_header.picture_id = state_.picture_id; in SetCodecSpecific()
282 .picture_id = state_.picture_id; in SetCodecSpecific()
611 last_vp9_frame_id_[vp9_header.picture_id % kPictureDiffLimit] in Vp9ToGeneric()
619 uint16_t depend_on = vp9_header.picture_id - vp9_header.pid_diff[i]; in Vp9ToGeneric()
624 last_vp9_frame_id_[vp9_header.picture_id % kPictureDiffLimit][spatial_index] = in Vp9ToGeneric()
Drtp_payload_params_unittest.cc59 state2.picture_id = kPictureId; in TEST()
101 state.picture_id = kPictureId; in TEST()
125 EXPECT_EQ(kPictureId + 1, vp9_header.picture_id); in TEST()
148 EXPECT_EQ(kPictureId + 1, vp9_header.picture_id); in TEST()
159 state.picture_id = kInitialPictureId1; in TEST()
175 EXPECT_EQ(kInitialPictureId1 + 1, state.picture_id); in TEST()
181 state.picture_id = kMaxTwoBytePictureId; in TEST()
197 EXPECT_EQ(0, params.state().picture_id); // Wrapped. in TEST()
284 state.picture_id = kInitialPictureId1; in TEST()
313 EXPECT_EQ(kInitialPictureId1 + 2, params.state().picture_id); in TEST()
[all …]
Drtp_config.h27 int16_t picture_id = -1; member
/external/mesa3d/src/gallium/frontends/va/
Dpicture_hevc_enc.c49 context->desc.h265enc.decoded_curr_pic = h265->decoded_curr_pic.picture_id; in vlVaHandleVAEncPictureParameterBufferTypeHEVC()
52 context->desc.h265enc.reference_frames[i] = h265->reference_frames[i].picture_id; in vlVaHandleVAEncPictureParameterBufferTypeHEVC()
86 UINT_TO_PTR(h265->decoded_curr_pic.picture_id), in vlVaHandleVAEncPictureParameterBufferTypeHEVC()
102 if (h265->ref_pic_list0[i].picture_id != VA_INVALID_ID) { in vlVaHandleVAEncSliceParameterBufferTypeHEVC()
105 UINT_TO_PTR(h265->ref_pic_list0[i].picture_id))); in vlVaHandleVAEncSliceParameterBufferTypeHEVC()
107 if (h265->ref_pic_list1[i].picture_id != VA_INVALID_ID && h265->slice_type == 1) { in vlVaHandleVAEncSliceParameterBufferTypeHEVC()
110 UINT_TO_PTR(h265->ref_pic_list1[i].picture_id))); in vlVaHandleVAEncSliceParameterBufferTypeHEVC()
Dpicture_h264_enc.c56 UINT_TO_PTR(h264->CurrPic.picture_id), in vlVaHandleVAEncPictureParameterBufferTypeH264()
84 if (h264->RefPicList0[i].picture_id != VA_INVALID_ID) { in vlVaHandleVAEncSliceParameterBufferTypeH264()
87 UINT_TO_PTR(h264->RefPicList0[i].picture_id))); in vlVaHandleVAEncSliceParameterBufferTypeH264()
89 if (h264->RefPicList1[i].picture_id != VA_INVALID_ID && h264->slice_type == 1) { in vlVaHandleVAEncSliceParameterBufferTypeH264()
92 UINT_TO_PTR(h264->RefPicList1[i].picture_id))); in vlVaHandleVAEncSliceParameterBufferTypeH264()
Dpicture_h264.c119 (h264->ReferenceFrames[i].picture_id == VA_INVALID_SURFACE)) { in vlVaHandlePictureParameterBufferH264()
124 vlVaGetReferenceFrame(drv, h264->ReferenceFrames[i].picture_id, &context->desc.h264.ref[i]); in vlVaHandlePictureParameterBufferH264()
/external/webrtc/modules/video_coding/codecs/vp9/include/
Dvp9_globals.h119 picture_id = kNoPictureId; in InitRTPVideoHeaderVP9()
143 int16_t picture_id; // PictureID index, 15 bits; member
/external/virglrenderer/src/
Dvirgl_video.c887 pic->picture_id = VA_INVALID_SURFACE; in h264_init_picture()
910 pic->picture_id = target->va_sfc; in h264_fill_picture_param()
927 pic->picture_id = desc->buffer_id[i]; in h264_fill_picture_param()
1056 param->CurrPic.picture_id = get_enc_ref_pic(codec, desc->frame_num); in h264_fill_enc_picture_param()
1157 param->RefPicList0[i].picture_id = in h264_fill_enc_slice_param()
1159 param->RefPicList1[i].picture_id = in h264_fill_enc_slice_param()
1162 if (param->RefPicList0[i].picture_id != VA_INVALID_ID) in h264_fill_enc_slice_param()
1165 if (param->RefPicList1[i].picture_id != VA_INVALID_ID) in h264_fill_enc_slice_param()
1538 pic->picture_id = VA_INVALID_SURFACE; in h265_init_picture()
1563 vapp->ReferenceFrames[i].picture_id = desc->ref[i]; in h265_fill_picture_param()
[all …]

12