00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00036 #include <stdint.h>
00037 #include <stdlib.h>
00038 #include "lcm_coretypes.h"
00039
00040 #ifndef _lcmtypes_image_t_h
00041 #define _lcmtypes_image_t_h
00042
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046
00047 typedef struct _lcmtypes_image_t lcmtypes_image_t;
00048 struct _lcmtypes_image_t
00049 {
00050 int64_t utime;
00051 int16_t width;
00052 int16_t height;
00053 int16_t stride;
00054 int32_t pixelformat;
00055 int32_t size;
00056 uint8_t *image;
00057 };
00058
00059 lcmtypes_image_t *lcmtypes_image_t_copy(const lcmtypes_image_t *p);
00060 void lcmtypes_image_t_destroy(lcmtypes_image_t *p);
00061
00062 int lcmtypes_image_t_encode(void *buf, int offset, int maxlen, const lcmtypes_image_t *p);
00063 int lcmtypes_image_t_decode(const void *buf, int offset, int maxlen, lcmtypes_image_t *p);
00064 int lcmtypes_image_t_decode_cleanup(lcmtypes_image_t *p);
00065 int lcmtypes_image_t_encoded_size(const lcmtypes_image_t *p);
00066
00067
00068 int64_t __lcmtypes_image_t_get_hash(void);
00069 int64_t __lcmtypes_image_t_hash_recursive(const __lcm_hash_ptr *p);
00070 int __lcmtypes_image_t_encode_array(void *buf, int offset, int maxlen, const lcmtypes_image_t *p, int elements);
00071 int __lcmtypes_image_t_decode_array(const void *buf, int offset, int maxlen, lcmtypes_image_t *p, int elements);
00072 int __lcmtypes_image_t_decode_array_cleanup(lcmtypes_image_t *p, int elements);
00073 int __lcmtypes_image_t_encoded_array_size(const lcmtypes_image_t *p, int elements);
00074 int __lcmtypes_image_t_clone_array(const lcmtypes_image_t *p, lcmtypes_image_t *q, int elements);
00075
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079
00080 #endif