Rename struct image_list to image_list_t.

This commit is contained in:
Ari Koivula 2015-03-04 16:13:57 +02:00
parent 7bafd34cfa
commit db42176a64
3 changed files with 15 additions and 15 deletions

View file

@ -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];

View file

@ -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);

View file

@ -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 };