d9e2aceb7f 
								
							
								 
							
						 
						
							
							
								
								Add missing "const" all over the place.  
							
							Only "./configure --enable-gpl" on x86 was tested.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0352b1997 
								
							
								 
							
						 
						
							
							
								
								avcodec: export motion vectors in frame side data on demand  
							
							The reasoning behind this addition is that various third party
applications are interested in getting some motion information out of a
video "for free" when it is available.
It was considered to export other information as well (such as the intra
information about the block, or the quantization) but the structure
might have ended up into a half full-generic, half full of codec
specific cruft. If more information is necessary, it should either be
added in the "flags" field of the AVMotionVector structure, or in
another side-data.
This commit also includes an example exporting them in a CSV stream. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e070d0a5ca 
								
							
								 
							
						 
						
							
							
								
								frame: Remove some FF_API_AVFRAME_COLORSPACE leftovers  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								788cf6f0c6 
								
							
								 
							
						 
						
							
							
								
								Remove panscan information in av_frame_copy_props() if resolution changes.  
							
							Fixes ticket #3750 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								472f9ed312 
								
							
								 
							
						 
						
							
							
								
								Remove obsolete FF_API_AVFRAME_COLORSPACE cruft.  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba3e3311ef 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: add av_frame_side_data_name()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44671b5786 
								
							
								 
							
						 
						
							
							
								
								AVFrame: factor out freeing the side data  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c02adc62d 
								
							
								 
							
						 
						
							
							
								
								lavu: add all color-related enums to AVFrame  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								879aa062f9 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: frame_copy_video: support copying from a smaller to a larger frame  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a53551cba8 
								
							
								 
							
						 
						
							
							
								
								frame: fix the error path in av_frame_copy_props()  
							
							First free metadata, then the side data it is contained in.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4615ff0d61 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: use av_malloc(z)_array()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d161ae0a37 
								
							
								 
							
						 
						
							
							
								
								frame: add a function for removing side data from a frame  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74bb1ca82c 
								
							
								 
							
						 
						
							
							
								
								avutil/frame_copy_audio: also check that channels match  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1155fd02ae 
								
							
								 
							
						 
						
							
							
								
								frame: add a convenience function for copying AVFrame data  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								833501657b 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: increase padding for frames  
							
							This matches what avcodec uses
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df7aba52b5 
								
							
								 
							
						 
						
							
							
								
								frame: cosmetics, reindent  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c342132fa8 
								
							
								 
							
						 
						
							
							
								
								frame: copy flags in av_frame_copy_props()  
							
							Flags can be considered metadata (at least those that are defined now). 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								60b099c371 
								
							
								 
							
						 
						
							
							
								
								get_audio_buffer: fix usage where channels are not set but layout is  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								529a9893d7 
								
							
								 
							
						 
						
							
							
								
								avframe: mark source frame const in _ref and _clone  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1225b67fc9 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: suppress "comparison of unsigned expression < 0 is always false" warning  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9c8aeacf82 
								
							
								 
							
						 
						
							
							
								
								avutil: add av_get_colorspace_name()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4db7c334b 
								
							
								 
							
						 
						
							
							
								
								Integrate accessors.h header into internal.h  
							
							I have no idea why I added a separate header,
I think there is no good reason for it.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a48979d715 
								
							
								 
							
						 
						
							
							
								
								Reduce MAKE_ACCESSORS code duplication via a new header.  
							
							Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								60ae776d04 
								
							
								 
							
						 
						
							
							
								
								av_frame_copy_props: fix unintended self assignment  
							
							Fixes CID1061052
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3c8bff0740 
								
							
								 
							
						 
						
							
							
								
								avframe: have av_frame_get_side_data take const AVFrame*  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a80e622924 
								
							
								 
							
						 
						
							
							
								
								avcodec/avutil: Add AVColorSpace and AVColorRange to AVFrames  
							
							This also moves AVColorSpace and AVColorRange from avcodec to avutil
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0a06e6e49b 
								
							
								 
							
						 
						
							
							
								
								av_frame_get_buffer: Do not fail when the channel layout is unknown  
							
							Fixes handling of cases with unknown layouts but known channel counts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9626d0e906 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: Try to align width to achive linesize[0] alignment  
							
							This results in more alignment for pixel formats that have "odd" pixel
sizes like RGB24. It makes access through SIMD easier
Works around Issue described in Ticket1031
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5a65fea655 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: continue to process bufs even if some are empty  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6c4ac7b5f 
								
							
								 
							
						 
						
							
							
								
								pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								570d63eef3 
								
							
								 
							
						 
						
							
							
								
								lavu: add FF_CEIL_RSHIFT and use it in various places.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e8b9738fa 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: add all remaining frame properties to av_frame_copy_props  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a964d6a8a2 
								
							
								 
							
						 
						
							
							
								
								lavu/frame: use channels rather than channel_layout.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f566ac48ce 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: fix video buffer allocation  
							
							The padding was lost during porting from avcodec
Should fix out of array accesses
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								caff888183 
								
							
								 
							
						 
						
							
							
								
								avutil/frame: add AVBufferRef for qp table  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								febd78e904 
								
							
								 
							
						 
						
							
							
								
								lavu/frame: free frame metadata when unrefing a frame.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e4c5e08f60 
								
							
								 
							
						 
						
							
							
								
								lavu/frame: av_frame_make_writable: set the channels on the new frame.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2035cc3595 
								
							
								 
							
						 
						
							
							
								
								lavu/frame: copy all frame properties in av_frame_copy_props  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1b716c79b 
								
							
								 
							
						 
						
							
							
								
								avframe: Copy buffer type in copy_props.  
							
							Fixes VDPAU decoding with MPlayer. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1ad542f11f 
								
							
								 
							
						 
						
							
							
								
								get_video_buffer: add vertical padding  
							
							Fix memory corruption
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fc8406d01e 
								
							
								 
							
						 
						
							
							
								
								avframe: copy reordered_opaque in copy_props  
							
							Fixes video playback in applications still using reordered_opaque. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								586ae70ba7 
								
							
								 
							
						 
						
							
							
								
								port FFmpeg lavc frame specificities to lavu functions.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1b456b0a8 
								
							
								 
							
						 
						
							
							
								
								lavu/frame: copy the channels field.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0651e892e1 
								
							
								 
							
						 
						
							
							
								
								Replace remaining includes of audioconvert.h with channel_layout.h  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								77b2cd7b41 
								
							
								 
							
						 
						
							
							
								
								AVFrame: add side data.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ecc2d403c 
								
							
								 
							
						 
						
							
							
								
								Move AVFrame from lavc to lavu.  
							
							Add AVBuffer-based reference counting API to it. 
							
						 
						13 years ago