source: trunk/TextSubCodec.r @ 1108

Revision 1108, 2.3 KB checked in by gbooker, 5 years ago (diff)

New system for defining resources. Hopefully this makes more sense

  • Property svn:executable set to *
Line 
1/*
2 * TextSubCodec.r
3 *
4 * This file is part of Perian.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#define TARGET_REZ_CARBON_MACHO 1
22#define thng_RezTemplateVersion 1       // multiplatform 'thng' resource
23#define cfrg_RezTemplateVersion 1       // extended version of 'cfrg' resource
24
25#include <Carbon/Carbon.r>
26#include <QuickTime/QuickTime.r>
27
28// These flags specify information about the capabilities of the component
29// Works with 1-bit, 8-bit, 16-bit and 32-bit Pixel Maps
30#define kDecompressionFlags ( codecInfoDoes32 | cmpThreadSafe | codecInfoDoesStretch | codecInfoDoesShrink )
31
32// These flags specify the possible format of compressed data produced by the component
33// and the format of compressed files that the component can handle during decompression
34// The component can decompress from files at 1-bit, 8-bit, 16-bit, 24-bit and 32-bit depths
35#define kFormatFlags    ( codecInfoDepth32 )
36
37#include "PerianResourceIDs.h"
38
39#define kStartTHNGResID kSSASubCodecResourceID
40#define kCodecManufacturer kTextCodecManufacturer
41#define kCodecVersion kTextSubCodecVersion
42#define kEntryPointID kTextSubCodecResourceID
43
44#define kCodecInfoResID kSSASubCodecResourceID
45#define kCodecName "SSA Text Subtitle"
46#define kCodecDescription "Renders subtitles stored in SubStation Alpha format."
47#define kCodecSubType kSubFormatSSA
48#include "PerianResources.r"
49
50#define kCodecInfoResID kTextSubCodecResourceID
51#define kCodecName "Text Subtitle"
52#define kCodecDescription "Renders subtitles stored as text."
53#define kCodecSubType kSubFormatUTF8
54#include "PerianResources.r"
55
56// Code Entry Point for Mach-O and Windows
57resource 'dlle' (kTextSubCodecResourceID) {
58        "TextSubCodecComponentDispatch"
59};
Note: See TracBrowser for help on using the repository browser.