Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dvdplayer: drop autocrop #6154

Merged
merged 1 commit into from Jan 14, 2015
Merged

dvdplayer: drop autocrop #6154

merged 1 commit into from Jan 14, 2015

Conversation

FernetMenta
Copy link
Contributor

  • autocrop is a rather outdated and useless feature. It analyzes a frame by comparing every pixel to a black level to estimate whether this is a black bar or not.
  • The feature is buggy
  • if it works then only for a very small number of systems which do sw decoding
  • the implementation is a nightmare. it uses database entries as globals.

bye bye

@FernetMenta
Copy link
Contributor Author

jenkins build this please

@Montellese Montellese changed the title dvdplayer: drop autocrap dvdplayer: drop autocrop Jan 8, 2015
@Jalle19
Copy link
Member

Jalle19 commented Jan 8, 2015

autocrap :-D I agree, almost everytime I've tried this feature it hasn't worked. It is a common feature on higher-end digital TV receivers though, mostly because there are still some channels that broadcast letterboxed pictures. That's about the only relevant use case though and those channels are rapidly disappearing.

@Voyager1
Copy link

Voyager1 commented Jan 8, 2015

disagree!!! My "Abyss" DVD has letterboxed 4:3 that can only be watched more or less full screen by using autocrop. OK to fix it, not ok to drop it.
Update: while it might be useless for current content, it's pretty useful for legacy content (SD DVDs that are pre-widescreen TV era) and that are SW decoded anyway.

@Jalle19
Copy link
Member

Jalle19 commented Jan 8, 2015

@Voyager1 just change the zoom mode

@FernetMenta
Copy link
Contributor Author

@Voyager1 feel free to stay with 14.0 for you ancient content or implement this in a proper way. the way it is, it has no chance to stay. no discussion.

@Voyager1
Copy link

Voyager1 commented Jan 8, 2015

the nice thing about autocrop is that it works "automatically". When you play DVDs with 4:3 menus that then go to a 16:9 letterboxed format, it zooms in automagically. This feature is there to stay IMO, so I would prefer you give it a chance to be properly refactored instead of just dropping it. I'll take a look at it in the next few days. Why the hurry anyway?

@FernetMenta
Copy link
Contributor Author

this has been on my list for longer. there were a couple of reports in the forum. I am not fixing crap as you may remember from AE. For the majority of users this is a completely useless feature and it taints the design. You would need to implement this entirely new and you won't benefit from the old bits left in the code base.

@FernetMenta
Copy link
Contributor Author

having this in video player is nonsense, you would need to move this into renderer.

@Voyager1
Copy link

Voyager1 commented Jan 8, 2015

makes sense. I would think that the algorithm part itself would be reusable to a large extent but agree with your suggestion to move it into the renderer. I don't hold you from going through with this, I'll need some time to look into a better way to implement it.

@fritsch
Copy link
Member

fritsch commented Jan 8, 2015

The algo touched every row of video pixel by pixel (for loop) and comparing
the sum over it to certain thresholds that fell from heaven. This was very
very intrusive.

2015-01-08 23:07 GMT+01:00 Voyager1 notifications@github.com:

makes sense. I would think that the algorithm part itself would be
reusable to a large extent but agree with your suggestion to move it into
the renderer. I don't hold you from going through with this, I'll need some
time to look into a better way to implement it.

Reply to this email directly or view it on GitHub
#6154 (comment).

               Key-ID:     0x1A995A9B
               keyserver: pgp.mit.edu

Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B

@FernetMenta
Copy link
Contributor Author

maybe you can use shaders. when doing yuv - rgb conversion the pixels have to touched anyway. you could pass the info on black bars back and use a 2nd rendering pass for cropping and scaling.

@FernetMenta
Copy link
Contributor Author

jenkins build this please

@Memphiz
Copy link
Member

Memphiz commented Jan 9, 2015

bad influencing with build and merge of other job - jenkins build this please

@FernetMenta
Copy link
Contributor Author

@Memphiz looks like all build errors are related to texturepacker

@FernetMenta
Copy link
Contributor Author

jenkins build this please

FernetMenta added a commit that referenced this pull request Jan 14, 2015
@FernetMenta FernetMenta merged commit e0d719f into xbmc:master Jan 14, 2015
@FernetMenta FernetMenta deleted the crop branch January 14, 2015 13:46
@MartijnKaijser
Copy link
Member

Can you also remove the related strings from our language file? Thx

@FernetMenta
Copy link
Contributor Author

done

@MartijnKaijser MartijnKaijser modified the milestone: Helix 15.0-alpha1 Jan 16, 2015
@asavah asavah mentioned this pull request Jan 18, 2015
@Scondo
Copy link

Scondo commented Jun 4, 2015

  1. It was bad and ugly, but it was way to start reworking. Now anyone who want to implement such feature must start from scratch.

  2. Still some forgotten lines in header https://github.com/xbmc/xbmc/blob/master/xbmc/cores/dvdplayer/DVDPlayerVideo.h#L127

@fritsch
Copy link
Member

fritsch commented Jun 4, 2015

@Scondo Feel free to pick it up, use the revert commit and improve it to a non pixel based approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants