-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
support for image decoder add-ons #11086
Conversation
@AlwinEsch hope this doesn't create too much problems for your refactoring effort! it should be straight forward to move to a new API like other stuff. of course, it means more work, but that's the cost of progress ;) |
89ff2af
to
9630cc3
Compare
Probably should have a new component? kodi-imageencoder-dev? Something for later. |
const char* mimetype; | ||
}; | ||
|
||
struct ImageEncoder |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
37cff1d
to
05d83b9
Compare
due to the underwhelming feedback i have taken a few executive decisions:
i thus renamed the extension point kodi.imagedecoder. notspiff/imagedecoder.raw for an add-on. i also rebased for the new add-on stuff (struct table and such). as far as i am concerned this is ready for merge. |
05d83b9
to
64dbc65
Compare
CMake changes look good to me. Can't comment on the rest. Happy New Year! |
xbmc/windowing/X11/WinSystemX11.cpp
Outdated
@@ -911,7 +911,8 @@ bool CWinSystemX11::CreateIconPixmap() | |||
gRatio = vis->green_mask / 255.0; | |||
bRatio = vis->blue_mask / 255.0; | |||
|
|||
CBaseTexture *iconTexture = CBaseTexture::LoadFromFile("special://xbmc/media/icon256x256.png"); | |||
CBaseTexture *iconTexture = CBaseTexture::LoadFromFile("special://xbmc/media/icon256x256.png", | |||
0, 0, "image/png"); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@AlwinEsch as you are currently reworking binary addon interfaces, please also have a look. Thanks very much for doing that work. Very nice and non intrusive. |
7f926d5
to
6bfec3a
Compare
packaging comment updated. |
d0d48fc
to
28029be
Compare
28029be
to
a7b0865
Compare
If there's no objections, rebase and merge? |
No objections from me. |
@AlwinEsch, any comments or can this be rebased and merged? |
can we just move forward or do we need to wait? |
@@ -136,6 +138,8 @@ std::shared_ptr<IAddon> CAddonBuilder::Build() | |||
return CAudioEncoder::FromExtension(std::move(m_props), m_extPoint); | |||
case ADDON_AUDIODECODER: | |||
return CAudioDecoder::FromExtension(std::move(m_props), m_extPoint); | |||
case ADDON_IMAGEDECODER: | |||
return CImageDecoder::FromExtension(std::move(m_props), m_extPoint); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
#define XB_FMT_A8 32 | ||
#define XB_FMT_RGBA8 64 | ||
#define XB_FMT_RGB8 128 | ||
#define XB_FMT_OPAQUE 65536 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
On the whole it is very good and nice. |
well, my reasoning is simply that guilib can be used without add-on support
right now, the other way not so much. you will have your layer as soon as i
find some time (perhaps as early as tomorrow morning if the scraper fix in
my backlog doesn't eat the whole train ride).
|
{ | ||
if (!Initialized()) | ||
return false; | ||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
no, but sticking the header in add-on bindings, then having to include it in guilib instead would! i didn't invent these defines, i extracted them from XBTF.h to avoid the need to bring the entire XBTF.h with all its tentacles into add-on bindings. i have agreed to do the translation layer, which moves the add-on binding <- guilib dependency to add-on classes <- guilib, but i will not make the dependency guilib <- add-on bindings.
can somebody who does a better job than google translate please translate this to german so nothing gets lost in translation. mine is so rusty i'd probably end up offending alwin's mum in the process ;)
|
a7b0865
to
10b4956
Compare
branch rebased, translation layer added, imagedecoder.raw updated. |
everybody seems happy, can we please merge so i don't have to rebase this again. |
If anything breaks, I never touched the button! 😀 |
Thank you very much!
Am 08.02.2017 5:09 nachm. schrieb "Alwin Esch" <notifications@github.com>:
… Have tested it and works nice.
Found by chance and test a good picture :D :
[image: bildschirmfoto vom 2017-02-08 16-54-35]
<https://cloud.githubusercontent.com/assets/6879739/22745512/18430d2c-ee21-11e6-8e0d-256287867f52.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11086 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABCfHSr0_PzJ0lVe7wwMNsFP887baEHFks5raei0gaJpZM4LGcSI>
.
|
I completely forgot about it, threw together a quick build for libraw |
pushed a dependency definition in the add-on. untested but should be able kick an add-on build on jenkins to check thinngs. |
running now |
damn close but somebody else keeps the sigar. mismatch in config file name. it expects RAW-config.cmake, not libraw-config.cmake. needs to be adjusted in either add-on or your repo (idc which). |
I can fix it tomorrow, you want the whole project/target to be just raw or config enough? |
only care about config file, it needs to match the find rule in the add-on which is currently FindRAW.cmake (config file overrides, i assume you know but just in case). |
I renamed everything to just raw, would likely just cause issues in the future having different names |
This is my work on support for image add-ons. The main motivation for this is bringing back libraw support that was lost when cximage was kicked out.
i have confirmed that decode works. you find addons in my github account (raw only for now). if you want to try the raw stuff https://www.rawsamples.ch/index.php/en/canon is convenient.