Lines Matching refs:next

100 static RK_S32 mpp_combine_frame(SplitContext_t *sc, RK_S32 next, const RK_U8 **buf, RK_S32 *buf_siz…  in mpp_combine_frame()  argument
104 sc->overread, sc->state, next, sc->index, sc->overread_index); in mpp_combine_frame()
114 if (!*buf_size && next == END_NOT_FOUND) { in mpp_combine_frame()
115 next = 0; in mpp_combine_frame()
121 if (next == END_NOT_FOUND) { in mpp_combine_frame()
142 sc->overread_index = sc->index + next; in mpp_combine_frame()
146 RK_U32 min_size = next + sc->index + MPP_INPUT_BUFFER_PADDING_SIZE; in mpp_combine_frame()
159 if (next > -MPP_INPUT_BUFFER_PADDING_SIZE) in mpp_combine_frame()
161 next + MPP_INPUT_BUFFER_PADDING_SIZE); in mpp_combine_frame()
167 for (; next < 0; next++) { in mpp_combine_frame()
168 sc->state = (sc->state << 8) | sc->buffer[sc->last_index + next]; in mpp_combine_frame()
169 sc->state64 = (sc->state64 << 8) | sc->buffer[sc->last_index + next]; in mpp_combine_frame()
175 sc->overread, sc->state, next, sc->index, sc->overread_index); in mpp_combine_frame()
227 RK_S32 next, i; in h265d_split_frame() local
257 next = hevc_find_frame_end(s, buf, buf_size); in h265d_split_frame()
258 if (s->eos && buf_size && next == END_NOT_FOUND) { in h265d_split_frame()
259 next = buf_size; in h265d_split_frame()
262 if (mpp_combine_frame(s, next, &buf, &buf_size) < 0) { in h265d_split_frame()
272 if (next < 0) in h265d_split_frame()
273 next = 0; in h265d_split_frame()
280 s->next_frame_offset = s->cur_offset + next; in h265d_split_frame()
284 s->cur_offset += next; in h265d_split_frame()
285 return next; in h265d_split_frame()