Skip to content

Commit

Permalink
ADD: VERSION.md, MOD: README.md AnalyzeDcp.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cinemapub committed Sep 13, 2024
1 parent 117c26e commit 90310f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# PHP Package to read and write DCP Digital Cinema packages

[![Latest Version on Packagist](https://img.shields.io/packagist/v/brightfish-be/dcptoolkit.svg?style=flat-square)](https://packagist.org/packages/brightfish-be/dcptoolkit)
[![Tests](https://img.shields.io/github/actions/workflow/status/brightfish-be/dcptoolkit/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/brightfish-be/dcptoolkit/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/brightfish-be/dcptoolkit.svg?style=flat-square)](https://packagist.org/packages/brightfish-be/dcptoolkit)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/brightfish/dcptoolkit.svg?style=flat-square)](https://packagist.org/packages/brightfish/dcptoolkit)
[![Tests](https://img.shields.io/github/actions/workflow/status/brightfish/dcptoolkit/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/brightfish/dcptoolkit/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/brightfish/dcptoolkit.svg?style=flat-square)](https://packagist.org/packages/brightfish/dcptoolkit)


This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

## Installation

You can install the package via composer:

```bash
composer require brightfish-be/dcptoolkit
composer require brightfish/dcptoolkit
```

## Usage

```php
$toolkit = new Brightfish-be\DcpToolkit();
$toolkit = new Brightfish\DcpToolkit();
```

## Testing
Expand Down
1 change: 1 addition & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
9 changes: 9 additions & 0 deletions src/Folders/AnalyzeDcp.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,21 @@ private static function detectType(DcpFile $dcpFile): Type
if (stripos($dcpFile->name, 'sound') !== false) {
return Type::Sound;
}
if (stripos($dcpFile->name, 'wav') !== false) {
return Type::Sound;
}
if (stripos($dcpFile->name, 'pcm') !== false) {
return Type::Sound;
}
if (stripos($dcpFile->name, 'video') !== false) {
return Type::Picture;
}
if (stripos($dcpFile->name, 'image') !== false) {
return Type::Picture;
}
if (stripos($dcpFile->name, 'j2c') !== false) {
return Type::Picture;
}

return Type::UNKNOWN;
}
Expand Down

0 comments on commit 90310f0

Please sign in to comment.