Lines Matching defs:frame_num
201 static ParseStatus StoreFrame(int frame_num, uint32_t min_size,
230 frame->frame_num_ = frame_num;
260 frame->frame_num_ = frame_num;
349 const int frame_num = 1; // All fragments belong to the 1st (and only) frame.
365 status = StoreFrame(frame_num, frgm_payload_size, mem, frame);
768 // Find the first 'frame_num' frame. There may be multiple such frames in a
770 static const Frame* GetFrame(const WebPDemuxer* const dmux, int frame_num) {
773 if (frame_num == f->frame_num_) break;
831 iter->frame_num = first_frame->frame_num_;
850 static int SetFrame(int frame_num, WebPIterator* const iter) {
853 if (dmux == NULL || frame_num < 0) return 0;
854 if (frame_num > dmux->num_frames_) return 0;
855 if (frame_num == 0) frame_num = dmux->num_frames_;
857 frame = GetFrame(dmux, frame_num);
873 return SetFrame(iter->frame_num + 1, iter);
878 if (iter->frame_num <= 1) return 0;
879 return SetFrame(iter->frame_num - 1, iter);
885 const Frame* const frame = GetFrame(dmux, iter->frame_num);