logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

ffmpeg源码分析:avcodec_close()

本文简单分析FFmpeg的avcodec_close()函数。该函数用于关闭编码器。avcodec_close()函数的声明位于libavcodec\avcodec.h,如下所示。/*** Close a given AVCodecContext and free all the data associated with it* (but not the AVCodecContext itself

链表中头指针和头节点(头结点)

链表中头指针和头节点(头结点)

ffmpeg源码分析:av_write_trailer()

av_write_trailer()用于输出文件尾,它的声明位于libavformat\avformat.h,如下所示。/*** Write the stream trailer to an output media file and free the* file private data.** May only be called after a successful call to avfor

Linux内核4.14版本——SPI框架(5)——spi device相关

目录1. spi_add_device1.1 spi_dev_set_name(设置bus id)1.2spi_setup(参数的一些默认设置和检查)2. spi_alloc_device1. spi_add_deviceint spi_add_device(struct spi_device *spi){...../* Chipselects are numbered 0..max; valid

#linux#gnu#服务器
ffmpeg源码分析:avcodec_send_packet和avcodec_receive_frame(原avcodec_decode_video2())

查看avcodec_decode_video2()函数声明发现,该函数已经过期了,取代它的是avcodec_send_packet、avcodec_receive_frame。我们发现新版的avcodec_decode_video2()最终还是调用了avcodec_send_packet、avcodec_receive_frame。如下所示。avcodec_decode_video2->co

Linux内核4.14版本——SPI框架(4)——spi传输以及master需要设置的字段

目录1. spi_sync1.1 __spi_validate(参数message检查)1.2 transfer选择1.2.1ctlr->transfer == spi_queued_transfer(没有定义ctlr->transfer,同步传输)1.2.2spi_async_locked(定义ctlr->transfer)(异步传输)1.3 等待传输完成2. ctrl要实现的

#linux
Linux内核4.14版本——SPI框架(2)——重要的数据结构

目录1. 简介2. struct spi_controller3. struct spi_device4. 传输相关4.1 struct spi_message4.2 struct spi_transfer1. 简介SPI子系统中有几个重要的结构体,spi_master、spi_message、spi_transfer等,他们之间的关系如图所示,还有一个spi_device结构体。2. struc

#linux
Linux内核4.14版本——SPI框架(6)——spi驱动编写

目录1. dts2. 驱动这个就和具体设备相关了,这里贴一个demo。1. dtsuspi0: usi3spi@f0d89000 {compatible = "tsm,tsm-spi";status = "disabled";interrupt-parent = <&gic>;interrupts = <0 29 4>;reg = <0x0 0xf0d8900

#linux#fpga开发#蓝桥杯
    共 30 条
  • 1
  • 2
  • 3
  • 请选择