Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
6 Views

dose media sdk have c sample codes?

especially jpeg encode, thanks

0 Kudos
2 Replies
Highlighted
Moderator
6 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
Highlighted
Beginner
6 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