[vlc-commits] videotoolbox: remove unused conversion code
Thomas Guillem
git at videolan.org
Fri Jun 2 18:44:20 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 2 16:52:48 2017 +0200| [251a23ef9afd1f151bc6f1ba7119b5a8a3970c9e] | committer: Thomas Guillem
videotoolbox: remove unused conversion code
The conversion is now done by filters.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=251a23ef9afd1f151bc6f1ba7119b5a8a3970c9e
---
modules/codec/videotoolbox.m | 32 --------------------------------
1 file changed, 32 deletions(-)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index ee18bd2c4d..5a2134e642 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -37,7 +37,6 @@
#import "../packetizer/h264_slice.h"
#import "../packetizer/hxxx_nal.h"
#import "../packetizer/hxxx_sei.h"
-#import "../video_chroma/copy.h"
#import <VideoToolbox/VideoToolbox.h>
#import <VideoToolbox/VTErrors.h>
@@ -94,8 +93,6 @@ static int DecodeBlock(decoder_t *, block_t *);
static void Flush(decoder_t *);
static void DecoderCallback(void *, void *, OSStatus, VTDecodeInfoFlags,
CVPixelBufferRef, CMTime, CMTime);
-static void copy420YpCbCr8Planar(picture_t *, CVPixelBufferRef buffer,
- unsigned i_width, unsigned i_height);
static BOOL deviceSupportsAdvancedProfiles();
static BOOL deviceSupportsAdvancedLevels();
@@ -1142,35 +1139,6 @@ static CMSampleBufferRef VTSampleBufferCreate(decoder_t *p_dec,
return sample_buf;
}
-static void copy420YpCbCr8Planar(picture_t *p_pic,
- CVPixelBufferRef buffer,
- unsigned i_width,
- unsigned i_height)
-{
- uint8_t *pp_plane[2];
- size_t pi_pitch[2];
- copy_cache_t cache;
-
- if (!buffer || i_width == 0 || i_height == 0)
- return;
-
- CVPixelBufferLockBaseAddress(buffer, kCVPixelBufferLock_ReadOnly);
-
- for (int i = 0; i < 2; i++) {
- pp_plane[i] = CVPixelBufferGetBaseAddressOfPlane(buffer, i);
- pi_pitch[i] = CVPixelBufferGetBytesPerRowOfPlane(buffer, i);
- }
-
- if (CopyInitCache(&cache, i_width))
- return;
-
- CopyFromNv12ToI420(p_pic, pp_plane, pi_pitch, i_height, &cache);
-
- CopyCleanCache(&cache);
-
- CVPixelBufferUnlockBaseAddress(buffer, kCVPixelBufferLock_ReadOnly);
-}
-
static int HandleVTStatus(decoder_t *p_dec, OSStatus status)
{
#define VTERRCASE(x) \
More information about the vlc-commits
mailing list