Jean-Baptiste Kempf
e19f3ad959
Fix compilation with FFmpeg
15 years ago
Jean-Baptiste Kempf
8b69f37b61
swscale/avcodec: Add I422 9-bit chroma pix_fmt
15 years ago
Dominique Leuenberger
e7c397eb26
avcodec/chroma: include PIXFMT header
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
15 years ago
Laurent Aimar
bbf253f7c3
Mapped VLC_CODEC for I420 9/10-bit, I422 10-bit, I444 9/10-bit to ffmpeg PIX_FMT.
15 years ago
Rémi Denis-Courmont
37e37fb11e
swscale: fix 15- and 16-bits RGB conversions
This is tested with X11 and should fix LP#665298.
This partially reverts commit fb7f014161 .
RV24 is left as is because I cannot test it on my GPU.
16 years ago
Hugo Beauzée-Luyssen
c23388a923
avcodec: Allow usage of VLC_CODEC_RGBA
PIX_FMT_RGBA is not a define, but an enum member.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
16 years ago
Jean-Baptiste Kempf
5f919fba48
Split Avutil<->VLC chroma conversions functions from avcodec.h so that swscale doesn't depend on libavcodec
16 years ago
Laurent Aimar
e67115c022
Do not check rgb masks for YUV in GetFfmpegChroma.
17 years ago
Laurent Aimar
724461bdf2
Used VLC_CODEC_* and vlc_fourcc_GetCodec when suitable.
There will be some regressions, I used automatic sed replacement with manual
checks but there was a lot to change.
It's only the first pass.
17 years ago
Rémi Denis-Courmont
deeb99dcde
Factorize avcodec chroma table - another 2kb
18 years ago
Laurent Aimar
9219a602f1
Enabled ffmpeg PAL8 support ( fix #2000 )
18 years ago
Laurent Aimar
fb7f014161
Fixed RGB ffmpeg color selection.
I have some doubt about it, either swscale does not respect the ffmpeg doc
or the doc is wrong (about the rgb mask).
18 years ago
Antoine Cellerier
38babcb12a
Remove trailing space.
18 years ago
Derk-Jan Hartman
f59bc50a69
ffmpeg chroma: fix [ 079fdd3f33]. copy paste error :D. Thanks xtophe
18 years ago
Derk-Jan Hartman
079fdd3f33
ffmpeg chroma: This follows up on [ 0034fbab55] by providing defaults in case no mask values were set.
18 years ago
Derk-Jan Hartman
0034fbab55
ffmpeg chroma: add rgb masks to the chroma mapping table. This fixes #1749 and likely #1762 .
- Not 100% sure about PIX_FMT_RGB4 and PIX_FMT_RGB8, because their comments in the avutil.h header are incorrect.
- We use FOURCC RGB8, but it seems we use FOURCC RGB2 for RGB8 troughout the rest of VLC. Should be checked.
18 years ago
Derk-Jan Hartman
cd920984e2
ffmpeg chroma: Change GetVlcChroma and GetFfmpegChroma to use a video_format_t, so that we will be able to access and set the rgb mask later on.
This is the first work required to fix #1749
18 years ago
Jean-Baptiste Kempf
b890e9c662
LIBAVUTIL_VERSION_INT inclusion guards...
18 years ago
Derk-Jan Hartman
b5c38aecf3
ffmpeg chroma: fix whitespace
18 years ago
Derk-Jan Hartman
d36afb60b8
ffmpeg: PIX_FMT_YUV422 was renamed to PIX_FMT_YUYV422 (to avoid ambiguity i guess)
18 years ago
Derk-Jan Hartman
83a8d4b0ce
ffmpeg: Add some more chroma fourcc's to the ffmpeg chroma table (NV12, NV21, Y411, I440, J440)
18 years ago
Laurent Aimar
9c440283c6
Removed old hack (for YUVA)
18 years ago
Laurent Aimar
b4302875ea
Simplify vlc fourcc/ffmpeg pix format conversion.
18 years ago
Laurent Aimar
f797ddd37f
Clean up chroma handling in ffmpeg (as a bonus, fixed the last issue
with #1488 )
18 years ago
Laurent Aimar
14cc9765ed
Let swscale handle video conversion when available ( close #1695 )
18 years ago
Antoine Cellerier
f7d5f3e7ca
Move avcodec module files to modules/codec/avcodec. (The 3 shared
headers, avutil.h, chroma.h and fourcc.h are also located in that
directory.) This should be the last commit in the "Move all the old
ffmpeg modules source code files around to make it seem like you're
working while you're not".
18 years ago
Antoine Cellerier
11aac010ac
Some more seperation of the different ffmpeg based modules. They're now completely disjoint except for the common chroma.h and fourcc.h headers.
18 years ago