Lines Matching refs:omap
366 GstMapInfo imap, omap; in gst_pnmdec_handle_frame() local
385 gst_buffer_map (frame->output_buffer, &omap, GST_MAP_WRITE); in gst_pnmdec_handle_frame()
393 omap.data[i * 8] = (imap.data[i] & 0x80) ? 0 : 255; in gst_pnmdec_handle_frame()
394 omap.data[i * 8 + 1] = (imap.data[i] & 0x40) ? 0 : 255; in gst_pnmdec_handle_frame()
395 omap.data[i * 8 + 2] = (imap.data[i] & 0x20) ? 0 : 255; in gst_pnmdec_handle_frame()
396 omap.data[i * 8 + 3] = (imap.data[i] & 0x10) ? 0 : 255; in gst_pnmdec_handle_frame()
397 omap.data[i * 8 + 4] = (imap.data[i] & 0x08) ? 0 : 255; in gst_pnmdec_handle_frame()
398 omap.data[i * 8 + 5] = (imap.data[i] & 0x04) ? 0 : 255; in gst_pnmdec_handle_frame()
399 omap.data[i * 8 + 6] = (imap.data[i] & 0x02) ? 0 : 255; in gst_pnmdec_handle_frame()
400 omap.data[i * 8 + 7] = (imap.data[i] & 0x01) ? 0 : 255; in gst_pnmdec_handle_frame()
418 memcpy (omap.data + i * o_rowstride, imap.data + i * i_rowstride, in gst_pnmdec_handle_frame()
422 memcpy (omap.data, imap.data, s->size); in gst_pnmdec_handle_frame()
430 guint8 *data = omap.data; in gst_pnmdec_handle_frame()
451 if (omap.data[i] <= max) { in gst_pnmdec_handle_frame()
452 omap.data[i] = 255 * omap.data[i] / max; in gst_pnmdec_handle_frame()
456 omap.data[i] = 255; in gst_pnmdec_handle_frame()
467 gst_buffer_unmap (frame->output_buffer, &omap); in gst_pnmdec_handle_frame()