comparison rectangle.h @ 11279:08fdccf61a03 libavcodec

Fix doxy and assert().
author michael
date Wed, 24 Feb 2010 22:05:51 +0000
parents bd5ea8e6f1d3
children fea25a6f874e
comparison
equal deleted inserted replaced
11278:bd5ea8e6f1d3 11279:08fdccf61a03
35 35
36 /** 36 /**
37 * fill a rectangle. 37 * fill a rectangle.
38 * @param h height of the rectangle, should be a constant 38 * @param h height of the rectangle, should be a constant
39 * @param w width of the rectangle, should be a constant 39 * @param w width of the rectangle, should be a constant
40 * @param size the size of val (1 or 4), should be a constant 40 * @param size the size of val (1, 2 or 4), should be a constant
41 */ 41 */
42 static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){ 42 static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){
43 uint8_t *p= (uint8_t*)vp; 43 uint8_t *p= (uint8_t*)vp;
44 assert(size==1 || size==4); 44 assert(size==1 || size==2 || size==4);
45 assert(w<=4); 45 assert(w<=4);
46 46
47 w *= size; 47 w *= size;
48 stride *= size; 48 stride *= size;
49 49