Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6d5e378 in mainline for uspace/lib/softrend/pixconv.h


Ignore:
Timestamp:
2012-08-16T19:27:44Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
4f351432, 7d27f422
Parents:
c9d011e4
Message:

cherrypick GUI implementation (originally by Petr Koupy), with several major changes

  • for character-oriented devices a new output server and output protocol was created based on the original fb server
  • DDF visualizer drivers are pixel-oriented only
  • console and compositor can coexist in the same build
  • terminal widget is self-sufficient, no strange console nesting is needed
File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/softrend/pixconv.h

    rc9d011e4 r6d5e378  
    11/*
    22 * Copyright (c) 2011 Martin Decky
     3 * Copyright (c) 2011 Petr Koupy
    34 * All rights reserved.
    45 *
     
    2728 */
    2829
    29 /** @addtogroup imgmap
     30/** @addtogroup softrend
    3031 * @{
    3132 */
     
    3435 */
    3536
    36 #ifndef IMGMAP_IMGMAP_H_
    37 #define IMGMAP_IMGMAP_H_
     37#ifndef SOFTREND_PIXCONV_H_
     38#define SOFTREND_PIXCONV_H_
    3839
    39 #include <sys/types.h>
    40 #include <abi/fb/visuals.h>
    4140#include <bool.h>
    42 #include "fb.h"
    43 
    44 typedef enum {
    45         IMGMAP_FLAG_NONE = 0,
    46         IMGMAP_FLAG_SHARED = 1
    47 } imgmap_flags_t;
     41#include <io/pixel.h>
    4842
    4943/** Function to render a pixel. */
     
    5650typedef pixel_t (*visual2pixel_t)(void *);
    5751
     52extern void pixel2argb_8888(void *, pixel_t);
     53extern void pixel2abgr_8888(void *, pixel_t);
     54extern void pixel2rgba_8888(void *, pixel_t);
     55extern void pixel2bgra_8888(void *, pixel_t);
    5856extern void pixel2rgb_0888(void *, pixel_t);
    5957extern void pixel2bgr_0888(void *, pixel_t);
     
    6967extern void pixel2gray_8(void *, pixel_t);
    7068
     69extern void visual_mask_8888(void *, bool);
    7170extern void visual_mask_0888(void *, bool);
    7271extern void visual_mask_8880(void *, bool);
     
    7776extern void visual_mask_8(void *, bool);
    7877
     78extern pixel_t argb_8888_2pixel(void *);
     79extern pixel_t abgr_8888_2pixel(void *);
     80extern pixel_t rgba_8888_2pixel(void *);
     81extern pixel_t bgra_8888_2pixel(void *);
    7982extern pixel_t rgb_0888_2pixel(void *);
    8083extern pixel_t bgr_0888_2pixel(void *);
     
    9093extern pixel_t gray_8_2pixel(void *);
    9194
    92 extern imgmap_t *imgmap_create(sysarg_t, sysarg_t, visual_t, imgmap_flags_t);
    93 extern void imgmap_put_pixel(imgmap_t *, sysarg_t, sysarg_t, pixel_t);
    94 extern pixel_t imgmap_get_pixel(imgmap_t *, sysarg_t, sysarg_t);
    95 
    96 extern imgmap_t *imgmap_decode_tga(void *, size_t, imgmap_flags_t);
    97 extern void imgmap_get_resolution(imgmap_t *, sysarg_t *, sysarg_t *);
    98 
    9995#endif
    10096
Note: See TracChangeset for help on using the changeset viewer.