Clean up doxygen errors in image handlers.

This commit is contained in:
Vincent Sanders 2015-06-19 09:07:31 +01:00
parent fcadb1f6f8
commit 010306e1ad
3 changed files with 11 additions and 8 deletions

View File

@ -34,6 +34,7 @@
#include "image/bitmap.h"
#include "image/bmp.h"
/** bmp context. */
typedef struct nsbmp_content {
struct content base;
@ -45,10 +46,10 @@ typedef struct nsbmp_content {
/**
* Callback for libnsbmp; forwards the call to bitmap_create()
*
* \param width width of image in pixels
* \param height width of image in pixels
* \param state a flag word indicating the initial state
* \return an opaque struct bitmap, or NULL on memory exhaustion
* \param width width of image in pixels
* \param height width of image in pixels
* \param bmp_state A flag word indicating the initial state
* \return An opaque struct bitmap, or NULL on memory exhaustion
*/
static void *nsbmp_bitmap_create(int width, int height, unsigned int bmp_state)
{

View File

@ -305,7 +305,8 @@ static bool nsgif_convert(struct content *c)
/**
* Updates the GIF bitmap to display the current frame
*
* \param c the content to update
* \param gif The gif context to update.
* \return GIF_OK on success else apropriate error code.
*/
static gif_result nsgif_get_frame(nsgif_content *gif)
{
@ -317,10 +318,11 @@ static gif_result nsgif_get_frame(nsgif_content *gif)
current_frame = 0;
}
if (current_frame < gif->gif->decoded_frame)
if (current_frame < gif->gif->decoded_frame) {
previous_frame = 0;
else
} else {
previous_frame = gif->gif->decoded_frame + 1;
}
for (frame = previous_frame; frame <= current_frame; frame++) {
res = gif_decode_frame(gif->gif, frame);

View File

@ -45,7 +45,7 @@ typedef struct nsico_content {
*
* \param width width of image in pixels
* \param height width of image in pixels
* \param state a flag word indicating the initial state
* \param bmp_state A flag word indicating the initial state
* \return an opaque struct bitmap, or NULL on memory exhaustion
*/
static void *nsico_bitmap_create(int width, int height, unsigned int bmp_state)