Home
last modified time | relevance | path

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

12

/external/webrtc/modules/video_coding/
Drtp_frame_reference_finder.cc91 frame->id.picture_id += picture_id_offset_; in HandOffFrame()
114 return ManageFramePidOrSeqNum(frame, generic_header->picture_id); in ManageFrameInternal()
184 frame->id.picture_id = descriptor.frame_id; in ManageFrameGeneric()
201 int picture_id) { in ManageFramePidOrSeqNum() argument
204 if (picture_id != kNoPictureId) { in ManageFramePidOrSeqNum()
205 frame->id.picture_id = unwrapper_.Unwrap(picture_id & 0x7FFF); in ManageFramePidOrSeqNum()
208 frame->references[0] = frame->id.picture_id - 1; in ManageFramePidOrSeqNum()
257 frame->id.picture_id = frame->last_seq_num(); in ManageFramePidOrSeqNum()
261 if (AheadOf<uint16_t>(frame->id.picture_id, last_picture_id_gop)) { in ManageFramePidOrSeqNum()
262 seq_num_it->second.first = frame->id.picture_id; in ManageFramePidOrSeqNum()
[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 …]
Dframe_buffer2.cc170 next_frame_it->first.picture_id != frame->id.picture_id || in FindNextFrame()
364 if (frame.references[i] >= frame.id.picture_id) in ValidReferences()
402 prev_frame->first.picture_id != id.picture_id || in IsCompleteSuperFrame()
420 next_frame->first.picture_id != id.picture_id || in IsCompleteSuperFrame()
438 !last_continuous_frame_ ? -1 : last_continuous_frame_->picture_id; in InsertFrame()
442 << id.picture_id << ":" in InsertFrame()
451 << id.picture_id << ":" in InsertFrame()
458 << id.picture_id << ":" in InsertFrame()
483 << id.picture_id << ":" in InsertFrame()
486 << last_decoded_frame->picture_id << ":" in InsertFrame()
[all …]
Drtp_frame_reference_finder.h99 FrameDecision ManageFramePidOrSeqNum(RtpFrameObject* frame, int picture_id);
115 bool MissingRequiredFrameVp9(uint16_t picture_id, const GofInfo& info);
120 void FrameReceivedVp9(uint16_t picture_id, GofInfo* info);
124 bool UpSwitchInIntervalVp9(uint16_t picture_id,
Dframe_buffer2_unittest.cc155 std::unique_ptr<FrameObjectFake> CreateFrame(uint16_t picture_id, in CreateFrame() argument
168 frame->id.picture_id = picture_id; in CreateFrame()
183 int InsertFrame(uint16_t picture_id, in InsertFrame() argument
191 CreateFrame(picture_id, spatial_layer, ts_ms, inter_layer_predicted, in InsertFrame()
195 int InsertNackedFrame(uint16_t picture_id, int64_t ts_ms) { in InsertNackedFrame() argument
197 CreateFrame(picture_id, 0, ts_ms, false, true, kFrameSize); in InsertNackedFrame()
218 void CheckFrame(size_t index, int picture_id, int spatial_layer) { in CheckFrame() argument
221 ASSERT_EQ(picture_id, frames_[index]->id.picture_id); in CheckFrame()
285 test_frame->id.picture_id = 0; in TEST_F()
557 frame->id.picture_id = pid; in TEST_F()
Ddecoding_state.cc240 bool VCMDecodingState::ContinuousPictureId(int picture_id) const { in ContinuousPictureId()
242 if (picture_id < picture_id_) { in ContinuousPictureId()
246 return ((next_picture_id & 0x7FFF) == picture_id); in ContinuousPictureId()
249 return ((next_picture_id & 0x7F) == picture_id); in ContinuousPictureId()
253 return (next_picture_id == picture_id); in ContinuousPictureId()
/external/webrtc/api/video/
Dencoded_frame.h26 VideoLayerFrameId() : picture_id(-1), spatial_layer(0) {} in VideoLayerFrameId()
27 VideoLayerFrameId(int64_t picture_id, uint8_t spatial_layer) in VideoLayerFrameId()
28 : picture_id(picture_id), spatial_layer(spatial_layer) {} in VideoLayerFrameId()
31 return picture_id == rhs.picture_id && spatial_layer == rhs.spatial_layer;
39 if (picture_id == rhs.picture_id)
41 return picture_id < rhs.picture_id;
48 int64_t picture_id; member
/external/webrtc/modules/video_coding/utility/
Ddecoded_frames_history.cc40 layers_[frameid.spatial_layer].last_picture_id = frameid.picture_id; in InsertDecoded()
42 .buffer[PictureIdToIndex(frameid.picture_id)] = true; in InsertDecoded()
46 int new_index = PictureIdToIndex(frameid.picture_id); in InsertDecoded()
49 RTC_DCHECK(history.last_picture_id < frameid.picture_id); in InsertDecoded()
53 int64_t id_jump = frameid.picture_id - *history.last_picture_id; in InsertDecoded()
70 history.last_picture_id = frameid.picture_id; in InsertDecoded()
84 if (frameid.picture_id <= *history.last_picture_id - window_size_) { in WasDecoded()
90 if (frameid.picture_id > history.last_picture_id) in WasDecoded()
93 return history.buffer[PictureIdToIndex(frameid.picture_id)]; in WasDecoded()
Ddecoded_frames_history_unittest.cc129 EXPECT_EQ(history.GetLastDecodedFrameId()->picture_id, -1233); in TEST()
133 EXPECT_EQ(history.GetLastDecodedFrameId()->picture_id, 0); in TEST()
136 EXPECT_EQ(history.GetLastDecodedFrameId()->picture_id, 1); in TEST()
/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()
Dvideo_receive_stream_unittest.cc180 test_frame->id.picture_id = 0; in TEST_F()
211 test_frame->id.picture_id = 0; in TEST_F()
227 test_frame->id.picture_id = 0; in TEST_F()
291 test_frame->id.picture_id = 0; in TEST_F()
304 test_frame->id.picture_id = 0; in TEST_F()
317 test_frame->id.picture_id = 0; in TEST_F()
336 test_frame->id.picture_id = 0; in TEST_F()
407 int picture_id) { in MakeFrame() argument
410 frame->id.picture_id = picture_id; in MakeFrame()
Dvideo_receive_stream2_unittest.cc183 test_frame->id.picture_id = 0; in TEST_F()
214 test_frame->id.picture_id = 0; in TEST_F()
230 test_frame->id.picture_id = 0; in TEST_F()
295 test_frame->id.picture_id = 0; in TEST_F()
308 test_frame->id.picture_id = 0; in TEST_F()
321 test_frame->id.picture_id = 0; in TEST_F()
340 test_frame->id.picture_id = 0; in TEST_F()
411 int picture_id) { in MakeFrame() argument
414 frame->id.picture_id = picture_id; in MakeFrame()
Dvideo_stream_decoder_impl_unittest.cc151 FrameBuilder& WithPictureId(int picture_id) { in WithPictureId() argument
152 frame_->id.picture_id = picture_id; in WithPictureId()
Drtp_video_stream_receiver2_unittest.cc808 EXPECT_EQ(frame->references[0], frame->id.picture_id - 90); in TEST_F()
809 EXPECT_EQ(frame->references[1], frame->id.picture_id - 80); in TEST_F()
944 first_picture_id = frame->id.picture_id; in TEST_F()
950 EXPECT_EQ(frame->id.picture_id - first_picture_id, 3); in TEST_F()
1016 first_picture_id = frame->id.picture_id; in TEST_F()
1033 EXPECT_EQ(frame->id.picture_id - first_picture_id, 18); in TEST_F()
1037 EXPECT_EQ(frame->id.picture_id - first_picture_id, 14); in TEST_F()
1102 EXPECT_EQ(frame->id.picture_id & 0xFFFF, 3); in TEST_F()
1114 EXPECT_EQ(frame->id.picture_id & 0xFFFF, 4); in TEST_F()
Drtp_video_stream_receiver_unittest.cc801 EXPECT_EQ(frame->references[0], frame->id.picture_id - 90); in TEST_F()
802 EXPECT_EQ(frame->references[1], frame->id.picture_id - 80); in TEST_F()
937 first_picture_id = frame->id.picture_id; in TEST_F()
943 EXPECT_EQ(frame->id.picture_id - first_picture_id, 3); in TEST_F()
1009 first_picture_id = frame->id.picture_id; in TEST_F()
1026 EXPECT_EQ(frame->id.picture_id - first_picture_id, 18); in TEST_F()
1030 EXPECT_EQ(frame->id.picture_id - first_picture_id, 14); in TEST_F()
1095 EXPECT_EQ(frame->id.picture_id & 0xFFFF, 3); in TEST_F()
1107 EXPECT_EQ(frame->id.picture_id & 0xFFFF, 4); in TEST_F()
/external/webrtc/call/
Drtp_payload_params_unittest.cc51 state2.picture_id = kPictureId; in TEST()
93 state.picture_id = kPictureId; in TEST()
117 EXPECT_EQ(kPictureId + 1, vp9_header.picture_id); in TEST()
141 EXPECT_EQ(kPictureId + 1, vp9_header.picture_id); in TEST()
153 state.picture_id = kInitialPictureId1; in TEST()
169 EXPECT_EQ(kInitialPictureId1 + 1, state.picture_id); in TEST()
175 state.picture_id = kMaxTwoBytePictureId; in TEST()
191 EXPECT_EQ(0, params.state().picture_id); // Wrapped. in TEST()
197 state.picture_id = kInitialPictureId1; in TEST()
226 EXPECT_EQ(kInitialPictureId1 + 2, params.state().picture_id); in TEST()
[all …]
Drtp_payload_params.cc140 state_.picture_id = in RtpPayloadParams()
141 state ? state->picture_id : (random.Rand<int16_t>() & 0x7FFF); in RtpPayloadParams()
195 state_.picture_id = (static_cast<uint16_t>(state_.picture_id) + 1) & 0x7FFF; in SetCodecSpecific()
200 vp8_header.pictureId = state_.picture_id; in SetCodecSpecific()
212 vp9_header.picture_id = state_.picture_id; in SetCodecSpecific()
230 .picture_id = state_.picture_id; in SetCodecSpecific()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_format_video_generic.cc94 uint16_t picture_id = generic_header->picture_id; in BuildHeader() local
96 header_[1] = (picture_id >> 8) & 0x7F; in BuildHeader()
97 header_[2] = picture_id & 0xFF; in BuildHeader()
Dvideo_rtp_depacketizer_vp9.cc41 uint32_t picture_id; in ParsePictureId() local
45 RETURN_FALSE_ON_ERROR(parser->ReadBits(&picture_id, 15)); in ParsePictureId()
48 RETURN_FALSE_ON_ERROR(parser->ReadBits(&picture_id, 7)); in ParsePictureId()
51 vp9->picture_id = picture_id; in ParsePictureId()
110 if (vp9->picture_id == kNoPictureId) in ParseRefIndices()
124 uint32_t scaled_pid = vp9->picture_id; in ParseRefIndices()
Drtp_format_video_generic_unittest.cc79 .picture_id = 37; in TEST()
102 .picture_id = 37; in TEST()
118 .picture_id = 37; in TEST()
133 .picture_id = 0x8137; in TEST()
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()
/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()
/external/webrtc/modules/video_coding/codecs/vp9/include/
Dvp9_globals.h166 picture_id = kNoPictureId; in InitRTPVideoHeaderVP9()
190 int16_t picture_id; // PictureID index, 15 bits; member

12