"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssetKeyframeTable = exports.AssetVideoTable = exports.AssetAudioTable = void 0;
const sql_tools_1 = require("@immich/sql-tools");
const asset_table_1 = require("./asset.table");
let AssetAudioTable = class AssetAudioTable {
    assetId;
    bitrate;
    index;
    profile;
    codecName;
};
exports.AssetAudioTable = AssetAudioTable;
__decorate([
    (0, sql_tools_1.ForeignKeyColumn)(() => asset_table_1.AssetTable, { onDelete: 'CASCADE', primary: true }),
    __metadata("design:type", String)
], AssetAudioTable.prototype, "assetId", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetAudioTable.prototype, "bitrate", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint' }),
    __metadata("design:type", Number)
], AssetAudioTable.prototype, "index", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint', nullable: true }),
    __metadata("design:type", Object)
], AssetAudioTable.prototype, "profile", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'text' }),
    __metadata("design:type", String)
], AssetAudioTable.prototype, "codecName", void 0);
exports.AssetAudioTable = AssetAudioTable = __decorate([
    (0, sql_tools_1.Table)('asset_audio')
], AssetAudioTable);
let AssetVideoTable = class AssetVideoTable {
    assetId;
    bitrate;
    frameCount;
    timeBase;
    index;
    profile;
    level;
    colorPrimaries;
    colorTransfer;
    colorMatrix;
    dvProfile;
    dvLevel;
    dvBlSignalCompatibilityId;
    codecName;
    formatName;
    formatLongName;
    pixelFormat;
};
exports.AssetVideoTable = AssetVideoTable;
__decorate([
    (0, sql_tools_1.ForeignKeyColumn)(() => asset_table_1.AssetTable, { onDelete: 'CASCADE', primary: true }),
    __metadata("design:type", String)
], AssetVideoTable.prototype, "assetId", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "bitrate", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "frameCount", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "timeBase", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "index", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint', nullable: true }),
    __metadata("design:type", Object)
], AssetVideoTable.prototype, "profile", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint', nullable: true }),
    __metadata("design:type", Object)
], AssetVideoTable.prototype, "level", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "colorPrimaries", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "colorTransfer", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint' }),
    __metadata("design:type", Number)
], AssetVideoTable.prototype, "colorMatrix", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint', nullable: true }),
    __metadata("design:type", Object)
], AssetVideoTable.prototype, "dvProfile", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint', nullable: true }),
    __metadata("design:type", Object)
], AssetVideoTable.prototype, "dvLevel", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'smallint', nullable: true }),
    __metadata("design:type", Object)
], AssetVideoTable.prototype, "dvBlSignalCompatibilityId", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'text' }),
    __metadata("design:type", String)
], AssetVideoTable.prototype, "codecName", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'text' }),
    __metadata("design:type", String)
], AssetVideoTable.prototype, "formatName", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'text' }),
    __metadata("design:type", String)
], AssetVideoTable.prototype, "formatLongName", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'text' }),
    __metadata("design:type", String)
], AssetVideoTable.prototype, "pixelFormat", void 0);
exports.AssetVideoTable = AssetVideoTable = __decorate([
    (0, sql_tools_1.Table)('asset_video')
], AssetVideoTable);
let AssetKeyframeTable = class AssetKeyframeTable {
    assetId;
    pts;
    accDuration;
    ownDuration;
    totalDuration;
    packetCount;
    outputFrames;
};
exports.AssetKeyframeTable = AssetKeyframeTable;
__decorate([
    (0, sql_tools_1.ForeignKeyColumn)(() => asset_table_1.AssetTable, { onDelete: 'CASCADE', primary: true }),
    __metadata("design:type", String)
], AssetKeyframeTable.prototype, "assetId", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer', array: true }),
    __metadata("design:type", Array)
], AssetKeyframeTable.prototype, "pts", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer', array: true }),
    __metadata("design:type", Array)
], AssetKeyframeTable.prototype, "accDuration", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer', array: true }),
    __metadata("design:type", Array)
], AssetKeyframeTable.prototype, "ownDuration", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetKeyframeTable.prototype, "totalDuration", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetKeyframeTable.prototype, "packetCount", void 0);
__decorate([
    (0, sql_tools_1.Column)({ type: 'integer' }),
    __metadata("design:type", Number)
], AssetKeyframeTable.prototype, "outputFrames", void 0);
exports.AssetKeyframeTable = AssetKeyframeTable = __decorate([
    (0, sql_tools_1.Table)('asset_keyframe')
], AssetKeyframeTable);
//# sourceMappingURL=asset-av.table.js.map