Search found 42 matches

by Twada
Wed Jan 31, 2024 6:57 pm
Forum: Programming Discussion
Topic: HDR rendering on Dreamcast
Replies: 15
Views: 2802

Re: HDR rendering on Dreamcast

If we were to twiddle the reduced buffer, it would work much faster. In that case, the tile matrix would have to be uniquely aligned (e.g. horizontally) and the KOS PVR would have to be hijacked, so it might not be suitable as a sample. If that is OK with you, please give me some time. If you have ...
by Twada
Sun Jan 28, 2024 9:26 pm
Forum: Programming Discussion
Topic: HDR rendering on Dreamcast
Replies: 15
Views: 2802

Re: HDR rendering on Dreamcast

Yes, I've done 60 FPS bloom on the DC , and twiddling the bloom texture was worth it. I was using a custom PVR driver that supported render-to-texture on any texture size, and wasn't limited to framebuffer size like KOS's driver, which saved a lot of fillrate. Awesome! Your post process is incredib...
by Twada
Sun Jan 14, 2024 4:29 am
Forum: Programming Discussion
Topic: HDR rendering on Dreamcast
Replies: 15
Views: 2802

Re: HDR rendering on Dreamcast

I am glad you are interested in HDR! The frame buffer on the Dreamcast is 16-bit, so reusing the frame buffer would result in a noticeable dither pattern. So we use a roundabout way of preparing the reduced scene and the final scene separately. This is similar to GpuGems real-time glow. As a by-prod...
by Twada
Sun Oct 29, 2023 4:43 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

I be looking at your update very soon to see if we can solve the it cant play more then 18 mins on hardware. It's playing right thru on demul dcemulator another one of those times.. after 18 mins it gets super slow for a while then freezes crashes.. Problem was time to make a change and test 18 min...
by Twada
Wed Oct 04, 2023 2:40 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

With my update before been able to watch 1 hour with no sync problems audio with the right encoding. It is amazing! This time, I was worried about whether the frame rate was correct because I matched it to the audio time. I can't wait to see your update. Your 64bitSQ seems to be faster than KOS's S...
by Twada
Sat Sep 30, 2023 10:55 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Fixed to synchronize with audio time.
Once the video lags, it should catch up with the audio.
However, videos without audio are not eligible.
mpeg1dc09.rar
(3.38 MiB) Downloaded 44 times
I decided to unify my handle name to Twada. Because it's complicated...
by Twada
Fri Sep 29, 2023 2:48 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Ok i did the profiling to see the bottlenecks whats taking the most time.. when it first starts output.png When it plays longer output.png As it plays longer you can see it gets more heavy seems strange but i do see it we have to look at this. I see, this is how profiling can be used! It is very ea...
by Twada
Wed Sep 27, 2023 6:36 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Thank you for your detailed verification. The 64-byte original store queue is also cool. Please merge anytime. I realized something important thanks to your sample video. There seems to be a bug in video decoding. U and V are flickering in YUV. This is especially evident in the Universal logo on the...
by Twada
Fri Sep 22, 2023 6:04 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Implemented a ringbuffer version #include <kos.h> #define PL_MPEG_IMPLEMENTATION #include "pl_mpeg.h" #include "mpeg1.h" static plm_t *plm; /* textures */ static pvr_ptr_t texture; static int width, height; // Output texture width and height initial values // You can choose from...
by Twada
Fri Sep 22, 2023 5:06 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Ok this played my test video and stayed on sync correct me where i went wrong right now it's the first time it played the matrix trailer and did not slow down #include <kos.h> #define PL_MPEG_IMPLEMENTATION #include "pl_mpeg.h" #include "mpeg1.h" static plm_t *plm; /* textures *...
by Twada
Thu Sep 21, 2023 5:04 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Ok i worked on tighter frame control and resetting the sound call back and adding a buffer to keep it more in sync on longer videos Here are the changes look it over for me .. #include <kos.h> #define PL_MPEG_IMPLEMENTATION #include "pl_mpeg.h" #include "mpeg1.h" static plm_t *p...
by Twada
Thu Sep 21, 2023 1:13 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Do you think with this it would be possible to add function for pause/resume a movie ? .. I think it's possible. mpeg1.c is a short code just for playback, but pl_mpeg.h is optimized, so it should be possible if you create a suitable wrapper. Until recently, I hadn't put pvr_wait_ready in the right...
by Twada
Tue Sep 19, 2023 10:56 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

here you go :) https://github.com/ianmicheal/MPEG1-Decode-library-for-Dreamcast-Ver.0.8-2023-09-19-Tashi/tree/main Thank you, Ian, for uploading it to GitHub! Thank you for all the hard work you put into fixing and uploading the Readme. I would be happy if many people could use it as they like. Giv...
by Twada
Tue Sep 19, 2023 5:01 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Ian Robinson wrote: Tue Sep 19, 2023 10:48 am Can i put this up on my github course all credit to you :)
Thank you! Please.
I have fixed line 164 of mpeg1.c, so please download it again. The file name was not passed correctly.
by Twada
Tue Sep 19, 2023 7:29 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

It has finally been completed! Thanks to Ian and BBHood! You can play 320x240 Mpeg1 files with sound. mpeg1dc.rar Edit:Fix line 164 in mpeg1.c. Please set the resolution to 320x240 (4:3) or 368x208 (16:9). Please use monaural sound of 80kbits or less. Due to copyright reasons, the sample video has b...
by Twada
Thu Sep 14, 2023 8:40 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

I wanted to reduce the storage space, so I deleted the sample videos.
This is a bundled version. I think this will work.
pl_mpeg7_1.rar
(7.13 MiB) Downloaded 52 times
I'm going to learn about GitHub. It certainly seems more convenient to use GitHub if you want to ask for help from the community.
by Twada
Wed Sep 13, 2023 2:38 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Decoding is slow for ogg and mp3.. Even in kos ports.. Only thing i do to make it work is very low bit-rate 64bit and mono..Sometimes 32 Also 22khz sample rate speeds it up.. Not going to be doing 44khz stereo that's for sure while decoding video and audio with the current kos streamer. This is a v...
by Twada
Tue Sep 05, 2023 7:52 am
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

Thank you for listening to my unreasonable request.
I'm not familiar with stream-related code, so this is a very valuable hint!

Again, we need to speed up audio decoding. I'll try again after I cool my head.
by Twada
Sun Sep 03, 2023 10:37 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

ah. I didn't tell. The Y data is 16x16, 256 bytes, and must follow the macroblock format. In other words, it must be in the shape of four 8x8 blocks in a row. The orientation is horizontal. I created a variable k and rewrote it as follows. for (k = 0; k < 4; ++k) { for (j = 0; j < 8; ++j) { for (i =...
by Twada
Sat Sep 02, 2023 11:37 pm
Forum: Programming Discussion
Topic: pl_mpegDC ported running but community help needed
Replies: 71
Views: 5179

Re: pl_mpegDC ported running but community help needed

First off, awesome stuff!! I gonna look into maybe creating an example that shows utilizing the TA to convert YUV420 => YUV422 once I fully get the grasp of it. After playing with your code a bit, I rewrote some video related functions in your main.c file. I cut some stuff that doesn't seem to make...