Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Read image from file

New Here ,
Jan 22, 2017 Jan 22, 2017

Hi everyone,

I want to initialize PF_EffectWorld using image from disk. Roughly speaking, I want to write something like this:

PF_EffectWorld* img = EffectWorldLoadFunction("1.jpg");

Does AE SDK have such functionality? Or I have to use external library (like OpenCV) for the correct reading of different image formats?

Thanks,

Ilya

TOPICS
SDK
695
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jan 23, 2017 Jan 23, 2017

No, the SDK does not offer this functionality, but as you said, you are free to use a library like SOIL, OpenCV, libpng/tiff/jpg, CImg or whatever to load an external file into a buffer in memory and then copy the pixels in the right format to your effect world.

Translate
Guest
Jan 23, 2017 Jan 23, 2017

No, the SDK does not offer this functionality, but as you said, you are free to use a library like SOIL, OpenCV, libpng/tiff/jpg, CImg or whatever to load an external file into a buffer in memory and then copy the pixels in the right format to your effect world.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2017 Jan 23, 2017

Thank you for detailed answer!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 29, 2020 Sep 29, 2020
LATEST

Very late to this party, but could you explain how to copy the pixels from a buffer to an effect world?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines