From: Iota, M. <mad...@ph...> - 2008-10-13 13:50:17
|
Hi all, I would like to have two functions to read and write image data per frame/field/component. The prototype of these functions would be: pT_status p_read_comp_16 (const char *filename, pT_header *header, int frame, int field, int comp, unsigned short *c_fld, int read_mode, int width, int fld_height, int stride); pT_status p_write_comp_16(const char *filename, pT_header *header, int frame, int field, int comp, const unsigned short *c_fld, int write_mode, int width, int fld_height, int stride); where: filename file to read/write header pointer to pT_header struct frame frame number field 0: frame, 1/2: field access. comp the component id. i.e. the index in the header structure. c_fld pointer to field/frame buffer. read_mode mem_data_fmt write_mode mem_data_fmt width width of frame in memory. fld_height height of frame in memory. stride stride of frame in memory. The idea is to combine the reading/writing of a frame and of a field in one method. According to the given value of field, p_read_comp_16() method will call the p_read_frame_comp_16() and p_read_field_comp_16(). The same holds for p_write_comp_16() method. Do you agree with adding them to cpfspd_rwi.c ? Best regards, Madalina TASS Software Professionals Ir. Madalina Iota PDEng T+31 40 2503200 | F +31 40 2503201 W www.tass.nl<http://www.tass.nl> | M mad...@ta...<mailto:mad...@ta...> Temporary address: Philips Research Location HTC Phone: +31 40 274 1604 E-mail: mad...@ph...<mailto:mad...@ph...> ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. |