MCPcopy Create free account

hub / github.com/DevonCrawford/Video-Editing-Automation / functions

Functions180 in github.com/DevonCrawford/Video-Editing-Automation

↓ 16 callersFunctionopen_clip
* Open a clip (VideoContext) to read data from the original file * @param clip Clip with videoContext to be opened * @return >= 0 on success
src/Clip.c:114
↓ 13 callersFunctioninit_clip
* Initialize Clip with new VideoContext * @param clip Clip to be initialized * @param url filename * @return >= 0 on success */
src/Clip.c:88
↓ 12 callersFunctionset_clip_bounds
Initialize Clip object with start and endpoints @param clip: Clip to initialize @param vid_ctx: Video context assumed to already be initialize
src/Clip.c:159
↓ 9 callersFunctionfree_clip
Frees data within clip structure and the Clip allocation itself */
src/Clip.c:626
↓ 9 callersFunctionsequence_append_clip
* Add clip to the end of sequence * @param seq Sequence to insert clip * @param clip Clip to be inserted into end of sequence */
src/Sequence.c:157
↓ 8 callersFunctionget_video_frame_pts
Return >= 0 on success */
src/Timebase.c:33
↓ 7 callersFunctionget_video_stream
src/VideoContext.c:13
↓ 7 callersFunctionlist_compare_clips_sequential
* Compare two clips within a linked list by date & time first, then orig_start_pts second. * This is useful for ordering clips by time they were shot
src/Clip.c:709
↓ 6 callersFunctioncov_video_pts
* Convert video pts into frame index * @param vid_ctx VideoContext * @param pts presentation timestamp of video frames * @return >= 0
src/Timebase.c:17
↓ 6 callersFunctionfree_sequence
* Free entire sequence and all clips within * @param seq Sequence containing clips and clip data to be freed */
src/Sequence.c:548
↓ 6 callersFunctionsequence_encode_frame
* Encode packets from a sequence * This function builds ontop of sequence_read_frame() in SequenceDecode.c * @param oc OutputContext al
src/SequenceEncode.c:20
↓ 5 callersFunctionclip_encode_frame
* Read packet from clip, decode it into AVFrame, and re-encode it for output * This function builds ontop of clip_read_frame() in ClipDecode.c * @pa
src/ClipEncode.c:20
↓ 5 callersFunctionclose_video_output
* Close video output file * @param out_ctx * @param trailer_flag when true, trailer will attempt to be written * @return >= 0 on success *
src/OutputContext.c:394
↓ 5 callersFunctioncov_video_to_audio_pts
src/Timebase.c:76
↓ 5 callersFunctionfind_clip_at_index
* Iterate all sequence clips to find the clip that contains this frame_index in sequence * @param seq Sequence * @param frame_index index
src/Sequence.c:326
↓ 4 callersFunctioninit_sequence
* Initialize new sequence and list of clips * @param sequence Sequence is assumed to already be allocated memory * @param fps frames
src/Sequence.c:20
↓ 4 callersFunctioninitializeNode
Function for creating a node for the linked list. * This node contains abstracted (void *) data as well as previous and next * pointers to connect to
src/LinkedListAPI.c:37
↓ 4 callersFunctioninsertBack
Inserts a Node at the back of a linked list. List metadata is updated * so that head and tail pointers are correct. *@pre 'List' type must exist and
src/LinkedListAPI.c:83
↓ 4 callersFunctionmove_clip_pts
* Sets the start_pts of a clip in sequence * @param seq Sequence containing clip * @param clip Clip to set start_pts *
src/Sequence.c:479
↓ 4 callersFunctionprint_sequence
* get sequence string * @param seq Sequence to get data * @return string allocated on heap, to be freed by caller */
src/Sequence.c:557
↓ 4 callersFunctionseek_clip_pts
Seek to a clip frame, relative to the clip. @param Clip: clip to seek @param pts: relative pts to the clip (where zero represents clip->orig_s
src/Clip.c:251
↓ 3 callersFunctionclip_read_frame
* Read clip packet and decode it. * Will automatically skip by packets if they are before clip->seek_pts * This occurs because we need an I-frame be
src/ClipDecode.c:21
↓ 3 callersFunctionclip_read_packet
Read a single AVPacket from clip. Only returns packets if they are within clip boundaries (start_frame_pts - end_frame_pts) This is a wrapper
src/Clip.c:361
↓ 3 callersFunctionclip_send_packet
* Send clip packet to decoder * @param clip Clip to read packets * @return >= 0 on success */
src/ClipDecode.c:138
↓ 3 callersFunctionclose_clip
src/Clip.c:147
↓ 3 callersFunctionclose_video_context
free codecs and ffmpeg struct data inside VideoContext **/
src/VideoContext.c:190
↓ 3 callersFunctioncut_clip
* Cut a clip within a sequence, splitting the clip in two * @param seq Sequence * @param frame_index index of frame in sequence (clip must
src/Sequence.c:295
↓ 3 callersFunctionget_audio_stream
src/VideoContext.c:21
↓ 3 callersFunctionget_sequence_duration
* Get duration of sequence in frames (defined by fps) * @param seq Sequence * @return >= 0 on success */
src/Sequence.c:93
↓ 3 callersFunctioninit_clip_internal
* Initialize clip without video context * @param clip Clip to initialize * @return >= 0 on success */
src/Clip.c:66
↓ 3 callersFunctioninit_sequence_cmp
* Initialize a new sequence, list of clips along with a custom compare function (for insertSorted) * @param seq Sequence to initialize * @p
src/Sequence.c:32
↓ 3 callersFunctionnextElement
src/LinkedListAPI.c:343
↓ 3 callersFunctionseek_video_pts
* Seek to the nearest I-frame before the seek pts * The pts is based on the video stream time_base * @param vid_ctx Video Context * @param pts
src/Timebase.c:60
↓ 3 callersFunctionsequence_add_clip_pts
* Insert Clip in sequence in sorted clip->pts order * @param sequence Sequence containing a list of clips * @param clip Clip to be added into
src/Sequence.c:139
↓ 3 callersFunctionsequence_seek
* Seek to an exact frame within the sequence (and all the clips within it)! * @param seq Sequence containing clips * @param frame_index in
src/Sequence.c:376
↓ 3 callersFunctionset_audio_out_params
* Copy relevant codec context params (from decoder) into AudioOutParams struct (for encoding) * @param op AudioOutParams * @param c AVCodecContex
src/OutputContext.c:361
↓ 3 callersFunctionset_clip_end
Return >= 0 on success */
src/Clip.c:225
↓ 3 callersFunctionset_output_params
* Set OutputParameters given Video and Audio OutputParameters * @param op OutputParameters to set filename, video and audio params * @param f
src/OutputContext.c:330
↓ 3 callersFunctionset_video_out_params
* Copy relevant codec context params (from decoder) into VideoOutParams struct (for encoding) * This can copy clip decoder settings to the encoder co
src/OutputContext.c:348
↓ 3 callersFunctionvalid_rational
* Check if AVRational is valid * @param r AVRational to check * @return true if invalid */
src/VideoContext.c:222
↓ 2 callersFunctionadd_stream
* Add a stream and allocate codecs for an OutputStream * @param oc OutputContext * @param os OutputStream within OutputContext * @par
src/OutputContext.c:43
↓ 2 callersFunctionadd_stream
Add an output stream. */
examples/ffmpeg/muxing.c:93
↓ 2 callersFunctionalloc_audio_frame
examples/ffmpeg/muxing.c:187
↓ 2 callersFunctionalloc_picture
examples/ffmpeg/muxing.c:373
↓ 2 callersFunctioncatVars
src/Util.c:3
↓ 2 callersFunctionclip_receive_enc_packet
INTERNAL FUNCTIONS ***************/ * Receive an encoded packet given an output stream and handle the return value * @param oc OutputContext * @p
src/ClipEncode.c:62
↓ 2 callersFunctionclip_send_frame_to_encoder
* Send a frame to encoder. This function builds ontop of clip_read_frame(). * @param oc OutputContext already allocated * @param clip Clip to en
src/ClipEncode.c:93
↓ 2 callersFunctionclose_output_stream
* Close the codec context within output stream * @param os OutputStream with open AVCodecContext */
src/OutputContext.c:384
↓ 2 callersFunctionclose_stream
examples/ffmpeg/muxing.c:542
↓ 2 callersFunctioncompare_clips
* Compare two clips based on pts * @param first First clip to compare * @param second Second clip to compare * @return > 0 if first->pts
src/Clip.c:449
↓ 2 callersFunctioncompare_clips_sequential
* Compare clips first by date & time and then second by orig_start_pts * @param f First clip to compare * @param s Second clip to compare * @retu
src/Clip.c:465
↓ 2 callersFunctioncopy_clip_vc
* Allocate a new clip pointing to the same VideoContext as Clip param. * Returned Clip has its own Clip fields, but references the same VideoContext
src/Clip.c:18
↓ 2 callersFunctioncreateIterator
src/LinkedListAPI.c:335
↓ 2 callersFunctiondecode_packet
examples/ffmpeg/demuxing_decoding.c:64
↓ 2 callersFunctionencode
examples/ffmpeg/solidColor.c:39
↓ 2 callersFunctionexample_clip_read_frames
EXAMPLE FUNCTIONS ***************/ * Test example showing how to read frames from clips * @param clip Clip */
src/ClipDecode.c:96
↓ 2 callersFunctionfill_yuv_image
Prepare a dummy image. */
examples/ffmpeg/muxing.c:440
↓ 2 callersFunctionfree_output_params
* Free OutputParameters internal data * @param op OutputParameters to be freed */
src/OutputContext.c:373
↓ 2 callersFunctionget_audio_time_base
src/VideoContext.c:33
↓ 2 callersFunctionget_clip_video_stream
* Get video stream from clip * @param clip Clip containing VideoContext * @return video AVStream on success, NULL on failure */
src/Clip.c:515
↓ 2 callersFunctionget_clip_video_time_base
* Get time_base of clip video stream * @param clip Clip * @return time_base of clip video stream */
src/Clip.c:489
↓ 2 callersFunctionget_current_clip
* Get current clip from sequence (seek position for next read) * @param seq Sequence containing clips * @return Clip that is currently being re
src/Sequence.c:493
↓ 2 callersFunctionget_sequence_duration_pts
* Get duration of sequence in pts (sequence timebase) * @param seq Sequence * @return >= 0 on success */
src/Sequence.c:106
↓ 2 callersFunctionget_video_time_base
src/VideoContext.c:29
↓ 2 callersFunctionhandle_send_frame
* Handle the return from avcodec_send_frame(). * This function is to be used inside of clip_send_frame_to_encoder() * @param oc OutputContext alr
src/ClipEncode.c:146
↓ 2 callersFunctioninit_internal_vars
* Set internal vars used in reading stream data * @param clip Clip */
src/Clip.c:436
↓ 2 callersFunctioninit_output_stream
* Initialize output stream * @param os OutputStream */
src/OutputContext.c:16
↓ 2 callersFunctioninit_video_output
* Initialize OutputContext structure * @param out_ctx OutputContext */
src/OutputContext.c:28
↓ 2 callersFunctioninsertFront
Inserts a Node at the front of a linked list. List metadata is updated * so that head and tail pointers are correct. *@pre 'List' type must exist and
src/LinkedListAPI.c:59
↓ 2 callersFunctioninsertSorted
Uses the comparison function pointer to place the element in the * appropriate position in the list. * should be used as the only insert function if a
src/LinkedListAPI.c:141
↓ 2 callersFunctionis_regular_file
* Tests if path is file or directory * @param path filename * @return >= 0 on success */
examples/random-splice.c:345
↓ 2 callersFunctionlist_delete_clip
* Free clip memory and all its data. Assumes clip was allocated on heap. * @param toBeDeleted Clip structure allocated on heap */
src/Clip.c:665
↓ 2 callersFunctionopen_codec
src/OutputContext.c:124
↓ 2 callersFunctionopen_codec_context
examples/ffmpeg/demuxing_decoding.c:153
↓ 2 callersFunctionopen_video_context
out @param vid_ctx - allocated context containing format, streams and codecs in @param filename - name of video file Return >= 0 if OK, < 0 on
src/VideoContext.c:61
↓ 2 callersFunctionopen_video_output
* Open format and file for video output * @param oc OutputContext * @param op OutputParameters for video and audio codecs/muxe
src/OutputContext.c:152
↓ 2 callersFunctionrand_range
* Generate random number between range in the uniform distribution * @param min low bound (inclusive) * @param max high bound (inclusive) * @retu
examples/random-splice.c:234
↓ 2 callersFunctionreset_packet_counter
* Reset packet counter to beginning of clip and reset internal reading flags (to allow another read cycle) * @param clip Clip * @return >= 0 o
src/Clip.c:423
↓ 2 callersFunctionseq_frame_index_to_pts
* Convert sequence frame index to pts (presentation time stamp) * @param seq Sequence * @param frame_index index of frame to convert * @r
src/Sequence.c:267
↓ 2 callersFunctionseq_frame_within_clip
* Determine if sequence frame lies within a clip (assuming clip is within sequence) * Example: * If this[xxx] is a clip where |---| is VideoContext:
src/Sequence.c:354
↓ 2 callersFunctionseq_handle_send_frame
* Handle the return from avcodec_send_frame(). * This function is to be used inside of seq_send_frame_to_encoder() * @param oc OutputContext al
src/SequenceEncode.c:172
↓ 2 callersFunctionseq_receive_enc_packet
INTERNAL FUNCTIONS ***************/ * Receive an encoded packet given an output stream, and handle the return value * @param oc OutputContext *
src/SequenceEncode.c:61
↓ 2 callersFunctionseq_send_frame_to_encoder
* Send a frame to encoder. This function builds ontop of seq_read_frame(). * @param oc OutputContext already allocated * @param seq Sequence
src/SequenceEncode.c:119
↓ 2 callersFunctionsequence_insert_clip_sorted
* Insert clip sorted by: * 1. Date & time of file * 2. clip->orig_start_pts * This function will generate the sequence pts for the clip (clip->star
src/Sequence.c:181
↓ 2 callersFunctionsequence_read_frame
* Read decoded frames from our editing sequence * @param seq Sequence with clips to be read * @param frame decoded output
src/SequenceDecode.c:21
↓ 2 callersFunctionset_clip_bounds_pts
Initialize Clip object with start and endpoints @param clip: Clip to initialize @param vid_ctx: Video context assumed to already be initialize
src/Clip.c:178
↓ 2 callersFunctionset_clip_start
Return >= 0 on success */
src/Clip.c:201
↓ 2 callersFunctionwrite_frame
examples/ffmpeg/muxing.c:81
↓ 2 callersFunctionwrite_sequence
* Open output file, write sequence packets and close the output file! * (this is an end to end solution) * @param seq Sequence containing clip
src/OutputContext.c:254
↓ 1 callersFunctionadd_files
* Add all files from string array into sequence! * @param seq Sequence * @param files string array of filenames (videos to be added) *
examples/random-splice.c:246
↓ 1 callersFunctionalloc_clip
* Allocate clip on heap, initialize default values and open the clip. * It is important to open the clip when first created so we can set default *
src/Clip.c:51
↓ 1 callersFunctionalloc_clip_internal
* Allocate a new Clip without a VideoContext * @return NULL on fail, not NULL on success */
src/Clip.c:37
↓ 1 callersFunctionaudio_pkt_to_seq_ts
* Convert a raw packet timestamp into a sequence timestamp * @param seq Sequence containing clip * @param clip Clip within sequen
src/Sequence.c:529
↓ 1 callersFunctionclearList
Deletes the entire linked list, freeing all memory. * uses the supplied function pointer to release allocated memory for the data * returns NULL on su
src/LinkedListAPI.c:108
↓ 1 callersFunctionclearStr
* Clear string with \0 characters * @param str char * to be cleared * @param num length of string */
src/Util.c:80
↓ 1 callersFunctionclear_frame_decoding_garbage
* Clear fields on AVFrame from decoding * @param f AVFrame to initialize */
src/SequenceDecode.c:87
↓ 1 callersFunctionclip_ts_audio
* Convert raw video packet timestamp into clip relative audio pts * @param clip Clip * @param pkt_pts raw packet pts from original video file (
src/Clip.c:310
↓ 1 callersFunctionclip_ts_video
* Convert raw video packet timestamp into clip relative pts * @param clip Clip * @param pkt_pts raw packet pts from original video file * @ret
src/Clip.c:300
↓ 1 callersFunctioncut_clip_internal
* Cut a clip, splitting it in two. * This function handles clip positions (orig_start_pts and orig_end_pts) of clips but not * sequence positions (s
src/Clip.c:590
↓ 1 callersFunctioncut_remove_insert
* Cut a clip out of original sequence and insert it into new sequence in sorted order * @param os Original sequence * @param ns
examples/random-splice.c:137
next →1–100 of 180, ranked by callers