Title / Description
Code template<typename pixel_t> size_t BilEncoder<pixel_t>::getdata(uint8_t *buffer, size_t size) { size_t offset = 0; LOGGER_DEBUG( "Encodage BIL : height " <<image->height<< " image->linesize" <<image->linesize); for(; line < image->height && offset + image->linesize <= size; line++) { image->getline((typename pixel_t::data_t*)(buffer + offset), line); offset += image->linesize*sizeof(typename pixel_t::data_t); } return offset; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code