mirror of
https://github.com/immich-app/immich.git
synced 2025-01-27 22:22:45 +01:00
formatting
This commit is contained in:
parent
e2188867a6
commit
efb4394c7b
2 changed files with 7 additions and 7 deletions
server/src
|
@ -2227,9 +2227,7 @@ describe(MediaService.name, () => {
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
inputOptions: expect.arrayContaining(['-hwaccel rkmpp', '-hwaccel_output_format drm_prime', '-afbc rga']),
|
inputOptions: expect.arrayContaining(['-hwaccel rkmpp', '-hwaccel_output_format drm_prime', '-afbc rga']),
|
||||||
outputOptions: expect.arrayContaining([
|
outputOptions: expect.arrayContaining([
|
||||||
expect.stringContaining(
|
expect.stringContaining('scale_rkrga=-2:720:format=nv12:afbc=1:async_depth=4'),
|
||||||
'scale_rkrga=-2:720:format=nv12:afbc=1:async_depth=4',
|
|
||||||
),
|
|
||||||
]),
|
]),
|
||||||
twoPass: false,
|
twoPass: false,
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -989,7 +989,8 @@ export class RkmppHwDecodeConfig extends RkmppSwDecodeConfig {
|
||||||
if (this.shouldToneMap(videoStream)) {
|
if (this.shouldToneMap(videoStream)) {
|
||||||
const { primaries, transfer, matrix } = this.getColors();
|
const { primaries, transfer, matrix } = this.getColors();
|
||||||
if (this.hasMaliOpenCL) {
|
if (this.hasMaliOpenCL) {
|
||||||
return [ // use RKMPP for scaling, OpenCL for tone mapping
|
return [
|
||||||
|
// use RKMPP for scaling, OpenCL for tone mapping
|
||||||
`scale_rkrga=${this.getScaling(videoStream)}:format=p010:afbc=1:async_depth=4`,
|
`scale_rkrga=${this.getScaling(videoStream)}:format=p010:afbc=1:async_depth=4`,
|
||||||
'hwmap=derive_device=opencl:mode=read',
|
'hwmap=derive_device=opencl:mode=read',
|
||||||
`tonemap_opencl=format=nv12:r=pc:p=${primaries}:t=${transfer}:m=${matrix}:tonemap=${this.config.tonemap}:desat=0:tonemap_mode=lum:peak=100`,
|
`tonemap_opencl=format=nv12:r=pc:p=${primaries}:t=${transfer}:m=${matrix}:tonemap=${this.config.tonemap}:desat=0:tonemap_mode=lum:peak=100`,
|
||||||
|
@ -997,7 +998,8 @@ export class RkmppHwDecodeConfig extends RkmppSwDecodeConfig {
|
||||||
'format=drm_prime',
|
'format=drm_prime',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return [ // use RKMPP for scaling, CPU for tone mapping (only works on RK3588 which support 10bit output)
|
return [
|
||||||
|
// use RKMPP for scaling, CPU for tone mapping (only works on RK3588, which supports 10-bit output)
|
||||||
`scale_rkrga=${this.getScaling(videoStream)}:format=p010:afbc=1:async_depth=4`,
|
`scale_rkrga=${this.getScaling(videoStream)}:format=p010:afbc=1:async_depth=4`,
|
||||||
'hwdownload',
|
'hwdownload',
|
||||||
'format=p010',
|
'format=p010',
|
||||||
|
|
Loading…
Reference in a new issue