pdf-tasks
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-tasks] [flyspray] Write new hash helpers for integer values


From: GNU PDF Library
Subject: [pdf-tasks] [flyspray] Write new hash helpers for integer values
Date: Thu, 19 May 2011 00:30:00 +0200

THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Aleksander Morgado (aleksander)
Attached to Project - GNU PDF Library
Summary - Write new hash helpers for integer values
Task Type - Planned Task
Category - Hash Module
Status - NEXT
Assigned To - Operating System - All
Severity - Low
Priority - Low
Reported Version - START
Due in Version - Undecided
Due Date - Undecided
Details - We currently have pdf_hash_get_bool() and pdf_hash_add_bool() to store and retrieve boolean values in the hashes.
We could also have helper methods for other integer methods, like:
 pdf_hash_add_i32()
 pdf_hash_add_u32()
 pdf_hash_get_i32()
 pdf_hash_get_u32()

Note that 32bit-values can be stored directly without needing heap allocations: 
just store the values directly in the pointers (see add_bool() and get_bool() 
as examples).

I would skip u64 and i64 right now, as those may need heap allocations in 32bit 
(they are bigger than a pointer size). And I would also skip smaller types, as 
they can easily be casted to 32bit types.

Once this is done, we can use pdf_hash_get_i32() in the DCT decoder when getting the 
"ColorTransform" parameter value.

More information can be found at the following URL:
http://www.gnupdf.org/flyspray/index.php?do=details&task_id=130

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]