From patchwork Sun Nov 6 15:08:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Lhomme X-Patchwork-Id: 34856 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp1599395pzb; Sun, 6 Nov 2022 07:09:12 -0800 (PST) X-Google-Smtp-Source: AMsMyM4URjEN89rEHBuu4drVlksJ9E8TWFFrKb76C9zCfuZh0WVGdEuQZ5XrOe8Q/HDrFtp8vXoy X-Received: by 2002:a17:907:d93:b0:7ad:8319:d095 with SMTP id go19-20020a1709070d9300b007ad8319d095mr42704034ejc.511.1667747351893; Sun, 06 Nov 2022 07:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667747351; cv=none; d=google.com; s=arc-20160816; b=AZgavcAVUgDcnWCrcGt2VI/8hmxNdHWE6b+cVBvUjZntIwu/KaMFLbioZqP6QZk7ko GyiBBveRpwuPdgA/TWd5vMSps1LF5qE3jKC0T4y7epfAec1aU5AaXoRVBsVXT0g9bIkF CN6hvTDajht63uhQUn4f25rbGyUc+iSIHfFT8rqOngnSa+F4G2y8BgbgHrzgedoObE1O 9kaY3kM+7Mz1XMfORX1lvZvpgJpNOL6fkJOugeseW0titamGiZ2WVbdB2RTi7llyslHT GW0gMmLfTth0Y5Tb+j8z5zX+FFyniX7M1gmQcEbCSFncLwvFUZCXzglicI68k3ofmXGC 8Z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=U4WA2LJ6yCpZkuSwZSWdJANPTUvnmb+8CfqKkQeCr5M=; b=C2RFahnP/z59EAeS85jLnLUY6gsgHyfmwKe0xJASNt7AZQdYttr10g6iUw4TZHmmcE to9r5+lVLrUXn/KFawsmX6LKuX4upeZDJuadunldynTGoAJeGODezqXwEDn27/+w4e58 DcqQI7SMK4UOCIrRJ/4+wgMi1MVzwjJjPgE2A0jzvJC/nX9moBKibYCm8rORKO+HF2wu sFllnKtpWmAYkp6DsA88/FjWS5BfoAKOON8wwCuDvcwY7o5n5e7NELdtsu6Nl1SwgLLe geR59xTkQ0nANlmEFTkTj3gAluvBmEdQxwiPRO40+u2+zDZEOUo/7vOHe+LDuNMCXRR4 BI6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b007ad2d85d753si5234561ejc.495.2022.11.06.07.09.11; Sun, 06 Nov 2022 07:09:11 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1EE8468B7D2; Sun, 6 Nov 2022 17:09:07 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3489C68B0D6 for ; Sun, 6 Nov 2022 17:08:59 +0200 (EET) Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4N4yS90Nb8z9sRP for ; Sun, 6 Nov 2022 16:08:57 +0100 (CET) From: Steve Lhomme To: ffmpeg-devel@ffmpeg.org Date: Sun, 6 Nov 2022 16:08:42 +0100 Message-Id: <20221106150854.9528-1-robux4@ycbcr.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 00/12] Use generated semantic for Matroska demuxer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: jokHWetVaIss From: robux4 Following an earlier version of the generated code, I reworked to code and move the generator outside of the FFmpeg source tree. The XSLT code to generate this code from the EBML Schema for Matroska can be found at https://github.com/Matroska-Org/foundation-source/pull/116 Steve Lhomme (12): avformat/matroskadec: fix the default of the TagDefault element avformat/matroskadec: remove some implicit default value avformat/matroska: use more consistent spacing in enums avformat/matroska: move Matroska IDs and enums in a separate header avformat/matroskadec: move the elements semantic in a separate file avformat/matroska_ids: move some IDs in separate sections avformat/matroska_ids: reorder some IDs to match the generated order avformat/matroskasem: reorder EbmlSyntax tables avformat/matroskasem: reorder some EbmlSyntax elements avformat/matroska: use the generated semantic files avformat/matroska: only export a few elements. avformat/matroska: add missing elements libavformat/Makefile | 2 +- libavformat/matroska.h | 314 +--------------- libavformat/matroska_ids.h | 464 ++++++++++++++++++++++++ libavformat/matroskadec.c | 712 +------------------------------------ libavformat/matroskasem.c | 471 ++++++++++++++++++++++++ libavformat/matroskasem.h | 389 ++++++++++++++++++++ 6 files changed, 1327 insertions(+), 1025 deletions(-) create mode 100644 libavformat/matroska_ids.h create mode 100644 libavformat/matroskasem.c create mode 100644 libavformat/matroskasem.h