summaryrefslogtreecommitdiff
path: root/libavcodec/libx265.c
Commit message (Collapse)AuthorAge
* libavcodec/x265: detect csps in libx265_encode_init_csp()Steve Borho2015-05-18
| | | | | | | | | | | | | | | | | Without this change, if you link with an 8bit libx265 and try to specify a 10bit input color space via: ffmpeg -i in.mov -c:v libx265 -pix_fmt yuv420p10le out.mp4 It will error with: Incompatible pixel format 'yuv420p10le' for codec 'libx265', auto-selecting format 'yuv420p' With this fix, it will learn if a 10bit libx265 is available at startup, and thus allow 10bit input color spaces. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/libx265: use x265 Multi-library Interface to query the APIGopu Govindaswamy2015-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | ffmpeg can now use the x265 multi-library interface to make a runtime selection between a number of libx265 libraries (perhaps 8bpp and 16bpp). ffmpeg will link to one build of libx265 (statically or dynamically) and this linked version of libx265 will support one bit-depth (8 or 10 bits). At runtime, ffmpeg now has the option to request the encoder to use a different bit depth(8 or 10). If the requested bitdepth is zero, or if it matches the bitdepth of the system default libx265 (the currently linked library), then this library will be used for encode. If ffmpeg requests a different bit-depth, the linked libx265 will attempt to dynamically bind a shared library with the requested bit-depth from the install location (default or user-specified). new x265 API: const x265_api* api = x265_api_get(int bitDepth); x265_api - holds the libx265 public API functions bitDepth - requested API for 8bpp or 16bpp note: Use 0 to indicate native bit depth of the linked libx265 and x265_api_get(0) is guaranteed to return a non-null pointer Signed-off-by: Gopu Govindaswamy <gopu@multicorewareinc.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Merge commit '04070dbca0688ab1e24528ce5c135254a9a79c47'Michael Niedermayer2015-05-06
|\ | | | | | | | | | | | | * commit '04070dbca0688ab1e24528ce5c135254a9a79c47': libx265: Fix 'braces around scalar initializer' warning Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libx265: Fix 'braces around scalar initializer' warningVittorio Giovara2015-05-06
| | | | | | | | | | | | | | | | x265 Reordered the x265_picture fields in the commit https://github.com/videolan/x265/commit/51b1518de2414431f36eac592db15b667c25a7b9#diff-945b5354d8767dfac13334f2d22cf58fR107 Now the first field is an integer and not an array.
* | Merge commit 'ec89f35e3e5eb9ec5221266e801efeee7ecab4df'Michael Niedermayer2015-04-15
|\| | | | | | | | | | | | | * commit 'ec89f35e3e5eb9ec5221266e801efeee7ecab4df': x265: Map color parameters Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x265: Map color parametersLuca Barbato2015-04-15
| |
| * libx265: print supported presets and tunes on errorJames Almer2015-04-11
| | | | | | | | | | | | | | Based on code from libavcodec/libx264.c Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * avcodec/libx265: export chosen picture typesMichael Niedermayer2015-04-05
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Add crf private optionDerek Buitenhuis2015-02-18
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Reduce the scope of some variablesDerek Buitenhuis2015-02-18
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Pass through user-set frame typeDerek Buitenhuis2015-01-22
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: enable psnr reporting when requested by the userMichael Niedermayer2014-10-01
| | | | | | | | | | | | | | This is similar to what is done in libx264.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/libx265: print supported presets and tunes on errorJames Almer2015-04-10
| | | | | | | | | | | | | | Based on code from libavcodec/libx264.c Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/libx265: export choosen picture typesMichael Niedermayer2015-03-31
| | | | | | | | | | | | | | Fixes part of ticket 4285 Reviewed-by Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libx265: Add crf private optionDerek Buitenhuis2015-02-18
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Reduce the scope of some variablesDerek Buitenhuis2015-02-18
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Pass through user-set frame typeDerek Buitenhuis2015-01-22
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/libx265: enable psnr reporting when requested by the userMichael Niedermayer2014-09-28
| | | | | | | | | | | | | | | | This is similar to what is done in libx264.c Fixes Ticket3567 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '4912b634b517c8acfc476c5d47f10be83fe7e18b'Michael Niedermayer2014-09-03
|\| | | | | | | | | | | | | * commit '4912b634b517c8acfc476c5d47f10be83fe7e18b': x265: Use the encoder defaults Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x265: Use the encoder defaultsLuca Barbato2014-09-03
| | | | | | | | Reset the settings as it is done for x264.
| * libx265: Remove unneeded bit depth checkDerek Buitenhuis2014-06-12
| | | | | | | | | | | | This is no longer needed since the version bump. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Add 4:2:2 supportDerek Buitenhuis2014-06-12
| | | | | | | | | | | | | | | | It is also not final yet, so require -strict experimental. Requires a bump to version 17. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Actually use X265_API_IMPORTSDerek Buitenhuis2014-06-12
| | | | | | | | | | | | It obvously needs to be above the include statement. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Only set the SAR if it is validDerek Buitenhuis2014-04-10
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Use 16-bit SARDerek Buitenhuis2014-04-10
| | | | | | | | | | | | The spec says it is 16 bits. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Use x265_param_parse to set the SARDerek Buitenhuis2014-04-10
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Use the repeat headers flag when not using global headersMarcus Gustafsson2014-03-31
| | | | | | | | | | | | | | This allows proper muxing and seeking in things like MPEG-TS, by placing headers by random access points. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Only use one memcpy for headersDerek Buitenhuis2014-03-24
| | | | | | | | | | | | They're guaranteed by the x265 API to be contiguous in memory. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Write global extradata when requestedMichael Niedermayer2014-03-24
| | | | | | | | | | | | | | | | Matroska, MP4, and other containers require it. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * libx265: Support API version 9Derek Buitenhuis2014-03-06
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Properly handled dynamic linking with MSVCDerek Buitenhuis2014-02-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Support SARDerek Buitenhuis2014-02-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Support 4:4:4Derek Buitenhuis2014-02-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Update API usageDerek Buitenhuis2014-02-24
| | | | | | | | | | | | | | Framerate is now a sane rational instead of an integer, and inputDepth is changed to what it actually is. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Remove redundant default param callDerek Buitenhuis2014-02-14
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * libx265: Fix use of uninitialized input pictureDerek Buitenhuis2014-02-14
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Remove unneeded bit depth checkDerek Buitenhuis2014-06-12
| | | | | | | | | | | | This is no longer needed since the version bump. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Add 4:2:2 supportDerek Buitenhuis2014-06-12
| | | | | | | | | | | | | | | | It is also not final yet, so require -strict experimental. Requires a bump to version 17. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Actually use X265_API_IMPORTSDerek Buitenhuis2014-06-12
| | | | | | | | | | | | It obvously needs to be above the include statement. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Only set the SAR if it is validDerek Buitenhuis2014-04-10
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Use 16-bit SARDerek Buitenhuis2014-04-10
| | | | | | | | | | | | The spec says it is 16 bits. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Use x265_param_parse to set the SARDerek Buitenhuis2014-04-10
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Use the repeat headers flag when not using global headersMarcus Gustafsson2014-03-31
| | | | | | | | | | | | | | This allows proper muxing and seeking in things like MPEG-TS, by placing headers by random access points. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Only use one memcpy for headersDerek Buitenhuis2014-03-24
| | | | | | | | | | | | They're guaranteed by the x265 API to be contiguous in memory. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Simple cosmetic fixDerek Buitenhuis2014-03-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/libx265: fill headers in extradataMichael Niedermayer2014-03-14
| | | | | | | | | | | | Fixes Ticket3457 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libx265: Use ctx->vui. instead of ctx-> for some options A recent change in ↵sfan52014-03-06
| | | | | | | | | | | | | | libx265 moved some options such as sar_width into a 'vui' struct. Signed-off-by: sfan5 <sfan5@live.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libx265: Use proper error codeDerek Buitenhuis2014-02-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Properly handled dynamic linking with MSVCDerek Buitenhuis2014-02-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libx265: Support SARDerek Buitenhuis2014-02-24
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>