Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6823321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:46:08+00:00 2026-05-26T21:46:08+00:00

I am decoding video frames from a stream and sws_scale gives me a buffer

  • 0

I am decoding video frames from a stream and sws_scale gives me a buffer of decoded RGB image data (PIX_FMT_RGB24). I have an existing front-end application that requires the input be DIB. So I need to know how to convert this buffer to DIB?

From what I understand DIB on windows is BGR and bottom to top and requires a header. Rather than do that manually, I’m hoping this problem has already been solved. I’m also wondering maybe sws_scale can do it natively.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:46:09+00:00Added an answer on May 26, 2026 at 9:46 pm

    This isn’t the answer you’re looking for. But, this is about all I’ve got.

    DIB stands for Device Independent Bitmap which is just a bitmap with an extra (DIB) header in it specifying some information about the image data so that it can be understood by more than one device/platform. You can easily link to a free external library such as DevIL to generate the bitmap, but I don’t know of any libraries which will create the DIB header for you. However, there’s a lot of information about the DIB header on the wiki page and it doesn’t look that hard to do yourself and let some other library (I suggest DevIL) do the image conversion.

    I hope somebody else comes up with a nice third party library that does exactly what you’re asking. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm decoding some JSON (from the Youtube data API) with json_decode and it gives
While working on decoding some video streaming standards I have noticed a lot of
Aside from using a hardware video encoding/decoding device, is there an easy was to
I have read that decoding the potentially long string which can be returned from
I've a little question about decoding special characters from a JSon result (in my
using the below code for decoding json $categories = json_decode($data); $categories = $categories->data; where
I have a DLL which provided a decoding function, as follows: function MyDecode (Source:
I have a simple function that returns an NSString after decoding it. I use
I have an ogg vorbis video. It plays fine in totem and mplayer. I
I'm looking for LZSS for decoding some packets from a game engine. If anyone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.