Lines Matching refs:encoded_frame
312 static void FrameRelease(EncodedFrame* const encoded_frame) { in FrameRelease() argument
313 if (encoded_frame != NULL) { in FrameRelease()
314 WebPDataClear(&encoded_frame->sub_frame_.bitstream); in FrameRelease()
315 WebPDataClear(&encoded_frame->key_frame_.bitstream); in FrameRelease()
316 memset(encoded_frame, 0, sizeof(*encoded_frame)); in FrameRelease()
1013 EncodedFrame* const encoded_frame) { in PickBestCandidate() argument
1031 ? &encoded_frame->key_frame_ in PickBestCandidate()
1032 : &encoded_frame->sub_frame_; in PickBestCandidate()
1061 EncodedFrame* const encoded_frame, in SetFrame() argument
1172 PickBestCandidate(enc, candidates, is_key_frame, encoded_frame); in SetFrame()
1191 static int64_t KeyFramePenalty(const EncodedFrame* const encoded_frame) { in KeyFramePenalty() argument
1192 return ((int64_t)encoded_frame->key_frame_.bitstream.size - in KeyFramePenalty()
1193 encoded_frame->sub_frame_.bitstream.size); in KeyFramePenalty()
1202 EncodedFrame* const encoded_frame = GetFrame(enc, position); in CacheFrame() local
1207 error_code = SetFrame(enc, config, 1, encoded_frame, &frame_skipped); in CacheFrame()
1211 encoded_frame->is_key_frame_ = 1; in CacheFrame()
1219 error_code = SetFrame(enc, config, 0, encoded_frame, &frame_skipped); in CacheFrame()
1222 encoded_frame->is_key_frame_ = 0; in CacheFrame()
1230 error_code = SetFrame(enc, config, 0, encoded_frame, &frame_skipped); in CacheFrame()
1237 error_code = SetFrame(enc, config, 1, encoded_frame, &frame_skipped); in CacheFrame()
1243 curr_delta = KeyFramePenalty(encoded_frame); in CacheFrame()
1250 encoded_frame->is_key_frame_ = 1; in CacheFrame()
1256 encoded_frame->is_key_frame_ = 0; in CacheFrame()
1269 encoded_frame->is_key_frame_ ? prev_rect_key : prev_rect_sub; in CacheFrame()
1284 FrameRelease(encoded_frame); in CacheFrame()