aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* doc/examples/vaapi_transcode: Fix the typoMichael Niedermayer2018-10-071-1/+1
| | | | | | | Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c02ff77681132ce5caf11ebbae9d1feb75a430f2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADERMichael Bunk2018-10-071-2/+3
| | | | | | | | AV_CODEC_FLAG_GLOBAL_HEADER should be set before calling avcodec_open2() to have any effect. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a82e4fb8c6f26e75506df6818fee1b61f940cbeb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lav*,tests: remove several register_all callsJosh de Kock2018-04-024-8/+0
| | | | | | | avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
* doc/examples/hw_decode: Remove logically dead code in decode_write()Michael Niedermayer2018-03-271-3/+1
| | | | | | | Fixes CID1415951 Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/hw_decode: Remove useless NULL checkMichael Niedermayer2018-03-271-2/+1
| | | | | Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '0711d142997b2662ba9198e607015b06c6eed0d8'James Almer2018-03-151-32/+69
|\ | | | | | | | | | | | | * commit '0711d142997b2662ba9198e607015b06c6eed0d8': examples: Use new API for transcoding example Merged-by: James Almer <jamrial@gmail.com>
| * examples: Use new API for transcoding exampleAndreas Unterweger2018-03-071-32/+69
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | examples: Don't call deprecated functions which don't do anythingMark Thompson2018-02-0920-40/+0
| |
* | examples: Add a VA-API transcode example.Jun Zhao2018-02-042-0/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage is: ./vaapi_transcode input_stream codec output_stream For example: - ./vaapi_transcode input.mp4 h264_vaapi output_h264.mp4 - ./vaapi_transcode input.mp4 vp8_vaapi output_vp8.ivf Does not handle resolution changes on the input stream. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | fftools, tools, examples: migrate to AVFormatContext->urlMarton Balint2018-01-281-2/+5
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74'Mark Thompson2018-01-161-1/+0
|\| | | | | | | | | | | | | * commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74': examples/qsvdec: do not set the deprecated field refcounted_frames Merged-by: Mark Thompson <sw@jkqxz.net>
| * examples/qsvdec: do not set the deprecated field refcounted_framesZhong Li2017-12-291-1/+0
| | | | | | | | | | | | | | | | It is used by the deprecated API avcodec_decode_video2 and ignored by the new decode APIs (avcodec_send_packet/avcodec_receive_frame). Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | examples/vaapi_encode: Remove redundancy check when free context.Jun Zhao2018-01-121-2/+1
| | | | | | | | | | | | | | | | | | avcodec_free_context have handle NULL pointer case, so caller doesn't need to check the NULL before call this function. Signe-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/vaapi_encode: Fix leak on hwframe init failureMark Thompson2017-12-011-0/+1
| | | | | | | | Fixes CID #1424882.
* | examples/hw_decode: Use hw-config information to find pixfmtMark Thompson2017-11-291-32/+22
| | | | | | | | This removes all remaining device-type specificity.
* | examples: Add a VA-API encode example.Jun Zhao2017-11-282-0/+225
| | | | | | | | | | | | | | | | | | | | | | Supports only raw NV12 input. Example use: ./vaapi_encode 1920 1080 test.yuv test.h264 Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | examples/filtering_audio: suppress the build warning.Jun Zhao2017-11-011-2/+2
| | | | | | | | | | | | | | | | | | suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: suppress the build warning.Jun Zhao2017-11-011-2/+2
| | | | | | | | | | | | | | | | | | suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/transcoding: suppress build warning.Jun Zhao2017-11-011-2/+2
| | | | | | | | | | | | | | | | | | suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'ecc5c4db2dd3a0f328d95df89daa59f78b4b2810'James Almer2017-10-301-3/+3
|\| | | | | | | | | | | | | * commit 'ecc5c4db2dd3a0f328d95df89daa59f78b4b2810': doc/examples/output: Cast pointer to the right (const) type Merged-by: James Almer <jamrial@gmail.com>
| * doc/examples/output: Cast pointer to the right (const) typeDiego Biurrun2017-04-241-2/+3
| | | | | | | | doc/examples/output.c:512:33: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type
* | Merge commit 'f25609ff06b093d82548c92fc2031cd2e66c20d3'James Almer2017-10-301-4/+4
|\| | | | | | | | | | | | | * commit 'f25609ff06b093d82548c92fc2031cd2e66c20d3': doc/examples/filter_audio: const correctness Merged-by: James Almer <jamrial@gmail.com>
| * doc/examples/filter_audio: const correctnessDiego Biurrun2017-04-241-4/+4
| | | | | | | | doc/examples/filter_audio.c:168:17: warning: assignment discards ‘const’ qualifier from pointer target type
* | examples/avio_reading: return AVERROR_EOF at EOF.Nicolas George2017-10-291-0/+2
| | | | | | | | Signed-off-by: Nicolas George <george@nsup.org>
* | Merge commit 'b200a2c8da403b5a5c8b50f8cb4a75fd4f0131b1'James Almer2017-10-261-152/+209
|\| | | | | | | | | | | | | * commit 'b200a2c8da403b5a5c8b50f8cb4a75fd4f0131b1': examples: Fixed and extended Doxygen documentation Merged-by: James Almer <jamrial@gmail.com>
| * examples: Fixed and extended Doxygen documentationAndreas Unterweger2017-04-101-163/+215
| | | | | | | | | | | | | | | | Added parameter descriptions for all functions and converted in-function comments into regular (non-Doxygen) comments. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436'James Almer2017-10-263-3/+0
|\| | | | | | | | | | | | | * commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436': lavfi: Drop unused and empty header file Merged-by: James Almer <jamrial@gmail.com>
* | build: add install targets for the examplesJames Almer2017-10-051-1/+13
| | | | | | | | | | | | | | | | | | Split it off from install-data. Among other things, this prevents spamming triplicate log lines during install. Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'c483398bb7ef66f61ed2dcb09f3d6160683da0eb'James Almer2017-10-031-34/+34
|\| | | | | | | | | | | | | * commit 'c483398bb7ef66f61ed2dcb09f3d6160683da0eb': build: Drop DOC_ prefix from EXAMPLES-related variables Merged-by: James Almer <jamrial@gmail.com>
| * build: Drop DOC_ prefix from EXAMPLES-related variablesDiego Biurrun2017-02-271-23/+23
| |
* | Merge commit 'c95169f0ec68bdeeabc5fde8aa4076f406242524'James Almer2017-10-011-1/+1
|\| | | | | | | | | | | | | * commit 'c95169f0ec68bdeeabc5fde8aa4076f406242524': build: Move cli tool sources to a separate subdirectory Merged-by: James Almer <jamrial@gmail.com>
* | build: fix cleaning compiled unstripped examplesJames Almer2017-09-301-1/+2
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | build: add missing changes to ensure examples build with progs-suffixJames Almer2017-09-291-2/+2
| |
* | Merge commit 'ab566cc96bc0c31b34d944214bc06cec8ae8b640'James Almer2017-09-291-0/+5
|\| | | | | | | | | | | | | * commit 'ab566cc96bc0c31b34d944214bc06cec8ae8b640': build: Separate logic for building examples from that for building avtools Merged-by: James Almer <jamrial@gmail.com>
| * build: Separate logic for building examples from that for building avtoolsDiego Biurrun2017-02-211-0/+5
| |
* | Merge commit 'acb0dea27efff4b35796015b96570b59fd517078'James Almer2017-09-292-50/+94
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'acb0dea27efff4b35796015b96570b59fd517078': build: Split logic for building examples off into a separate Makefile We already have a Makefile in doc/examples, but it's separate from the build system and meant to be installed as part of the documentation to help users compile the installed .c example files. Move it to Makefile.example to make place for the new build system Makefile. Merged-by: James Almer <jamrial@gmail.com>
| * build: Split logic for building examples off into a separate MakefileDiego Biurrun2017-02-211-0/+26
| |
| * examples: fix a typo in an error messageAleksandr Slobodeniuk2016-12-021-1/+1
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | add missing ignore filesJesse Liu2017-09-101-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/hw_decode: Add a HWAccel decoding example.Jun Zhao2017-07-302-0/+267
| | | | | | | | | | | | | | | | | | Works with VAAPI, VDPAU, DXVA2 and D3D11VA. Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | examples/encode_video: slightly improve error reportingStefano Sabatini2017-05-311-3/+4
| |
* | examples/encode_video: add logStefano Sabatini2017-05-311-1/+4
| | | | | | | | This helps to visualize how the send/receive API works.
* | examples: do not use AVFrame accessorMuhammad Faiz2017-04-233-3/+3
| | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | doc/examples/decode_video: Fix format string vulnerabilityMichael Niedermayer2017-04-091-1/+1
| | | | | | | | | | | | Fixes: CID1404843 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'c7ab0eb3050acdd3b8cab2c55fc9c1b2e8610a65'James Almer2017-04-041-7/+10
|\| | | | | | | | | | | | | * commit 'c7ab0eb3050acdd3b8cab2c55fc9c1b2e8610a65': examples/decode_video: allocate the packet dynamically Merged-by: James Almer <jamrial@gmail.com>
| * examples/decode_video: allocate the packet dynamicallyAnton Khirnov2016-11-231-5/+8
| | | | | | | | AVPackets on stack are discouraged.
* | Merge commit '728ea23cce07467b732f538c87c13da13dd6dcf3'James Almer2017-04-041-22/+23
|\| | | | | | | | | | | | | * commit '728ea23cce07467b732f538c87c13da13dd6dcf3': examples/decode_video: switch to the new decoding API Merged-by: James Almer <jamrial@gmail.com>
| * examples/decode_video: switch to the new decoding APIAnton Khirnov2016-11-231-20/+23
| |
* | Merge commit 'f78d360bba6dcfb585847a49a84e89c25950fbdb'James Almer2017-04-041-54/+56
|\| | | | | | | | | | | | | * commit 'f78d360bba6dcfb585847a49a84e89c25950fbdb': examples/decode_video: use a parser for splitting the input Merged-by: James Almer <jamrial@gmail.com>
| * examples/decode_video: use a parser for splitting the inputAnton Khirnov2016-11-231-57/+56
| | | | | | | | | | Do not rely on the decoder handling this, as it's not guaranteed to work.