summaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples/avio_reading: Use avio_context_free() to free AVIOContextJun Zhao2019-04-231-3/+4
| | | | Signed-off-by: Jun Zhao <[email protected]>
* doc/examples/metadata: fix the example can't dump FLV metadataJun Zhao2019-04-071-0/+5
| | | | | | fix the example can't dump FLV metadata. Signed-off-by: Jun Zhao <[email protected]>
* Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer2019-03-101-1/+1
|\ | | | | | | | | | | | | * commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <[email protected]>
| * build: Rename OBJDIRS variable to OUTDIRSDiego Biurrun2019-02-161-1/+1
| | | | | | | | These directories are not just for object files.
* | doc/examples/vaapi_transcode: Fix the typoMichael Niedermayer2018-09-211-1/+1
| | | | | | | | | | Reviewed-by: "[email protected]" <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADERMichael Bunk2018-09-011-2/+3
| | | | | | | | | | | | AV_CODEC_FLAG_GLOBAL_HEADER should be set before calling avcodec_open2() to have any effect. Signed-off-by: Michael Niedermayer <[email protected]>
* | doc/examples/vaapi_transcode: re-licensed to MIT-license.Jun Zhao2018-08-251-13/+15
| | | | | | | | Signed-off-by: Jun Zhao <[email protected]>
* | doc/examples/vaapi_encode: re-licensed to MIT-license.Jun Zhao2018-08-251-13/+15
| | | | | | | | Signed-off-by: Jun Zhao <[email protected]>
* | doc/examples/hw_decode: re-licensed to MIT-license.Jun Zhao2018-08-251-13/+15
| | | | | | | | Signed-off-by: Jun Zhao <[email protected]>
* | doc/examples: add missing ignore filesZhao Zhili2018-05-161-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | examples/filtering_video: fix memory leakZhao Zhili2018-05-161-6/+9
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | examples/filtering_video: add missing headersZhao Zhili2018-05-161-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | examples/filtering_video: drop an always true conditionZhao Zhili2018-05-161-18/+16
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | doc/examples/filtering_audio: Remove setting deprecated refcounted_framesJun Zhao2018-04-221-1/+0
| | | | | | | | | | | | | | | | When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <[email protected]> Signed-off-by: Jun Zhao <[email protected]>
* | doc/examples/filtering_video: Remove setting deprecated refcounted_framesJun Zhao2018-04-221-1/+0
| | | | | | | | | | | | | | | | When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <[email protected]> Signed-off-by: Jun Zhao <[email protected]>
* | doc/examples/hw_decode: Remove setting deprecated refcounted_framesJun Zhao2018-04-221-1/+0
| | | | | | | | | | | | | | | | When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <[email protected]> Signed-off-by: Jun Zhao <[email protected]>
* | 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 <[email protected]>
* | doc/examples/hw_decode: Remove logically dead code in decode_write()Michael Niedermayer2018-03-271-3/+1
| | | | | | | | | | | | | | Fixes CID1415951 Reviewed-by: Jun Zhao <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | doc/examples/hw_decode: Remove useless NULL checkMichael Niedermayer2018-03-271-2/+1
| | | | | | | | | | Reviewed-by: Jun Zhao <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit '0711d142997b2662ba9198e607015b06c6eed0d8'James Almer2018-03-151-32/+69
|\| | | | | | | | | | | | | * commit '0711d142997b2662ba9198e607015b06c6eed0d8': examples: Use new API for transcoding example Merged-by: James Almer <[email protected]>
| * examples: Use new API for transcoding exampleAndreas Unterweger2018-03-071-32/+69
| | | | | | | | Signed-off-by: Diego Biurrun <[email protected]>
* | 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 <[email protected]> Signed-off-by: Liu, Kaixuan <[email protected]> Signed-off-by: Mark Thompson <[email protected]>
* | fftools, tools, examples: migrate to AVFormatContext->urlMarton Balint2018-01-281-2/+5
| | | | | | | | Signed-off-by: Marton Balint <[email protected]>
* | 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 <[email protected]>
| * 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 <[email protected]> Signed-off-by: Luca Barbato <[email protected]>
* | 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 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | 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 <[email protected]> Signed-off-by: Liu, Kaixuan <[email protected]> Signed-off-by: Mark Thompson <[email protected]>
* | 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 <[email protected]> Reviewed-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | 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 <[email protected]> Reviewed-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | 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 <[email protected]> Reviewed-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | 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 <[email protected]>
| * 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 <[email protected]>
| * 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 <[email protected]>
* | Merge commit 'b200a2c8da403b5a5c8b50f8cb4a75fd4f0131b1'James Almer2017-10-261-152/+209
|\| | | | | | | | | | | | | * commit 'b200a2c8da403b5a5c8b50f8cb4a75fd4f0131b1': examples: Fixed and extended Doxygen documentation Merged-by: James Almer <[email protected]>
| * 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 <[email protected]>
* | Merge commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436'James Almer2017-10-263-3/+0
|\| | | | | | | | | | | | | * commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436': lavfi: Drop unused and empty header file Merged-by: James Almer <[email protected]>
* | 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 <[email protected]> Signed-off-by: James Almer <[email protected]>
* | Merge commit 'c483398bb7ef66f61ed2dcb09f3d6160683da0eb'James Almer2017-10-031-34/+34
|\| | | | | | | | | | | | | * commit 'c483398bb7ef66f61ed2dcb09f3d6160683da0eb': build: Drop DOC_ prefix from EXAMPLES-related variables Merged-by: James Almer <[email protected]>
| * 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 <[email protected]>
* | build: fix cleaning compiled unstripped examplesJames Almer2017-09-301-1/+2
| | | | | | | | Signed-off-by: James Almer <[email protected]>
* | 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 <[email protected]>
| * 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 <[email protected]>