Graphics

VAAPI and mplayer

Hi, to resume:
...
Lastly, mplayer and ffmpeg itself appears to work under AOS4. The only problem is the video output. The video output in mplayer itself is on X11.
For testing, a simple output was made to simulate operation under AOS4. What is missing is for this output to be rewritten/re-written in order to lastdznie confirm the operation.
Here is my request, is there any person who could help with this ?

Forums: 

P96PIP window background (RGBFB_YUV422CGX)

Hi, how can I set the bg color to black on a P96PIP window, as I get pinky or green background when opening.

Uisng P96PIP_SourceFormat, RGBFB_YUV422CGX

Tried with " RectFillColor(rp, 0, 0, 320, 200, fillcolor); //Y0-V0-Y1-U0"

being fillcolor default 0x00800080 and can be changed via FILLCOLOR=FC argument.

thanks ind advance

Forums: 

Problem using color fonts

Hi,

I'm trying to use a color font but I can't get the font colors right. I've set my window's rastport property RPTAG_RemapColorFonts to TRUE with SetRPAttrs() but it doesn't seem to do the trick. (The window is on Workbench screen.)

I open the font with OpenDiskFont() and assign it to the window's rastport with SetFont().

Single color fonts print fine, as you can see from the screenshot. I've used rastport property RPTAG_APenColor to set the single color font color.

Forums: 

Convert code from using Picasso96 to graphics library

These days I am working on a project which uses the Anti-Gravity Geometry library. There is an old version available on os4depot and I wanted to make an updated one with the latest source code from https://sourceforge.net/projects/agg.

There is a makefile for AmigaOS 4, created by Steven Solie, who did the original port. This makefile uses clib2, but I managed to compile the library with newlib without any issues.

Forums: 

Datatypes functions crash

I need to check if an image is supported by the installed datatypes, before I use it in GUI. So I thought to use the NewDTObject, and I wrote the checkImageDatatype() method to test it. Below you can see the code.

Although that this works great on AmigaOS 3 68k code, the AmigaOS 4 PPC version crashes the system at the NewDTObject() line.

Forums: 

Creating a AmigaOS4 SDL2 based Screen Blanker ?

Hi all

I compiled this SDL2 project on AmigaOS4 which I will upload to OS4Depot soon.

https://github.com/AlynxZhou/flipclock (A flip clock supported by SDL2.)

Now I am trying to create a AmigaOS4 screenblanker based on this.

I found some screen blanker examples OS4Depot.net.

Is there a tutorial about writing a screen blanker based on SDL ?

How to combine OS4 blanker source code with a SDL project ?

Thanks

Forums: 

Copy bitmap with mask

This is a happy camper! I finally succeeded in copying a bitmap to another bitmap on a 24-bit screen while protecting parts of the destination bitmap with a mask. This is something I needed for my game Blackfang, which I am currently working on. It had brought progress on the game to a halt. I couldn't find a way to write to a single non-interleaved bitplane. I didn't ask because I didn't think anybody had tried it for a few decades. I finally found a way to create the mask by "brute force". Then I used BltMaskBitMapRastPort to do the copy.

Forums: 

New OS4 WritePixelColor, ReadPixelColor, RectFillColor on 8bit screens

Hi Amiga coders!
I'm further cleaning all pre os4 functions from FlashMandelOS4 program and I'd like to subst the WritePixel, ReadPixel, RectFill with new OS4 specific ones like WritePixelColor, ReadPixelColor, RectFillColor.
In this way I should gain some overhead due the SetAPen calls discard.

I noticed, at least on 8bit screens, every time I use these new functions I got a system crash.
So maybe these new functions aren't compatible with 8bit screens (!?) ..In autodocs there aren't warnings about this..

Forums: 

Pages

Subscribe to RSS - Graphics