what is 'linesize alignment' meaning?

后端 未结 3 1302
挽巷
挽巷 2021-02-05 07:35

I\'m following ffmpeg tutorial in http://dranger.com/ffmpeg/tutorial01.html.

I have just found that avpicture_get_size function is deprecated.

So I

3条回答
  •  难免孤独
    2021-02-05 08:04

    If you look at the definition of avpicture_get_size in version 3.2 you see the following code:

    int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
    {
        return av_image_get_buffer_size(pix_fmt, width, height, 1);
    }
    

    It simply calls the suggested function: av_image_get_buffer_size with the align parameter set to 1. I did not go further to find out the full significance of why 1 is used for the depreciated function. As usual with ffmpeg, one can probably figure it out by reading the right code and enough code (with some code experiments).

提交回复
热议问题