#10839: incorrect YCoCg to RGB conversion in swscale
---------------------------------------+-----------------------------------
Reporter: Connor Worley | Owner: (none)
Type: defect | Status: closed
Priority: wish | Component: swscale
Version: unspecified | Resolution: wontfix
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------------+-----------------------------------
Comment (by Connor Worley):
That is not true of the swscale code path. The attached file does not
display a warning:
{{{
ffplay started on 2024-01-31 at 16:01:17
Report written to "ffplay-20240131-160117.log"
Log level: 48
Command line:
ffplay /Users/cworley/Downloads/dice_ycg6.mov -report -autoexit
ffplay version 6.1.1 Copyright (c) 2003-2023 the FFmpeg developers
built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1_2 --enable-
shared --enable-pthreads --enable-version3 --cc=clang --host-cflags=
--host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-
gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-
libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame
--enable-libopus --enable-librav1e --enable-librist --enable-librubberband
--enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1
--enable-libtesseract --enable-libtheora --enable-libvidstab --enable-
libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-
libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma
--enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-
libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr
--enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack
--enable-videotoolbox --enable-audiotoo libavutil 58. 29.100 / 58.
29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Initialized metal renderer.
[AVFormatContext @ 0x151b35420] Opening
'/Users/cworley/Downloads/dice_ycg6.mov' for reading
[file @ 0x600002e98c60] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] Unknown dref type 0x206c7275 size
12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] Processing st: 0, edit list 0 -
media time: 0, duration: 522
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] Before avformat_find_stream_info()
pos: 103588 bytes read:33443 seeks:1 nb_streams:1
[dxv @ 0x14200bc00] YOCOCG6 compression with YCG6 texture (version 3.0)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x151b35420] After avformat_find_stream_info()
pos: 102913 bytes read:136320 seeks:2 frames:1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/cworley/Downloads/dice_ycg6.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
encoder : Resolume
Duration: 00:00:00.03, start: 0.000000, bitrate: 24861 kb/s
Stream #0:0[0x1], 1, 1/15360: Video: dxv (DXD3 / 0x33445844),
yuv420p(ycgco/unknown/unknown), 800x600, 24690 kb/s, 30 fps, 30 tbr, 15360
tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : FFMP
detected 12 logical cores
[dxv @ 0x14200bfb0] YOCOCG6 compression with YCG6 texture (version 3.0)
Video frame changed from size:0x0 format:none serial:-1 to size:800x600
format:yuv420p serial:1
[ffplay_buffer @ 0x600002b94420] Setting 'video_size' to value '800x600'
[ffplay_buffer @ 0x600002b94420] Setting 'pix_fmt' to value '0'
[ffplay_buffer @ 0x600002b94420] Setting 'time_base' to value '1/15360'
[ffplay_buffer @ 0x600002b94420] Setting 'pixel_aspect' to value '0/1'
[ffplay_buffer @ 0x600002b94420] Setting 'frame_rate' to value '30/1'
[ffplay_buffer @ 0x600002b94420] w:800 h:600 pixfmt:yuv420p tb:1/15360
fr:30/1 sar:0/1
[AVFilterGraph @ 0x600003899a40] query_formats: 2 queried, 1 merged, 0
already done, 0 delayed
Created 800x600 texture with SDL_PIXELFORMAT_IYUV.
0.01 M-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
[AVIOContext @ 0x151a1fb20] Statistics: 136320 bytes read, 2 seeks
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10839#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".