Media Framework for Linux video

Source: Internet
Author: User

Linux video media (kernel layer analysis) mainly consists of three files:

(/drivers/media/media-device.c,/drivers/media/media-devnode.c,/DRIVERS/MEDIA/MEDIA-ENTITY.C)

I. Main analysis of the/drivers/media/media-device.c file, the main structure of this file is:

  

structMedia_device {structDevice *dev;//Dev->driver_data points to this struct    structMedia_devnode devnode; Charmodel[ +]; Chardriver_name[ +]; Charserial[ +]; Charbus_info[ +];    U32 hw_revision;    U32 driver_version;    U32 topology_version;    U32 ID; structIda Entity_internal_idx; intEntity_internal_idx_max; structlist_head entities; structList_head interfaces; structList_head pads; structList_head links; structList_head entity_notify;//Notify callback list invoked when a new entity is registeredspinlock_tLock;//protects the graph objects Creation/removal    structMutex Graph_mutex;//serializes graph operations.    structmedia_entity_graph Pm_count_walk; void*Source_priv; int(*enable_source) (structMedia_entity *entity,structMedia_pipeline *pipe); void(*disable_source) (structMedia_entity *entity); int(*link_notify) (structMedia_link *link, u32 flags, unsignedintnotification);};

Media Framework for Linux video

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.