站长网 大数据 FFMPEG中重要的数据结构的挖掘

FFMPEG中重要的数据结构的挖掘

[cpp]? view plain ?copy ? typedef?struct?AVFormatContext?{?? ????struct?AVInputFormat?*iformat;?? ????void?*priv_data;?? ?????? ????ByteIOContext?*pb;?? ????unsigned?int?nb_streams;?? ????AVStream?*streams[MAX_STREAMS];?? }?AVFormatConte

[cpp]?
view plain
?copy

?

在CODE上查看代码片

派生到我的代码片

  1. typedef?struct?AVFormatContext?{??
  2. ????struct?AVInputFormat?*iformat;??
  3. ????void?*priv_data;??
  4. ??????
  5. ????ByteIOContext?*pb;??
  6. ????unsigned?int?nb_streams;??
  7. ????AVStream?*streams[MAX_STREAMS];??
  8. }?AVFormatContext;??
  9. ??
  10. ??
  11. struct?AVStream?{??
  12. ????int?index;????/**<?stream?index?in?AVFormatContext?*/??
  13. ????int?id;???????/**<?format-specific?stream?ID?*/??
  14. ????AVCodecContext?*codec;?/**<?codec?context?*/??
  15. ????AVRational?time_base;??
  16. struct?AVCodecParserContext?*parser;??
  17. }?AVStream;??
  18. struct?AVCodecContext?{??
  19. ????uint8_t?*extradata;??
  20. int?extradata_size;??
  21. ????AVRational?time_base;??
  22. int?width,?height;??
  23. enum?PixelFormat?pix_fmt;??
  24. ????/*?audio?only?*/??
  25. int?sample_rate;?///<?samples?per?second??
  26. int?channels;????///<?number?of?audio?channels??
  27. char?codec_name[32];??
  28. enum?CodecType?codec_type;?/*?see?CODEC_TYPE_xxx?*/??
  29. enum?CodecID?codec_id;?/*?see?CODEC_ID_xxx?*/??
  30. ????unsigned?int?codec_tag;??
  31. ????struct?AVCodec?*codec;??
  32. void?*priv_data;??
  33. }?AVCodecContext;??
  34. AVCodec?{??
  35. int?(*init)(AVCodecContext?*);??
  36. int?(*encode)(AVCodecContext?*,?uint8_t?*buf,?int?buf_size,?void?*data);??
  37. int?(*close)(AVCodecContext?*);??
  38. int?(*decode)(AVCodecContext?*,153); font-weight:bold; background-color:inherit”>void?*outdata,87); font-weight:bold; background-color:inherit”>int?*outdata_size,??
  39. ??????????????????const?uint8_t?*buf,87); font-weight:bold; background-color:inherit”>int?buf_size);??
  40. }??

http://blog.csdn.net/mydeardingxiaoli/article/details/17168899

本文来自网络,不代表站长网立场,转载请注明出处:https://www.tzzz.com.cn/html/shuju/2021/0525/6415.html

作者: dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。
联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部