Lines Matching full:qfbuff
76 qframebuffer_init( QFrameBuffer* qfbuff,
86 if (!qfbuff || width < 0 || height < 0)
101 memset( qfbuff, 0, sizeof(*qfbuff) );
103 qfbuff->extra = calloc( 1, sizeof(QFrameBufferExtra) );
104 if (qfbuff->extra == NULL)
107 qfbuff->pixels = calloc( pitch, height );
108 if (qfbuff->pixels == NULL && (height > 0 && pitch > 0)) {
109 free( qfbuff->extra );
113 qfbuff->width = width;
114 qfbuff->height = height;
115 qfbuff->pitch = pitch;
116 qfbuff->format = format;
117 qfbuff->bits_per_pixel = bits_per_pixel;
118 qfbuff->bytes_per_pixel = bytes_per_pixel;
120 qframebuffer_set_dpi( qfbuff, DEFAULT_FRAMEBUFFER_DPI, DEFAULT_FRAMEBUFFER_DPI );
126 qframebuffer_set_dpi( QFrameBuffer* qfbuff,
135 qfbuff->phys_width_mm = (int)(0.5 + 25.4 * qfbuff->width / x_dpi);
136 qfbuff->phys_height_mm = (int)(0.5 + 25.4 * qfbuff->height / y_dpi);
142 qframebuffer_set_mm( QFrameBuffer* qfbuff,
146 qfbuff->phys_width_mm = width_mm;
147 qfbuff->phys_height_mm = height_mm;
151 qframebuffer_update( QFrameBuffer* qfbuff, int x, int y, int w, int h )
153 QFrameBufferExtra* extra = qfbuff->extra;
161 qframebuffer_add_client( QFrameBuffer* qfbuff,
168 QFrameBufferExtra* extra = qfbuff->extra;
178 qframebuffer_set_producer( QFrameBuffer* qfbuff,
184 QFrameBufferExtra* extra = qfbuff->extra;
194 qframebuffer_rotate( QFrameBuffer* qfbuff, int rotation )
196 QFrameBufferExtra* extra = qfbuff->extra;
198 if ((rotation ^ qfbuff->rotation) & 1) {
200 int temp = qfbuff->width;
201 qfbuff->width = qfbuff->height;
202 qfbuff->height = temp;
203 qfbuff->pitch = _get_pitch( qfbuff->width, qfbuff->format );
205 temp = qfbuff->phys_width_mm;
206 qfbuff->phys_width_mm = qfbuff->phys_height_mm;
207 qfbuff->phys_height_mm = temp;
209 qfbuff->rotation = rotation;
216 qframebuffer_poll( QFrameBuffer* qfbuff )
218 QFrameBufferExtra* extra = qfbuff->extra;
226 qframebuffer_done( QFrameBuffer* qfbuff )
228 QFrameBufferExtra* extra = qfbuff->extra;
238 free( qfbuff->pixels );
239 free( qfbuff->extra );
240 memset( qfbuff, 0, sizeof(*qfbuff) );
251 qframebuffer_fifo_add( QFrameBuffer* qfbuff )
256 framebuffer_fifo[ framebuffer_fifo_count++ ] = qfbuff;