Opened 12 years ago

Closed 12 years ago

#9507 closed Patch - Bug Fix (Fixed)

[patch] OpenGL bicubic filter (legacy)

Reported by: Jiri Fojtasek <jiri.fojtasek@…> Owned by: Janne Grunau
Priority: trivial Milestone: 0.25
Component: MythTV - Video Playback Version: Master Head
Severity: low Keywords:
Cc: Ticket locked: no


This patch fixing:

  • Adding support for rectangual textures when using openglbicubic resizer.

Optimal will be chage also:
"MAD coord.xy, fragment.texcoord[0], {%6, %7}, {0.5, 0.5};\n"
"ADD coord.xy, fragment.texcoord[0], {0.5, 0.5};\n"
when using rectangual texture but diference betwen those two instructions are negligible.

Changes was tested with Radeon X1300 opensource drivers (gallium and classsic) with legacy profile, since high profile is not finished yet.


Attachments (1)

101-bicubic_rect_fix.patch (1.7 KB) - added by Jiri Fojtasek <jiri.fojtasek@…> 12 years ago.
the patch

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by Jiri Fojtasek <jiri.fojtasek@…>

Attachment: 101-bicubic_rect_fix.patch added

the patch

comment:1 Changed 12 years ago by markk

Milestone: unknown0.25
Resolution: Fixed
Status: newclosed


Thanks for the patch. I've applied the offset fix in a080886c2a97d7da942b. The use of rectangular textures does not work here (makes a complete mess of the video) and indeed should not work - the speedup used by that fragment program is very much dependent on bilinear sampling in conjunction with 2d textures (texture coords in the 0..1 range rather than 0...720 etc)

regards, Mark

Note: See TracTickets for help on using tickets.