Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th June 2021, 10:04   #101  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 212
A Mirror operation is trivial to achieve with shaders. The difficulty with rotate is caused by the necessary resizing of the frame (assuming W!=H).
I would expect a rotate feature to be available in a video players, but there might be bugs/limitations. You can ask your question in the mpc-be thread.
The main use case for rotate is to correct for videos captured with a tilted camera/phone (ex: mp4 rotation flag).
butterw2 is offline   Reply With Quote
Old 21st October 2021, 23:52   #102  |  Link
Acba
Registered User
 
Join Date: Oct 2021
Posts: 2
Is it possible to adapt a shader to act just in half side of screen?

I would like some existing mpc-hc shaders, like "luma sharpen" or "lcd angle correction", to have effect just in the left half of a video, when the video is displayed in full screen.

Is there a way to add some lines to the beginning of the shader code so that it only acts in the left/right/top/bottom half of my screen?
Acba is offline   Reply With Quote
Old 22nd October 2021, 04:02   #103  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,604
Quote:
Originally Posted by Acba View Post
I would like some existing mpc-hc shaders, like "luma sharpen" or "lcd angle correction", to have effect just in the left half of a video, when the video is displayed in full screen.
Here's an example.
Code:
float4 main(float2 tex : TEXCOORD0) : COLOR
{
	if (tex.x > 0.5) return tex2D(s0, tex);
	...
v0lt is offline   Reply With Quote
Old 4th November 2021, 23:01   #104  |  Link
Acba
Registered User
 
Join Date: Oct 2021
Posts: 2
Quote:
Originally Posted by v0lt View Post
Here's an example.
Code:
float4 main(float2 tex : TEXCOORD0) : COLOR
{
	if (tex.x > 0.5) return tex2D(s0, tex);
	...
It worked!
Now I finally have "left-side-only" shaders.
Thank you very much!
Acba is offline   Reply With Quote
Reply

Tags
hlsl, mpc-be, mpc-hc, mpv, pixel shaders

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.