Lines Matching refs:wpi_list
257 int MuxImageCount(const WebPMuxImage* wpi_list, WebPChunkId id) { in MuxImageCount() argument
260 for (current = wpi_list; current != NULL; current = current->next_) { in MuxImageCount()
277 static int SearchImageToGetOrDelete(WebPMuxImage** wpi_list, uint32_t nth, in SearchImageToGetOrDelete() argument
280 assert(wpi_list); in SearchImageToGetOrDelete()
281 *location = wpi_list; in SearchImageToGetOrDelete()
284 nth = MuxImageCount(*wpi_list, WEBP_CHUNK_NIL); in SearchImageToGetOrDelete()
288 while (*wpi_list != NULL) { in SearchImageToGetOrDelete()
289 WebPMuxImage* const cur_wpi = *wpi_list; in SearchImageToGetOrDelete()
292 wpi_list = &cur_wpi->next_; in SearchImageToGetOrDelete()
293 *location = wpi_list; in SearchImageToGetOrDelete()
301 WebPMuxError MuxImagePush(const WebPMuxImage* wpi, WebPMuxImage** wpi_list) { in MuxImagePush() argument
304 while (*wpi_list != NULL) { in MuxImagePush()
305 WebPMuxImage* const cur_wpi = *wpi_list; in MuxImagePush()
307 wpi_list = &cur_wpi->next_; in MuxImagePush()
315 if (*wpi_list != NULL) { in MuxImagePush()
316 (*wpi_list)->next_ = new_wpi; in MuxImagePush()
318 *wpi_list = new_wpi; in MuxImagePush()
333 WebPMuxError MuxImageDeleteNth(WebPMuxImage** wpi_list, uint32_t nth) { in MuxImageDeleteNth() argument
334 assert(wpi_list); in MuxImageDeleteNth()
335 if (!SearchImageToGetOrDelete(wpi_list, nth, &wpi_list)) { in MuxImageDeleteNth()
338 *wpi_list = MuxImageDelete(*wpi_list); in MuxImageDeleteNth()
345 WebPMuxError MuxImageGetNth(const WebPMuxImage** wpi_list, uint32_t nth, in MuxImageGetNth() argument
347 assert(wpi_list); in MuxImageGetNth()
349 if (!SearchImageToGetOrDelete((WebPMuxImage**)wpi_list, nth, in MuxImageGetNth()
350 (WebPMuxImage***)&wpi_list)) { in MuxImageGetNth()
353 *wpi = (WebPMuxImage*)*wpi_list; in MuxImageGetNth()