Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

dose media sdk have c sample codes?

Ed_H_
Beginner
507 Views

especially jpeg encode, thanks

0 Kudos
2 Replies
Mark_L_Intel1
Moderator
507 Views

Hi Ed,

You can download the sample code from the following site:

https://software.intel.com/en-us/media-sdk-support/code-samples

The sample code is mainly for the capability and performance check, it is little bit complicated and you need the effort to start your project. The sample_encode project has the code for JPEG encoding. For a quick source code check you can click the link in this page to the GitHub.

Here is a quick review:

After user input the parameters, the sample_encode calls the pipeline init function to call InitMfxEncParam() function to configure the encoder, this section of code is the place to configure the JPEG encoder.

The other source is the tutorial code, which is relatively simple and easy to start with, unfortunately it doesn't have the implementation for JPEG. But since it shows the implementation flow, you can use the knowledge from the sample_encode and apply the JPEG configuration to the simple_encode project.

Let me know if you have further questions.

Mark

Mark

0 Kudos
Ed_H_
Beginner
507 Views

Hi Mark,

We have been familiar with c++ samples, but we need pure c codes in our project. It will be much efforts to translate from c++ to c.

 

 

0 Kudos
Reply