From db42176a64d7d6833f00ba4fc75ebfc0978f6acc Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Wed, 4 Mar 2015 16:13:57 +0200 Subject: [PATCH] Rename struct image_list to image_list_t. --- src/encoderstate.h | 2 +- src/imagelist.c | 14 +++++++------- src/imagelist.h | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/encoderstate.h b/src/encoderstate.h index caefbcd5..19ac73d9 100644 --- a/src/encoderstate.h +++ b/src/encoderstate.h @@ -68,7 +68,7 @@ typedef struct { int8_t QP; //!< \brief Quantization parameter //Current picture available references - image_list *ref; + image_list_t *ref; int8_t ref_list; //int8_t ref_idx_num[2]; diff --git a/src/imagelist.c b/src/imagelist.c index acc3a6d3..fd8a9892 100644 --- a/src/imagelist.c +++ b/src/imagelist.c @@ -37,9 +37,9 @@ * \param size initial array size * \return image_list pointer, NULL on failure */ -image_list * image_list_alloc(int size) +image_list_t * image_list_alloc(int size) { - image_list *list = (image_list *)malloc(sizeof(image_list)); + image_list_t *list = (image_list_t *)malloc(sizeof(image_list_t)); list->size = size; if (size > 0) { list->images = (image_t**)malloc(sizeof(image_t*) * size); @@ -57,7 +57,7 @@ image_list * image_list_alloc(int size) * \param size new array size * \return 1 on success, 0 on failure */ -int image_list_resize(image_list *list, unsigned size) +int image_list_resize(image_list_t *list, unsigned size) { unsigned int i; image_t** old_images = NULL; @@ -99,7 +99,7 @@ int image_list_resize(image_list *list, unsigned size) * \param list image_list pointer * \return 1 on success, 0 on failure */ -int image_list_destroy(image_list *list) +int image_list_destroy(image_list_t *list) { unsigned int i; if (list->used_size > 0) { @@ -125,7 +125,7 @@ int image_list_destroy(image_list *list) * \param picture_list list to use * \return 1 on success */ -int image_list_add(image_list *list, image_t* im, cu_array_t* cua) +int image_list_add(image_list_t *list, image_t* im, cu_array_t* cua) { int i = 0; if (ATOMIC_INC(&(im->refcount)) == 1) { @@ -162,7 +162,7 @@ int image_list_add(image_list *list, image_t* im, cu_array_t* cua) * \param n index to remove * \return 1 on success */ -int image_list_rem(image_list * const list, const unsigned n) +int image_list_rem(image_list_t * const list, const unsigned n) { // Must be within list boundaries if (n >= list->used_size) @@ -202,7 +202,7 @@ int image_list_rem(image_list * const list, const unsigned n) return 1; } -int image_list_copy_contents(image_list *target, image_list *source) { +int image_list_copy_contents(image_list_t *target, image_list_t *source) { int i; while (target->used_size > 0) { image_list_rem(target, 0); diff --git a/src/imagelist.h b/src/imagelist.h index 869d1084..05af365d 100644 --- a/src/imagelist.h +++ b/src/imagelist.h @@ -37,15 +37,15 @@ typedef struct cu_array_t* *cu_arrays; uint32_t size; //!< \brief Array size. uint32_t used_size; -} image_list; +} image_list_t; -image_list * image_list_alloc(int size); -int image_list_resize(image_list *list, unsigned size); -int image_list_destroy(image_list *list); -int image_list_add(image_list *list, image_t *im, cu_array_t* cua); -int image_list_rem(image_list *list, unsigned n); +image_list_t * image_list_alloc(int size); +int image_list_resize(image_list_t *list, unsigned size); +int image_list_destroy(image_list_t *list); +int image_list_add(image_list_t *list, image_t *im, cu_array_t* cua); +int image_list_rem(image_list_t *list, unsigned n); -int image_list_copy_contents(image_list *target, image_list *source); +int image_list_copy_contents(image_list_t *target, image_list_t *source); enum { REF_PIC_LIST_0 = 0, REF_PIC_LIST_1 = 1, REF_PIC_LIST_X = 100 };